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

Scalable GUI

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 493 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.
  • N Offline
    N Offline
    NintyS
    wrote on last edited by
    #1

    Hello, I create a scalable GUI with vertical, horizontal layouts and set geometry and when I extend the window then the half of GUI disappear. ( when I narrow the window then GUI works good. )

    ui->verticalLayout_2->setGeometry(QRect( 0, 0, MainWindow::size().width(), MainWindow::size().height() )); // geometry
    

    Zrzut ekranu 2021-05-22 o 10.50.41.png

    Zrzut ekranu 2021-05-22 o 10.50.51.png

    Thank YouT 1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Looks like the tab widget is not set to expand it's children, or something. You should not need to even call setGeometry() manually like that. Check out the tab dialog example for proper implementation: https://doc.qt.io/qt-5/qtwidgets-dialogs-tabdialog-example.html

      (Z(:^

      1 Reply Last reply
      3
      • N NintyS

        Hello, I create a scalable GUI with vertical, horizontal layouts and set geometry and when I extend the window then the half of GUI disappear. ( when I narrow the window then GUI works good. )

        ui->verticalLayout_2->setGeometry(QRect( 0, 0, MainWindow::size().width(), MainWindow::size().height() )); // geometry
        

        Zrzut ekranu 2021-05-22 o 10.50.41.png

        Zrzut ekranu 2021-05-22 o 10.50.51.png

        Thank YouT Offline
        Thank YouT Offline
        Thank You
        wrote on last edited by Thank You
        #3

        @NintyS put some layout on your main page like either horizontal or vertical accourding to your need. I don't think you should use setGeometry Just adding layout to main widget and applying another layout to tab widget will work
        give centralWidget a horizontal layout like

        verticalLayout.addWidget(tabWid);
        

        Let's make QT free or It will go forever

        TRUE AND FALSE <3

        1 Reply Last reply
        1

        • Login

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