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 -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -