Results 1 to 9 of 9

Thread: How to group items??

  1. #1
    Join Date
    Oct 2009
    Posts
    105
    Thanked 4 Times in 2 Posts
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default How to group items??

    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.
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to group items??

    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.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Oct 2009
    Posts
    105
    Thanked 4 Times in 2 Posts
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to group items??

    Hi
    Here i've attached screenshot of output window. Plz tell me how to do the border line.

    Thank u.
    Attached Files Attached Files

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to group items??

    Are you using some stylesheet ?
    The bordere should be drawn by default in a groupbox. Unless you set it to flat, or modify stylesheet

  5. #5
    Join Date
    Oct 2009
    Posts
    105
    Thanked 4 Times in 2 Posts
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to group items??

    Quote Originally Posted by aamer4yu View Post
    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.

  6. #6
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to group items??

    frame stylesheet i've changed.
    Modify the stylesheet then to show border with desired color

  7. #7
    Join Date
    Oct 2009
    Posts
    105
    Thanked 4 Times in 2 Posts
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to group items??

    Quote Originally Posted by aamer4yu View Post
    Modify the stylesheet then to show border with desired color
    Hi Aamer
    i tried like
    Qt Code:
    1. this->groupBox->setStyleSheet("border: 1px solid gray;""border-radius: 5px;");
    To copy to clipboard, switch view to plain text mode 

    But the output is not coming properly.

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

  8. #8
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to group items??

    What if you change the color from gray to white or any other ?
    Your background also seems to be gray !

  9. #9
    Join Date
    Oct 2009
    Posts
    105
    Thanked 4 Times in 2 Posts
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to group items??

    Quote Originally Posted by aamer4yu View Post
    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.
    Attached Files Attached Files

Similar Threads

  1. Group Box
    By bmn in forum Qt Programming
    Replies: 1
    Last Post: 5th May 2008, 11:36
  2. Group Memberships
    By mchara in forum General Discussion
    Replies: 1
    Last Post: 14th November 2007, 10:33
  3. group box
    By me_here_me in forum Qt Programming
    Replies: 3
    Last Post: 7th September 2007, 19:28
  4. QAction group
    By mickey in forum Newbie
    Replies: 1
    Last Post: 12th July 2006, 19:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.