PDA

View Full Version : OK / Cancel buttons on QColorDialog



fulbay
29th November 2011, 15:02
Hello,

Even if Cancel button the dialog is pressed, the color on the dialog is selected. How can I prevent this case?

Thanks...

bu7ch3r
29th November 2011, 15:45
You probably catch the wrong signal.
If you use : void QColorDialog::currentColorChanged ( const QColor & color )

reconnect to:
void QColorDialog::colorSelected ( const QColor & color )