PDA

View Full Version : toggle pushbutton between two windows



CAFFRY
23rd December 2016, 10:49
hey guys,

i need your help , when i click on the pushbutton in the mainwindow (it must be toggled) it must change in the dialogue window as the selected one which is also a pushbutton...
can u help me by changing color from one window to the other

d_stranz
24th December 2016, 00:13
Create a slot in the dialog window and connect it to the QPushButton::toggled() signal of the button in your main window. In your slot, change whatever you need to change about the color of the other button depending on whether the "checked" parameter of the signal is true or false.

CAFFRY
28th December 2016, 07:55
when i pressed the three buttons ,say just like selecting a channels...after selecting ,when i press start it must show the selected buttons in the next dialogue..which must be colored.
help me by not using thread..



help me with the sample code

CAFFRY
28th December 2016, 08:15
can u sent me the code...plzz

Added after 6 minutes:

can u sent me the code...

Added after 10 minutes:

can u send me the code