Add spacing to QMenu::item without resizing QMenu::right-arrow
-
Hi,
How are you doing that ?
Which version of Qt are you using ?
On which platform ? -
- How are you doing that ?
Hello I'm simply using the following stylesheet :
"QMenuBar { spacing : 20px; }" "QMenuBar::item { padding-top : 15px; padding-bottom : 5px; color: black; }" "QMenuBar::item#statusBar { background : transparent; }" "QMenu::item { padding : 10px }" "QMenu::separator { height : 2px ; background : darkgray }"
link to those lines within my project (branch vocab) https://git.hijackedbrain.com/hijackedbrain/Obenkyobo/src/commit/8621fc8e2cf1ffc6eda4cefef34420b4e0746a20/Src/mainwindow.cpp#L37
The QMenu itself is made using qtdesigner
- Which version of Qt are you using ? On which platform ?
I'm using qt-linux-5.15-kde-kobo for kobo ereaders (linux arm devices). Compiled using the following scripts :
https://github.com/Rain92/kobo-qt-setup-scripts
https://github.com/Rain92/qt5-kobo-platform-pluginThe project itself should compile and work fine (enough) on pc but does not look the same at all.
Unusual use case I know :/.Running on a Libra H2O in the screenshots.
-
It's likely something that is highly specific to your device.
What is it running to manage its GUI ?