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 show a resize-bar between widgets in a QSplitter?
Forum Updated to NodeBB v4.3 + New Features

How to show a resize-bar between widgets in a QSplitter?

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 1.2k 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.
  • S Offline
    S Offline
    Simmania
    wrote on last edited by
    #1

    Hi,
    I'm using a QSplitter to display several widgets. How can I display a resizing bar between each two widgets in the QSlitter. So that the user knows he can resize it.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mpergand
      wrote on last edited by
      #2

      @Simmania said in How to show a resize-bar between widgets in a QSplitter?:

      How can I display a resizing bar between each two widgets in the QSlitter.

      You can set the width of the handle with:
      setHandleWidth(int)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Simmania
        wrote on last edited by
        #3

        I do not see a handle, even when using setHandleWidth(). Do I have to enable it somewhere?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mpergand
          wrote on last edited by
          #4

          Post an image of what you have on screen.

          S 1 Reply Last reply
          0
          • M mpergand

            Post an image of what you have on screen.

            S Offline
            S Offline
            Simmania
            wrote on last edited by Simmania
            #5

            @mpergand
            c096a3a9-b7b2-4d01-8955-d66a16e0c1b3-afbeelding.png

            Main window uses a vertical oriented QSplitter .
            Top three is a horzontal oriented QSplitter.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mpergand
              wrote on last edited by
              #6

              These splitters are fonctional ?

              On mac, there is a round spot in the middle
              But on windows I don't know.

              S 1 Reply Last reply
              0
              • M mpergand

                These splitters are fonctional ?

                On mac, there is a round spot in the middle
                But on windows I don't know.

                S Offline
                S Offline
                Simmania
                wrote on last edited by
                #7

                @mpergand
                What do you do for this except creating a QSplitter and adding the widgets?
                Are there any other methods of the QSplitter you call?

                M JonBJ 2 Replies Last reply
                0
                • S Simmania

                  @mpergand
                  What do you do for this except creating a QSplitter and adding the widgets?
                  Are there any other methods of the QSplitter you call?

                  M Offline
                  M Offline
                  mpergand
                  wrote on last edited by
                  #8

                  @Simmania said in How to show a resize-bar between widgets in a QSplitter?:

                  What do you do for this except

                  Nothing, is standard on mac.
                  You can create your own QSplitterHandle

                  1 Reply Last reply
                  1
                  • S Simmania

                    @mpergand
                    What do you do for this except creating a QSplitter and adding the widgets?
                    Are there any other methods of the QSplitter you call?

                    JonBJ Online
                    JonBJ Online
                    JonB
                    wrote on last edited by JonB
                    #9

                    @Simmania
                    Not my area but have you looked at e.g. https://stackoverflow.com/questions/2545577/qsplitter-becoming-undistinguishable-between-qwidget-and-qtabwidget and https://stackoverflow.com/questions/22964113/splitter-in-qt5-is-invisible ? QSplitter handle stuff (https://doc.qt.io/qt-5/qsplitterhandle.html).

                    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