Solved How Can I add pressed() signal to Qdialog ?
-
Hi All,
How can I add pressed() signal to Qdialog ?
is there any way?
-
Hi
What you mean?
You want a completely empty dialog where it will signal Pressed if u click anywhere? -
No of course it's not completely empty.. There are many widgets on the Qdialog buttons progressbars etc.. But I want to catch if user press on dialog on an empty space..
-
@zeroptr
Ahh
well you can override
mousePressEvent
to catch such clickingvoid yourdiaog::mousePressEvent(QMouseEvent *event)
-
oh
and if u want a signal
just define it
and then
emit DialogPressed()if you want to connect to this signal from "outside"
-
:mousePressEvent(QMouseEvent *event) solved the issue thanks...