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. QHBoxLayout background is not transparent, its white
Forum Update on Monday, May 27th 2025

QHBoxLayout background is not transparent, its white

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.0k Views
  • 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.
  • L Offline
    L Offline
    Lightshadown
    wrote on last edited by
    #1

    Hi, im grouping all the elements in my desing inside a Layout, but for some reason when im doing the desing it appers transparent (is perfect) but when i compile or previsualize my desing, it shows a white background, basically it behaves like a widget but if i search for setstylesheet i got nothing, as anyone else encounter this behaivior? i want to set the white part to transparent.

    error background.png

    eyllanescE 1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #3

      assign it to a widget and change the background color of the widget

      L 1 Reply Last reply
      1
      • L Lightshadown

        Hi, im grouping all the elements in my desing inside a Layout, but for some reason when im doing the desing it appers transparent (is perfect) but when i compile or previsualize my desing, it shows a white background, basically it behaves like a widget but if i search for setstylesheet i got nothing, as anyone else encounter this behaivior? i want to set the white part to transparent.

        error background.png

        eyllanescE Offline
        eyllanescE Offline
        eyllanesc
        wrote on last edited by
        #2

        @Lightshadown The layouts are not visual elements so they do not have a background color (neither white nor transparent). Layouts are just objects that manage the position and size of the widgets.

        If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

        1 Reply Last reply
        2
        • JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by
          #3

          assign it to a widget and change the background color of the widget

          L 1 Reply Last reply
          1
          • JoeCFDJ JoeCFD

            assign it to a widget and change the background color of the widget

            L Offline
            L Offline
            Lightshadown
            wrote on last edited by
            #4

            @JoeCFD actually what i did was to move everything inside a frame, with stylesheet and set the background to transparent and the border to 0 Px, that did the trick

            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