maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Qt designer help (https://talk.maemo.org/showthread.php?t=79721)

robin92 2011-11-06 14:07

Qt designer help
 
2 Attachment(s)
Hi!
I wounder how I made so when you mark the custom radibutton should some sliders pop up like the images. Or should I do it any other terms?

Hope you undestod :D

demolition 2011-11-06 14:26

Re: Qt designer help
 
Just to confirm you want something like this...
Code:

if(defaultRadio.checked)
{
        defaultSlider.visibility == true;
        softSlider.visibility == false;
        hardSlider.visibility == false;
}

else if(softRadio.checked)
{
        defaultSlider.visibility == false
        softSlider.visibility == true;
        hardSlider.visibility == false;
}

else if(hardRadio.checked)
{
        defaultSlider.visibility == false
        softSlider.visibility == false;
        hardSlider.visibility == true;
}


robin92 2011-11-06 14:32

Re: Qt designer help
 
Quote:

Originally Posted by demolition (Post 1119077)
Just to confirm you want something like this...
Code:

if(defaultRadio.checked)
{
        defaultSlider.visibility == true;
        softSlider.visibility == false;
        hardSlider.visibility == false;
}

else if(softRadio.checked)
{
        defaultSlider.visibility == false
        softSlider.visibility == true;
        hardSlider.visibility == false;
}

else if(hardRadio.checked)
{
        defaultSlider.visibility == false
        softSlider.visibility == false;
        hardSlider.visibility == true;
}


I default, soft and hard is only radibuttons no more (pre installed vibration pattern). Then you press custom and it should pop up 3-4 sliders so you can make vibration pattern by your self.

demolition 2011-11-06 14:43

Re: Qt designer help
 
Quote:

Originally Posted by robin92 (Post 1119079)
I default, soft and hard is only radibuttons no more (pre installed vibration pattern). Then you press custom and it should pop up 3-4 sliders so you can make vibration pattern by your self.

What? The first question had nothing to do with vibration. Back to the beginning:

Quote:

Originally Posted by robin92 (Post 1119071)
Hi!
I wounder how I made so when you mark the custom radibutton should some sliders pop up like the images. Or should I do it any other terms?

Hope you undestod :D

Apologies for seeming dim, obviously I didn't.

Here's what I thought you were asking:

"How can I make sliders pop up, like images, when selecting the associated radio button?"

If you meant something else, please say so.

robin92 2011-11-06 14:46

Re: Qt designer help
 
Quote:

Originally Posted by demolition (Post 1119087)

"How can I make sliders pop up, like images, when selecting the associated radio button?"

If you meant something else, please say so.

yes I mean that.
The slider should pop up when you mark custom radio button

demolition 2011-11-06 15:20

Re: Qt designer help
 
What's wrong with the pseudo code above? The names I've given the objects are based on the ones you've got.

Edit:
If you read through the pseudo code, each slide is made visible when its associated with each radio button is checked. Is there something else you wanted?
NB. it is pseudo-code not JS/C/C++/Py/etc - I don't know what language you're using so just gave you the concept. If you provide more about your code, you might get more specific answers about how to enable thse features.
ps. Just seen in top image "vibration changer". Sorry. I'm using my N900 so some small fonts in images get forgotten about! ?

robin92 2011-11-06 16:19

Re: Qt designer help
 
I use bash as backend and py as frontend.
I use qt designer to make the ui, I dont were I should put the code you gave me :/

EDIT!
Fixed it now with some tests with qt desginer :)


All times are GMT. The time now is 19:47.

vBulletin® Version 3.8.8