Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Showing a message when hovering over a QTabBar
Qt 6.11 is out! See what's new in the release blog

Showing a message when hovering over a QTabBar

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 1.1k Views 1 Watching
  • 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.
  • F Offline
    F Offline
    Fuchsiaff
    wrote on last edited by
    #1

    Is it possible?
    I have a QTabBar and when hovering over it, I want to display a certain message

    aha_1980A 1 Reply Last reply
    0
    • F Fuchsiaff

      Is it possible?
      I have a QTabBar and when hovering over it, I want to display a certain message

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Fuchsiaff: Yes

      http://doc.qt.io/qt-5/qwidget.html#mouseMoveEvent

      Qt has to stay free or it will die.

      1 Reply Last reply
      3
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        Sort of like a ToolTip does ?

        F 1 Reply Last reply
        0
        • mrjjM mrjj

          Hi
          Sort of like a ToolTip does ?

          F Offline
          F Offline
          Fuchsiaff
          wrote on last edited by
          #4

          @mrjj
          Something like when I hover over a tab in firefox then it shows a message related to that site.

          1 Reply Last reply
          0
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            Mine only shows a small tooltip
            alt text

            1 Reply Last reply
            0
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by mrjj
              #6

              Hi
              QTabBar can show tips
              http://doc.qt.io/qt-5/qtabbar.html#setTabToolTip
              if thats enough.

              update:
              basic customization be be done with style sheet

              qApp->setStyleSheet("QToolTip { color: #ffffff; background-color: blue; border: 1px solid white; }");
              

              http://doc.qt.io/qt-5/stylesheet-reference.html

              1 Reply Last reply
              2
              • F Offline
                F Offline
                Fuchsiaff
                wrote on last edited by
                #7
                This post is deleted!
                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