Hi,
I want to send pressed() event to an object of subclass of QPushButton. How can I do that. I see 'emit' keyword to emit signals, but I am not sure how to user that.
Can someone please explain me.
Thanks
Hi,
I want to send pressed() event to an object of subclass of QPushButton. How can I do that. I see 'emit' keyword to emit signals, but I am not sure how to user that.
Can someone please explain me.
Thanks
Are you talking about events, or signals?
signals are emitted with emit, events is a bit more complicated issue, which usually you don't need.
Have a look at this:
http://doc.qt.nokia.com/latest/signalsandslots.html
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
dpatel (31st December 2010)
This rude guy who doesn't want you to answer his questions.
Note: An "expert" here is just someone that's posted a lot.
"The fact of where you do the encapsulation is meaningless." - Qt Certified Developer and forum moderator
Cupidvogel (14th February 2016)
Bookmarks