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) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -