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. A quick question about layouts
Forum Updated to NodeBB v4.3 + New Features

A quick question about layouts

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 1.5k Views 4 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.
  • D Offline
    D Offline
    Dohisev
    wrote on last edited by
    #1

    What would be the difference between the borderlayout to structuring something similar to this using regular layouts and size hinting?

    kshegunovK 1 Reply Last reply
    0
    • D Dohisev

      What would be the difference between the borderlayout to structuring something similar to this using regular layouts and size hinting?

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by kshegunov
      #2

      The border layout is an example application, but I really don't understand the question. What would be the difference how?

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        To recreate the same using regular layouts requires multiple layouts and
        extra tweaking to get same "Stay around center" as QMainWindow have pr default
        and this sample.

        So there would be no real difference if both resize the same. Make it your self provide
        good training but if you need such layout, mainwindow might just make more sense.

        1 Reply Last reply
        2
        • D Offline
          D Offline
          Dohisev
          wrote on last edited by
          #4

          Yes, I'm having in mind to create a kind of sidebar on the left side and the content on the right side, I don't think that I will need that borderlayout approach right?

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

            Hi,

            Aren't you trying to re-invent QMainWindow ? From your description, it looks like you could use a custom QToolBar on the left or a fixed QDockWidget and the central widget for the rest or maybe one or more QDockWidget on the right.

            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
            • D Offline
              D Offline
              Dohisev
              wrote on last edited by
              #6

              Yes, I could use a QToolBar on the left side as the sidebar and customize the buttons and as the main content I could use a QStackedWidget to switch between the pages.
              I would probably need to create a custom button to customize a few things.
              I really don't think I will be needing that borderlayout approach for that.

              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