Can any body tell me what value i need to set for button height when height is 0.25" ?
-
i need help what value i need to set when my given button or text edit box size is in inch.
like Any button/field on the Display used for data entry or selection shall be a minimum size of 0.5” x 0.5.
so what value i need to set for my rectangle's height and width ?
-
i need help what value i need to set when my given button or text edit box size is in inch.
like Any button/field on the Display used for data entry or selection shall be a minimum size of 0.5” x 0.5.
so what value i need to set for my rectangle's height and width ?
@Qt-embedded-developer You will need to first find out the resolution of the current screen (pixels per inch). Then you can calculate how many pixels you need to set for height. I don't know though how to get the screen resolution (not screen size!).
-
@Qt-embedded-developer You will need to first find out the resolution of the current screen (pixels per inch). Then you can calculate how many pixels you need to set for height. I don't know though how to get the screen resolution (not screen size!).
@jsulm display resolution is 1360*700 . then any body help me further for find what value i need to set ?
-
@jsulm display resolution is 1360*700 . then any body help me further for find what value i need to set ?
@Qt-embedded-developer
Then it depends on the size of the screen for that resolution! For that fixed screen resolution apparently you have 700 pixels to fill its height.But that's not going to scale well if you use a different monitor or resolution....
-
@jsulm display resolution is 1360*700 . then any body help me further for find what value i need to set ?
@Qt-embedded-developer said in Can any body tell me what value i need to set for button height when height is 0.25" ?:
display resolution is 1360*700
This is not resolution! Resolution means: pixels per inch.
If you know the physical dimensions of your screen you can calculate the resolution by yourself. -
@Qt-embedded-developer said in Can any body tell me what value i need to set for button height when height is 0.25" ?:
display resolution is 1360*700
This is not resolution! Resolution means: pixels per inch.
If you know the physical dimensions of your screen you can calculate the resolution by yourself. -
@jsulm that is called resolution as well.
get physical size in millimeters
https://doc.qt.io/qt-5/qscreen.html#physicalSize-prop@JoeCFD
This is good, but as the documentation warns:Depending on what information the underlying system provides the value might not be entirely accurate.
This relies on the user having told the OS what size monitor they are using. I never do that! So the OP may or may not find this works for his case.
-
@JoeCFD
This is good, but as the documentation warns:Depending on what information the underlying system provides the value might not be entirely accurate.
This relies on the user having told the OS what size monitor they are using. I never do that! So the OP may or may not find this works for his case.
-
@JonB Maybe it is better to have a requirement like minimum relative height. It is tough to set minimum absolute height.