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. Hover Event
Qt 6.11 is out! See what's new in the release blog

Hover Event

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 816 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.
  • NevezN Offline
    NevezN Offline
    Nevez
    wrote on last edited by
    #1

    454e64a3-9e55-41d9-95bd-d0a8609db281-image.png

    Hello there,
    I have a layout with a labeller as in the photo.
    When I drag and bring an external label to this layout, I want that area to be highlighted as in the figure.
    (like green arrows)

    how can I do that ? what should i use?

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

      Hi,

      Something is not clear, are you asking how to handle the external dragged element or how to do the highlighting in any case ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • NevezN Offline
        NevezN Offline
        Nevez
        wrote on last edited by Nevez
        #3

        @SGaist said in Hover Event:

        Something is not clear, are you asking how to handle the external dragged element or how to do the highlighting in any case ?

        no, I dont asking how to handle the external dragged element.
        Yes, Im asking how to do the highlighting ?
        Thanks.

        Example: When I bring a mouse-moved item with a label with a layout like the one in the figure, it looks like the green arrow.
        I want like this.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then you need to implement the hover event handling for the underlying widget and show a custom transparent widget that draws these arrows. A bit like QRubberBand.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • NevezN Offline
            NevezN Offline
            Nevez
            wrote on last edited by
            #5

            thank you so much. thats enough for now :)

            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