How to align text in custom QWidgetAction with text in standard QAction?
Unsolved
General and Desktop
-
Hi,
I have a menu that contains a standard checkableQAction
, and below it two customQWidgetAction
. EachQWidgetAction
consists of a QHBoxLayout with aQLabel
and aQComboBox
as shown in the picture below.I would like to align the texts of the
QLabel
with the text of the standardQAction
, i.e. along the vertical horizontal line shown, using the left margin property of the layout.Where can I find the info to determine how wide the check box is, and the various margins in the
QAction
menu item?