Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the unit of measurement in height and width of Qwidget in Qt

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?

like image 895
user55340 Avatar asked Oct 25 '25 15:10

user55340


1 Answers

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

like image 81
Lemonov Avatar answered Oct 27 '25 23:10

Lemonov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!