Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
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?
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.
@SPlatten Can you explain a bit better? What cell do you mean? Buttons usually do not fill whole available space.
@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.