Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QMenu indicator on QPushButton is cropped #102

Closed
gusmd opened this issue Jul 30, 2018 · 2 comments
Closed

QMenu indicator on QPushButton is cropped #102

gusmd opened this issue Jul 30, 2018 · 2 comments
Labels
Milestone

Comments

@gusmd
Copy link

gusmd commented Jul 30, 2018

Environment:

  • QDarkStyle: Latest master (cc761f7)
  • OS: Windows 10
  • Qt 5.11.1
  • MSVC 2017 (C++)

Issue

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.

qdarkstylesheet_menu vs. default_menu

The menu can be added with code like this:

QMenu *menu = new QMenu(this);
menu->addAction("Noop");
ui->myButton->setMenu(menu);
@ColinDuquesnoy
Copy link
Owner

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 😉

@gusmd
Copy link
Author

gusmd commented Aug 23, 2018

No problem. I appreciate the work you guys have done! I'll see if I can figure this one out :)

mowoolli added a commit to mowoolli/QDarkStyleSheet that referenced this issue Sep 23, 2018
mowoolli added a commit to mowoolli/QDarkStyleSheet that referenced this issue Sep 23, 2018
@dpizetta dpizetta added this to the 2.6 milestone Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants