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. How to set the ToolTip timeout

How to set the ToolTip timeout

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 6.7k 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.
  • S Offline
    S Offline
    stvokr
    wrote on last edited by
    #1

    Hi all,

    is there any way to set the timeout of a tooltip?
    I use the QToolTip::showText() function to show my user tooltip and it hides about 10 seconds automatically.
    How can I increase or decrease this timeout?

    regards
    Oliver

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

      Hi
      https://bugreports.qt.io/browse/QTBUG-1016

      Seems to be added now
      http://doc.qt.io/qt-5/qtooltip.html#showText-2
      Notice the msecDisplayTime
      and
      QWidget::toolTipDuration

      1 Reply Last reply
      1
      • S Offline
        S Offline
        stvokr
        wrote on last edited by
        #3

        Thanks, that worked.

        1 Reply Last reply
        1

        • Login

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