In this article we will see how we can get the finished signal of the QColorDialog widget. This signal is emitted when the dialog’s result code has been set, either by the user or by calling
Note : This signal is not emitted when hiding the dialog with hide() or setVisible(false). This includes deleting the dialog while it is visible.
In order to do this we use
finished method with the QColorDialog object
Syntax : dialog.finished.connect(lambda: print(“Finished Signal”)
Argument : It takes method as argument
Action Performed : It will call the passed method when finished signal emitted
Below is the implementation
Finieshed Signal Emitted
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.