how to remove shadow of QMenu? Qt Code: Switch view QMenu menu;menu.addAction(actionPaste);menu.addSeparator();menu.exec(QCursor::pos()); QMenu menu; menu.addAction(actionPaste); menu.addSeparator(); menu.exec(QCursor::pos()); To copy to clipboard, switch view to plain text mode
QMenu menu;menu.addAction(actionPaste);menu.addSeparator();menu.exec(QCursor::pos());
QMenu menu; menu.addAction(actionPaste); menu.addSeparator(); menu.exec(QCursor::pos());
Last edited by wysota; 30th March 2011 at 11:44. Reason: missing [code] tags
Modify the style of the menu.
Your biological and technological distinctiveness will be added to our own. Resistance is futile. Please ask Qt related questions on the forum and not using private messages or visitor messages.
Originally Posted by wysota Modify the style of the menu. can you give an example?
Styles example
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!
You don't need qtconfig for that. It's enough to use QWidget::setStyle() in your code.
Forum Rules
Bookmarks