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. Vertical Splitter
Qt 6.11 is out! See what's new in the release blog

Vertical Splitter

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 576 Views 2 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.
  • I Offline
    I Offline
    imanipourmeysa
    wrote on last edited by
    #1

    Hi, I was learning Qt by a tutorial about vertical and horizontal splitter.
    what I do is to add two push buttons and then select them and add splitter between them. for the horizontal splitter there is no problem, and it works fine, however for the vertical splitter I can't do it.
    Here is a screenshot attached that shows my dialog.ui and the app. I don't have any idea why it's not working for the two vertical push buttons. it's just fixed and not resizing.
    I am using Qt 6.5, and thanks for help,
    Meysam.
    ScreenQtShot_VerticalSplitter.JPG

    Chris KawaC 1 Reply Last reply
    0
    • I imanipourmeysa

      Hi, I was learning Qt by a tutorial about vertical and horizontal splitter.
      what I do is to add two push buttons and then select them and add splitter between them. for the horizontal splitter there is no problem, and it works fine, however for the vertical splitter I can't do it.
      Here is a screenshot attached that shows my dialog.ui and the app. I don't have any idea why it's not working for the two vertical push buttons. it's just fixed and not resizing.
      I am using Qt 6.5, and thanks for help,
      Meysam.
      ScreenQtShot_VerticalSplitter.JPG

      Chris KawaC Online
      Chris KawaC Online
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @imanipourmeysa Buttons have a fixed vertical size policy by default, so the splitter container takes a fixed amount of space and can't resize the buttons. To make them resizable change their vertical size policy to something else e.g. minimum.

      I 1 Reply Last reply
      3
      • Chris KawaC Chris Kawa

        @imanipourmeysa Buttons have a fixed vertical size policy by default, so the splitter container takes a fixed amount of space and can't resize the buttons. To make them resizable change their vertical size policy to something else e.g. minimum.

        I Offline
        I Offline
        imanipourmeysa
        wrote on last edited by
        #3

        @Chris-Kawa , Thank you. that's the solution.

        1 Reply Last reply
        0
        • I imanipourmeysa has marked this topic as solved on

        • Login

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