Results 1 to 3 of 3

Thread: How to make a custom qwidget clickable ?

  1. #1
    Join Date
    May 2010
    Posts
    46
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Question How to make a custom qwidget clickable ?

    Is there a way to make a custom widget ( subclass of qwidget ) clickable, similar to how a pushbutton works on click ?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to make a custom qwidget clickable ?

    Quote Originally Posted by ada10 View Post
    Is there a way to make a custom widget ( subclass of qwidget ) clickable, similar to how a pushbutton works on click ?
    Yes, there is.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to make a custom qwidget clickable ?

    See QWidget::mousePressEvent().

    EDIT: too late.

Similar Threads

  1. QStyledItemDelegate with custom QWidget editor
    By stefanadelbert in forum Qt Programming
    Replies: 3
    Last Post: 14th July 2010, 23:19
  2. Make sure that my qwidget is visible
    By alexandernst in forum Newbie
    Replies: 0
    Last Post: 15th April 2010, 17:34
  3. Replies: 8
    Last Post: 16th March 2010, 13:27
  4. How can I add a custom button to a QWidget's title bar
    By JPNaude in forum Qt Programming
    Replies: 4
    Last Post: 22nd February 2010, 10:40
  5. get custom widget to inherit qwidget
    By CopyrightPhilly in forum Qt Tools
    Replies: 3
    Last Post: 4th October 2007, 08:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.