View Full Version : how to remove shadow of QMenu?
lonewsj
30th March 2011, 10:53
how to remove shadow of QMenu? :)
QMenu menu;
menu.addAction(actionPaste);
menu.addSeparator();
menu.exec(QCursor::pos());
wysota
30th March 2011, 11:44
Modify the style of the menu.
UrfinJuice
1st April 2011, 14:51
Modify the style of the menu.
can you give an example?
wysota
1st April 2011, 15:38
Styles example
UrfinJuice
2nd April 2011, 07:45
Thanks! However, for my application it was enough to install qtconfig and set up gtk+ style, which doesn't use shadows. Anyway, thanks a lot!
wysota
2nd April 2011, 08:40
You don't need qtconfig for that. It's enough to use QWidget::setStyle() in your code.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.