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. How to add padding in QSplitter ?
Forum Updated to NodeBB v4.3 + New Features

How to add padding in QSplitter ?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 444 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1

    i want to add padding between widget inside splitter.

    Here in below picture you can see that my yellow button touch the left side i want to add padding at left and right.

    splitter.png

    How to Add padding between widget inside splitter ?

    artwawA 1 Reply Last reply
    0
    • Q Qt embedded developer

      i want to add padding between widget inside splitter.

      Here in below picture you can see that my yellow button touch the left side i want to add padding at left and right.

      splitter.png

      How to Add padding between widget inside splitter ?

      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      @Qt-embedded-developer I usually do it in the layout that widgets are placed in.

      For more information please re-read.

      Kind Regards,
      Artur

      Q 1 Reply Last reply
      0
      • artwawA artwaw

        @Qt-embedded-developer I usually do it in the layout that widgets are placed in.

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by
        #3

        @artwaw can you give example?

        artwawA 1 Reply Last reply
        0
        • Q Qt embedded developer

          @artwaw can you give example?

          artwawA Offline
          artwawA Offline
          artwaw
          wrote on last edited by
          #4

          @Qt-embedded-developer every journey differs but please start reading here https://doc.qt.io/qt-5/layout.html where the general concepts are laid out.
          In general you place your widgets in layouts so you can handle how they are, well, laid out - that includes margins, spacing, all that stuff.

          For more information please re-read.

          Kind Regards,
          Artur

          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