PDA

View Full Version : How to group items??



sudhansu
12th January 2010, 13:26
Hi All
I need to put some combo box in a group. i did like following through designer.
created 2 combobox. Kept them inside a group box. But i need a group box as shown in "Configuration setting", as in attched document.
But in my case the border line(lines as shown in "Configuration setting") is not coming.
How to do.

Plz help.

Thanx.

high_flyer
12th January 2010, 17:08
Can you show a screen shot of the group box you are getting?
The one you attaches should be the one you get in designer.

sudhansu
13th January 2010, 04:01
Hi
Here i've attached screenshot of output window. Plz tell me how to do the border line.

Thank u.

aamer4yu
13th January 2010, 05:08
Are you using some stylesheet ?
The bordere should be drawn by default in a groupbox. Unless you set it to flat, or modify stylesheet

sudhansu
13th January 2010, 05:20
Are you using some stylesheet ?
The bordere should be drawn by default in a groupbox. Unless you set it to flat, or modify stylesheet

yes. in a frame i put the tabwidget, and inside tabwidget groupbox. frame stylesheet i've changed.

aamer4yu
13th January 2010, 05:54
frame stylesheet i've changed.
Modify the stylesheet then to show border with desired color

sudhansu
13th January 2010, 09:15
Modify the stylesheet then to show border with desired color

Hi Aamer
i tried like


this->groupBox->setStyleSheet("border: 1px solid gray;""border-radius: 5px;");

But the output is not coming properly.

Herewith i've attched the screenshot. plz chk it.

aamer4yu
13th January 2010, 13:44
What if you change the color from gray to white or any other ?
Your background also seems to be gray !

sudhansu
15th January 2010, 11:06
What if you change the color from gray to white or any other ?
Your background also seems to be gray !

Thanx aamer. i solved dat one. But did u chk the screenshot.png.zip document i've attched. I've describe the problem. Don't know hw to do it. Plz help
Thank u all.