Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to show some description of an Item when mouse is on it (MouseOver)
Qt 6.11 is out! See what's new in the release blog

How to show some description of an Item when mouse is on it (MouseOver)

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 2.2k 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
    Fheanor
    wrote on last edited by
    #1

    Hello,

    I would like to have something like this:

    alt text

    But I am a bit lost of how to do it. Should I draw a rectangle on my mouse when it is on an Item ? Or something else ?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Use a tooltip: https://doc.qt.io/qt-5/qml-qtquick-controls2-tooltip.html and tie it's visibility to MouseArea's hover state.

      (Z(:^

      1 Reply Last reply
      4
      • F Offline
        F Offline
        Fheanor
        wrote on last edited by
        #3

        Thanks, this is exactly what I needed.

        Have a good day :-)

        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