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? GridLayout 2 by 2 Widgets with vertical Splitter between row 1 and 2?

How to? GridLayout 2 by 2 Widgets with vertical Splitter between row 1 and 2?

Scheduled Pinned Locked Moved General and Desktop
qsplittergridlayout
4 Posts 2 Posters 2.3k 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.
  • H Offline
    H Offline
    HappyCoder
    wrote on 20 Jul 2015, 12:06 last edited by
    #1

    Hello,

    i need a grid layout (2 by 2 widgets) and between both rows a vertical splitter.
    How do i do that? Is that possible?

    Thx

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 20 Jul 2015, 22:31 last edited by
      #2

      Hi,

      Something like a QSplitter containing two widgets which will have QVBoxLayout and contain your 2 widgets ?

      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
      0
      • H Offline
        H Offline
        HappyCoder
        wrote on 22 Jul 2015, 05:52 last edited by
        #3

        Hi,
        W1 and W3 are plots, and W2 and W4 are legends. W2 and W4 can change the width and
        the layout broke.

        W1 W2
        ====== Splitter
        W3 W4

        In that case the upper and lower QVBoxLayout are independent and i need to control the width
        of W1 and W3 by myself.

        I found a similar solution

        W1 W2
        === === (two Splitter)
        W3 W4

        I use two splitter and but the to splitter into a grid (or horis. layout) . In that case W1 is aligned to W3 and W2 to W4.
        This needs a signal/slot connection of both splitters but it is working.

        Stefan

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 22 Jul 2015, 19:54 last edited by
          #4

          Shouldn't the legend be part of the plot ?

          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
          0

          1/4

          20 Jul 2015, 12:06

          • Login

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