MainToolBar first Item not clickable
-
I have a strange Problem with my Toolbar. All Buttons in my Toolbar are working fine, but not the first one. The first Item is only clickable if i move the Mouse to the bottom Border of the Item. Then it becomes focused like on the Image below.
I use the actual QT Creator and Qt 5.9.2 on Windows 10.
Earlier, where i started the Project, i hadnt that Issue. But that was long ago. I noticed this Problem some Month ago, but now i want to fix it.
-
Hi,
Can you show how you setup your toolbar ?
-
Can you share the widget header, cpp and ui file to test ?
-
I made the Project Public for a few days. https://git.kubitox.com/Ben/KT
-
Hi @Fuel
Try few cases in order check the issue,- Change position of "Ubersicht" from 1st position to 2nd and check the observation.
If the observation is same as previous, there is issue with Action.
If the observation is not same as previous and working as expected, there is issue with toolbar.
Which platform are you using?
- Change position of "Ubersicht" from 1st position to 2nd and check the observation.
-
Something similar happened to me once - it was a rogue transparent widget that someone forgot to put in a layout and so it stuck to the corner swallowing up mouse events.
There's an easy way to verify if that's the case. Set a stylesheet like this on the app object:
qApp->setStyleSheet("border: 1px solid red;")
If there's anything covering your toolbar you should see it now.