Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Tool tips appearing in StatusBar
Forum Updated to NodeBB v4.3 + New Features

Tool tips appearing in StatusBar

Scheduled Pinned Locked Moved Unsolved Qt for Python
5 Posts 2 Posters 603 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Ed Schneider
    wrote on last edited by
    #1

    I have tool tips appearing in my StatusBar. Any idea how this happens?

    jsulmJ 1 Reply Last reply
    0
    • E Ed Schneider

      I have tool tips appearing in my StatusBar. Any idea how this happens?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Ed-Schneider Please provide more information, else nobody knows what you're doing. You can also provide a minimal reproducible example.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      E 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Ed-Schneider Please provide more information, else nobody knows what you're doing. You can also provide a minimal reproducible example.

        E Offline
        E Offline
        Ed Schneider
        wrote on last edited by
        #3

        @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.

        jsulmJ 1 Reply Last reply
        0
        • E Ed Schneider

          @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.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          E 1 Reply Last reply
          1
          • jsulmJ jsulm

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

            E Offline
            E Offline
            Ed Schneider
            wrote on last edited by
            #5

            @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.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved