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. ToolTip not showing
Forum Updated to NodeBB v4.3 + New Features

ToolTip not showing

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 9.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.
  • JeroentjehomeJ Offline
    JeroentjehomeJ Offline
    Jeroentjehome
    wrote on last edited by
    #1

    Hi guys,
    Must be missing a piece of knowledge, but in designer I set the ToolTip and the duration for a QLabel in a QTabWidget. That QTabWidget is embedded into a Stackedwidget in a dialog. The tooltip is set via the setToolTip
    in the ui_ file:
    @
    #ifndef QT_NO_TOOLTIP
    labelSignalId->setToolTip(QApplication::translate("ConfigCanSignalWidget", "What is my designator", 0));
    #endif // QT_NO_TOOLTIP
    @
    but that is set in the retranslateUi function, so called from the ui constructor.
    What do I forget to do?
    The tooltip is not showing at the given QLabel. I'm missing someting, but what?
    Thanks for any help!

    Greetz, Jeroen

    1 Reply Last reply
    0
    • B Offline
      B Offline
      butterface
      wrote on last edited by
      #2

      Have you tried to set the tooltip without any translation directly in the code just to make sure that this is not the problem in this case?

      1 Reply Last reply
      0
      • JeroentjehomeJ Offline
        JeroentjehomeJ Offline
        Jeroentjehome
        wrote on last edited by
        #3

        Good idea, Will try!
        <<testing>>
        Nup, no change when setting the tooltip in code.
        More options?

        Greetz, Jeroen

        1 Reply Last reply
        0
        • B Offline
          B Offline
          butterface
          wrote on last edited by
          #4

          Any other tooltips work? If not, maybe the time after the tooltip is shown is wrong (e. g. s expected ms given, too short, ...)
          Is any other widget overlapping the label?

          1 Reply Last reply
          0
          • JeroentjehomeJ Offline
            JeroentjehomeJ Offline
            Jeroentjehome
            wrote on last edited by
            #5

            Nup, the tooltips on the MainWindow (toolbar/centralwidget) do work. I'm still a bit puzzled by it.

            Greetz, Jeroen

            1 Reply Last reply
            0
            • JeroentjehomeJ Offline
              JeroentjehomeJ Offline
              Jeroentjehome
              wrote on last edited by
              #6

              Guess what I did wrong. Setting the tooltipduration to a small value will make the tooltip invisible! It is to short to show it! Did you leave that to -1??

              Greetz, Jeroen

              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