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 central widget border.
Forum Update on Monday, May 27th 2025

Remove central widget border.

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.1k 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.
  • C Offline
    C Offline
    Carlos Delgado
    wrote on last edited by Carlos Delgado
    #1

    Hi, does anyone know how to remove this border...

    Captura.PNG

    I only have the central widget, with a horizontal layout, and a frame and a push button inside.
    I've already tried to set the margin, padding, and spacing to 0 and more things, I'm kinda stuck.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Which border exactly ?
      How are you building your widget ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        Which border exactly ?
        How are you building your widget ?

        C Offline
        C Offline
        Carlos Delgado
        wrote on last edited by
        #3

        @SGaist The border between the window border and the frame, I don't really see anything in the properties panel that I can change.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you also set the content margins to 0 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • Pl45m4P Offline
            Pl45m4P Offline
            Pl45m4
            wrote on last edited by
            #5

            @Carlos-Delgado I think it's the same as requested here. Have a look at this topic :)

            • https://forum.qt.io/topic/123755/qmainwindow-unable-to-position-widget-to-extreme-left

            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

            ~E. W. Dijkstra

            1 Reply Last reply
            2

            • Login

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