I want to plot in Qt using QCustomPlot. I draw a widget and promote it to QCustomPlot. Now I want to set height and width of the widget in millimeter. How can I do this action?
This is a hard one cause the actual on screen size of component is very platform dependent. Below you have two articles from Qt documentation about getting size of a widget and screen geometry for some specific platforms.
Screen geometry
Window geometry
Maybe You will find this usefull
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With