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

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 10 Nov 2021, 19:43 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

    E 1 Reply Last reply 10 Nov 2021, 19:45
    0
    • J Offline
      J Offline
      JoeCFD
      wrote on 10 Nov 2021, 19:52 last edited by
      #3

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

      L 1 Reply Last reply 19 Nov 2021, 04:29
      1
      • L Lightshadown
        10 Nov 2021, 19:43

        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

        E Offline
        E Offline
        eyllanesc
        wrote on 10 Nov 2021, 19:45 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
        • J Offline
          J Offline
          JoeCFD
          wrote on 10 Nov 2021, 19:52 last edited by
          #3

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

          L 1 Reply Last reply 19 Nov 2021, 04:29
          1
          • J JoeCFD
            10 Nov 2021, 19:52

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

            L Offline
            L Offline
            Lightshadown
            wrote on 19 Nov 2021, 04:29 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