Tool tips appearing in StatusBar
-
I have tool tips appearing in my StatusBar. Any idea how this happens?
-
I have tool tips appearing in my StatusBar. Any idea how this happens?
@Ed-Schneider Please provide more information, else nobody knows what you're doing. You can also provide a minimal reproducible example.
-
@Ed-Schneider Please provide more information, else nobody knows what you're doing. You can also provide a minimal reproducible example.
@jsulm I figured out how this is happening but would appreciate any suggestions as to how to deal with the "feature". I have tool tips set to appear in the status bar whenever the cursor hovers over the icon in the tool bar. That works beautifully. The problem happens when a user selects a pull-down from the menu bar and then selects the first item in the pull-down. Unless the user moves their cursor, they are likely now hovering over the tool bar, and this fires the tool tip to the status bar. At that point, it replaces what I had expected to see in the status bar, which would be a confirmation message that their selection from the pull-down has begun executing. Is there some way to have more than one thing in the status bar at the same time? That would be one way to address this. Putting the tool bar above the menu bar would also resolve this, but I don't think I've ever seen a tool bar above a menu bar. I'd like to keep having the tool tip appearing in the status bar, but I may have to give that up.
-
@jsulm I figured out how this is happening but would appreciate any suggestions as to how to deal with the "feature". I have tool tips set to appear in the status bar whenever the cursor hovers over the icon in the tool bar. That works beautifully. The problem happens when a user selects a pull-down from the menu bar and then selects the first item in the pull-down. Unless the user moves their cursor, they are likely now hovering over the tool bar, and this fires the tool tip to the status bar. At that point, it replaces what I had expected to see in the status bar, which would be a confirmation message that their selection from the pull-down has begun executing. Is there some way to have more than one thing in the status bar at the same time? That would be one way to address this. Putting the tool bar above the menu bar would also resolve this, but I don't think I've ever seen a tool bar above a menu bar. I'd like to keep having the tool tip appearing in the status bar, but I may have to give that up.
@Ed-Schneider said in Tool tips appearing in StatusBar:
Is there some way to have more than one thing in the status bar at the same time?
Sure, you cann add whatever you want to your status bar: see all the add* and insert* methods (https://doc.qt.io/qt-6/qstatusbar.html).
-
@Ed-Schneider said in Tool tips appearing in StatusBar:
Is there some way to have more than one thing in the status bar at the same time?
Sure, you cann add whatever you want to your status bar: see all the add* and insert* methods (https://doc.qt.io/qt-6/qstatusbar.html).
@jsulm Fascinating and thanks. I've clearly underutilized the StatusBar. I had been using it to display messages I sent using setStatusTip which looks like it's a QAction/QIcon method since I don't see it in the QStatusBar class. Time to rethink. My first thought is to divide the SatusBar into three fields. The first would be where I put messages regarding starting/finishing/failing commands/menu items. The second would be tool tips responding to hovering. In the third, I might place some program setting states. The third would be right justified while the first two would be left justified. That's my first guess. Am I correct this can all be done with QStatusBar? That's my quick reaction to the documentation.