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. [SOLVED]How to enable tool tip on no focus
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]How to enable tool tip on no focus

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.0k 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.
  • A Offline
    A Offline
    adnan
    wrote on last edited by
    #1

    Suppose i have two widgets. When i click on first widget, it gets focus and on mouse hover it shows the tool tip. The moment it loses focus (if i click on second widget) the first widget does not show tool tip on mouse hover. Is it possible to enable tool tip even if widget has no focus!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tilsitt
      wrote on last edited by
      #2

      Hi,

      You can use a "QToolTip":http://qt-project.org/doc/qt-4.8/qtooltip.html object and show it when you want. You will "just" have to manage the position.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        CarryGun
        wrote on last edited by
        #3

        Try to use mouseMoveEvent and QToolTip.

        0xc0de1e55

        1 Reply Last reply
        0
        • A Offline
          A Offline
          adnan
          wrote on last edited by
          #4

          Thanks! a lot. It did the job.

          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