PDA

View Full Version : How to make a custom qwidget clickable ?



ada10
1st September 2010, 12:52
Is there a way to make a custom widget ( subclass of qwidget ) clickable, similar to how a pushbutton works on click ?

wysota
1st September 2010, 12:54
Is there a way to make a custom widget ( subclass of qwidget ) clickable, similar to how a pushbutton works on click ?

Yes, there is.

Lykurg
1st September 2010, 12:55
See QWidget::mousePressEvent().

EDIT: too late.