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

Qt Hover (Widget)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 2 Posters 1.4k 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
    Ashleyy
    wrote on last edited by
    #1

    How do I give the hover effect at Qt?Won't be inexperienced? I want you to look professional. don't use QML.

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

      Hi
      What hover effect ?
      With QWidgets its controlled by

      widget->setAttribute(Qt::WA_Hover);
      widget->setMouseTracking(true);
      and then
      https://doc.qt.io/qt-5/qwidget.html#enterEvent
      https://doc.qt.io/qt-5/qwidget.html#leaveEvent
      You have to give better details of thats not enough.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Ashleyy
        wrote on last edited by
        #3

        I couldn't find an example.
        Let me tell you: I want to make an effect such that the opacity of the program goes from 0 to 100.

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

          Hi
          you mean like a fade out whole app ?
          There is
          QWidget::setWindowOpacity(qreal level)
          but only works for windows Os.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Ashleyy
            wrote on last edited by
            #5

            How do I make a widget?

            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