OS specific default button dimensions ?
-
Is there a way to get the default Operating System specific default button dimensions? What I mean is for example when an OS specific dialog is displayed, is there a way to get the default button size width and height that is used so when I add a button to a dialog or form I can set it to appear to the same size as buttons appearing elsewhere?
Also to go with this, is there any hints / offsets or information on where the buttons are to appear?
Thank you
-
Is there a way to get the default Operating System specific default button dimensions? What I mean is for example when an OS specific dialog is displayed, is there a way to get the default button size width and height that is used so when I add a button to a dialog or form I can set it to appear to the same size as buttons appearing elsewhere?
Also to go with this, is there any hints / offsets or information on where the buttons are to appear?
Thank you
@SPlatten said in OS specific default button dimensions ?:
I can set it to appear to the same size as buttons appearing elsewhere?
Actually you should not set the sizes manually, but use layouts
-
@SPlatten said in OS specific default button dimensions ?:
I can set it to appear to the same size as buttons appearing elsewhere?
Actually you should not set the sizes manually, but use layouts
-
@jsulm , thank you, I am using layouts but the the example I added to the layout is by default filling the cell.
-
@jsulm , Presently, I have a QGridLayout in the form, when I add widgets to the layout I use:
pobjGridLO->addWidget(pobjNode->pobjGetWidget(), intRow, intCol, intColSpan, intRowSpan, eCellAlign);
The defaults for intColSpan and intRowSpan are 1, for a button if no height and width is supplied the button fills the available area in the grid location.