Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Remove QGroupbox border without mashing layout
Forum Updated to NodeBB v4.3 + New Features

Remove QGroupbox border without mashing layout

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 8.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Moschops
    wrote on last edited by
    #1

    I've got a UI, with several groupboxes (some nested) to handle layout. The layout is fine, but each groupbox has a border, and it looks awful.

    I tried setting the groupbox border width to zero with a style, but that made the contents of the groupbox collide with the title of the groupbox.

    I want all the widgets to remain exactly where they are, but without drawing borders on the groupboxes (or drawing them transparent, or the same colour as the background, or some other means of making them invisible).

    How can I do this?

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      If you use :
      @
      groupBox->setFlat(true);
      @

      then you don't get the borders, but only a line next to the tile

      hope it helps

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved