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

How to set the ToolTip timeout

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 6.5k 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 2 Feb 2017, 15:14 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
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 2 Feb 2017, 15:34 last edited by mrjj 2 Feb 2017, 15:34
      #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 3 Feb 2017, 10:06 last edited by
        #3

        Thanks, that worked.

        1 Reply Last reply
        1

        1/3

        2 Feb 2017, 15:14

        • Login

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