Results 1 to 2 of 2

Thread: QGroupBox not showing border box

  1. #1
    Join Date
    Dec 2010
    Posts
    7
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QGroupBox not showing border box

    I just upgraded a small GUI from Qt4.8 to Qt5.4. The GUI has three different group boxes arranged horizontally. The group box title and all child content is there and functions properly, but the group box border/box no longer displays. I've tried setting different properties to change fore/background colors and adjust padding to no avail. I haven't found a set function to adjust border width. Something obviously changed from Qt4 to Qt5, but I'm at a loss.

    Here is the code for the creation of one of the group boxes.
    Qt Code:
    1. QGroupBox *processStatusGroup = new QGroupBox(tr("Process Status"), this);
    2. processStatusGroup->setLayout(processStatusLayout);
    3. processStatusGroup->setSizePolicy(QSizePolicy(processStatusGroup->sizePolicy().horizontalPolicy(), QSizePolicy::Fixed));
    To copy to clipboard, switch view to plain text mode 

    I'm compiling and running on CentOS6.

    Any ideas?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QGroupBox not showing border box

    Have you tried with a different widget style? I.e. checked that it is not just the style not drawing borders?

    In any case, a buildable example that shows the problem would help a lot.

    Cheers,
    _

Similar Threads

  1. Add a Widget to border(frame) of QGroupBox
    By mohammadmohsen in forum Qt Programming
    Replies: 1
    Last Post: 14th May 2014, 12:33
  2. Replies: 0
    Last Post: 9th January 2013, 09:41
  3. Replies: 2
    Last Post: 21st March 2012, 14:30
  4. Styling border for QGroupBox
    By Paluth in forum Qt Programming
    Replies: 0
    Last Post: 8th February 2012, 14:44
  5. Showing QWidget border around the window
    By maverick_pol in forum Qt Programming
    Replies: 2
    Last Post: 20th March 2008, 20:14

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.