Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. layouts
    Log in to post

    • SOLVED Qt webassembly and Layouts
      Qt for WebAssembly • c++ webassembly layouts glitch viewtable • • AliGB  

      5
      0
      Votes
      5
      Posts
      161
      Views

      Found the problem: I had installed Qt v 6.0.0 with emscripten 1.39.8. documents say 1.39.8 should work with Qt v5.15.0. Works after installing the correct Qt version.
    • UNSOLVED How to make a resizable gui?
      General and Desktop • pyqt5 layouts • • Dexter99  

      3
      0
      Votes
      3
      Posts
      58
      Views

      @Dexter99 said in How to make a resizable gui?: How can I solve this See https://doc.qt.io/qt-5/layout.html
    • SOLVED Cannot align controls properly in layouts
      QML and Qt Quick • qml layouts • • Ahti  

      2
      0
      Votes
      2
      Posts
      273
      Views

      hi just move the Layout.fillWidth: true from phone to p_label RowLayout { id: p_layout width: parent.width Label { id: p_label text: "Phone: " font.pixelSize: 13 Layout.fillWidth: true//<< } Label { Layout.alignment: Qt.AlignRight // this doesn't align to right id: phone text: "987654321" font.pixelSize: 13 } }
    • SOLVED Add QWidget above QToolBar in QMainWindow
      General and Desktop • qmainwindow qtoolbar layouts • • Rizwan94  

      5
      0
      Votes
      5
      Posts
      423
      Views

      @Rizwan94 May I ask what was your final implementation? I'm trying to setup a frameless window and add my title/close buttons on top of an existing QMainWindow (from .ui) Thanks in advance
    • UNSOLVED How to set the base size of QDockWidget?
      General and Desktop • resize qdockwidget qtabwidget layouts • • Sailanarmo  

      3
      0
      Votes
      3
      Posts
      303
      Views

      @SGaist That's a fair question and to answer that it's because on the actual dock widget itself, in the production code, there are two widgets that get placed inside the dock widget itself. The topFrame contains the layout for the QTabWidget as you have pointed out. The code that is not present, botFrame contains another QGridLayout. These two then get placed inside the QGridLayout which is the layout of QGroupBox. Then to answer Why am I subclassing a layout to put widgets in it? I guess this is a personal decision and can be argued either way. For now, I will say that you are correct, that the Widget should manage the way the GridLayout adds widgets to them. However, I will argue that since QGridLayout is it's own class; the Widget does not "own" the widgets, rather, the layout owns the widgets since QWidget does not have a addWidgets function in it. Therefore, QGridLayout owns and is responsible for the Widgets that it owns. Hence the decision that the QWidget is the parent, which has a QGridLayout, which the QGridLayout as the Child, has the widgets that belong inside of it. This is a programming decision that I made with these arguments.
    • SOLVED Set fixed margin/spacing/padding between Widgets/Layouts
      General and Desktop • widgets margins layouts spacing • • wrekler  

      8
      0
      Votes
      8
      Posts
      9821
      Views

      @J.Hilk said in Set fixed margin/spacing/padding between Widgets/Layouts: @wrekler you have to set the margin and spacing of the QLayout item to 0 as well, not only in the StyleSheet. I believe those are 2 different pairs of shoes. @JonB said in Set fixed margin/spacing/padding between Widgets/Layouts: To clarify what @J-Hilk is saying (which I believe to be correct): a QLayout is not a QWidget and so cannot have its attributes affected via a stylesheet rule (sadly). That has to be done via explicit, back-end code. Here we go! That was the problem! Layout cannot be affected by a stylesheet file! Now I know how styling layout works! Thank!
    • SOLVED Adding widgets dynamically to layout, causes to them to be misplaced
      General and Desktop • widgets layouts • • Petross404_Petros S  

      28
      0
      Votes
      28
      Posts
      9684
      Views

      @MCam Thank you, I was using plain adjustSize() that's why it didn't resize. Although there is problem that remains even when resizing both layouts : After unmaximising the window, adjustSize gives this result. I will mark the thread as solved because I can make the window to not be able to get maximized, but for completeness shake it would be nice if this result could be avoided. Either way, you saved my day and I thank you very much for that :)
    • UNSOLVED Draw a widget on top af everything else
      General and Desktop • widgets draw layouts windowflags • • MoaMoaK  

      1
      0
      Votes
      1
      Posts
      466
      Views

      No one has replied

    • "ContentFlow"/"GridFlow" item view/positioner/layout
      QML and Qt Quick • mvc grid view layouts flow • • morte  

      6
      0
      Votes
      6
      Posts
      1433
      Views

      I have posted suggestion about adding such positioner to QtQuick: https://bugreports.qt.io/browse/QTBUG-57549
    • SOLVED [SOLVED] Is there anyway to create a scrollable version of Layouts?
      QML and Qt Quick • qml mobile flickable scrolling layouts • • eLim  

      7
      0
      Votes
      7
      Posts
      6234
      Views

      @vladstelmahovsky Thanks. This solves the issue! Shame on me for not reading the documentation more thoroughly.