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. Mouse-over Event for QPushButton
Forum Updated to NodeBB v4.3 + New Features

Mouse-over Event for QPushButton

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 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
    Anh Phan
    wrote on last edited by
    #1

    Hi everyone. The QPushButton doesn't have hover(mouse-over) slot. Do i have to subclass or is there a possibility to add this function to the qpushbutton?

    Anh

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

      Hi
      Normally you subclass the pushbutton and add it.
      When this is not practical, an event filter can be used but
      subclass is both easier and faster. (IMHO)

      Note. Using Creators promote feature, u can have QPushButtons in the UI replaced
      with your subclass very easy.
      http://doc.qt.io/qt-4.8/designer-using-custom-widgets.html

      Think of promote as "Replace at runtime" without you do anything.

      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