qt - Setting height of QMenu items -


is possible style qmenu:item set custom height?

i need popup menu, i've been seeing seems it's not possible maybe knows sure.

have tried use qss? works fine me:

qmenu::item {     height: 42px;     margin: 0px; } 

you can use pmenu->setstylesheet("qmenu::item { height: 42px; margin: 0px; }");.

note: make sure use :: , not : reference item.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

windows - How to automate a file conversion xwm to mp3 with xwmaencode.exe using bat file -