You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting a QMenu in a QPushButton using QPushButton::setMenu(QMenu *menu), the down-arrow indicator is not well positioned and is cropped by the button boundaries. See picture below for QDarkStyleSheet vs. default Windows 10 style.
vs.
The menu can be added with code like this:
QMenu *menu = new QMenu(this);
menu->addAction("Noop");
ui->myButton->setMenu(menu);
The text was updated successfully, but these errors were encountered:
Thank you for reporting the issue. I and @dpizetta are very busy with personal stuffs at the moment so it may take a bit of time before this issue get fixed. Feel free to submit a PR if you find a fix 😉
Environment:
Issue
When setting a
QMenu
in aQPushButton
usingQPushButton::setMenu(QMenu *menu)
, the down-arrow indicator is not well positioned and is cropped by the button boundaries. See picture below for QDarkStyleSheet vs. default Windows 10 style.vs.
The menu can be added with code like this:
The text was updated successfully, but these errors were encountered: