Can not remove border around QMenu
-
Hi!
Im working on a project that will run on an embedded linux device (direct to the framebuffer). On the GUI that Im building I have a QPushButton that has a QMenu that is populated with a bunch of QWidgetActions.
On my embedded device I get a border around the QWidgets and I can not remove it.
Same code on my Linux development desktop (kubuntu 18.04) I get no borders
Same code on my Windows 10 laptop I get borders but I can remove them with:
m_pMenu->setStyleSheet( "border: 0;" );The StyleSheet code has no effect on my embedded device. Any ideas on what to do? I dont want the border to appear.
Qt Version on the embedded device is 5.12
Thanks,
Photo of the screen on my embedded device:

Photo of the screen on my dev machine:

-
After some investigation I realized that the application has different default styles depending on the host system. After adding
-style Fusionto the start command on the embedded system it behaves exactly as on my dev machine.It doesnt explain why the StyleSheet code doesnt work but it solves my issue.
-
Hi and welcome to devnet,
How are you starting your application on your target ?
-
After some investigation I realized that the application has different default styles depending on the host system. After adding
-style Fusionto the start command on the embedded system it behaves exactly as on my dev machine.It doesnt explain why the StyleSheet code doesnt work but it solves my issue.