How to access objects of parent Dialog from Child Dialog .
Hello respected Qt experts and my dear forum friends,
I have a doubt ,Suppose I in my first dialog.ui i have dragged a label through designer and in my second dialog.ui ,I have a radio button called setlabel and a pushbutton called ok,so when i click on radiobutton and click on ok pushbutton,the label should change in my first dialog.ui…so how to do it..using signals and slots..
regards
ranjit
Re: How to access objects of parent Dialog from Child Dialog .
Quote:
Originally Posted by
ranjit.kadam
using signals and slots..
That's one posibillity. An other is to use a simple pointer or use the search function of this board or have a look at the faq section...
Re: How to access objects of parent Dialog from Child Dialog .
ok thanks,hey i have written two slots and but both i have connected to one signal click.now my problem is that one first click i want to call one slot and on second click i want to call different slot..so how to do it..
Re: How to access objects of parent Dialog from Child Dialog .
Make a third slot which gets the click signal. Use a static int for counting the clicks and decide there which function to call.
Re: How to access objects of parent Dialog from Child Dialog .
hey lykurg,I am not getting you,i am not getting you,can u explain with a code snippet,
thanks