Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. layout
    Log in to post
    • All categories
    • bibasmall

      Solved Can't set fixed/minimal width for QMenuBar CornerWidget
      General and Desktop • qt6 layout issues c++ layout qmenubar • • bibasmall

      5
      0
      Votes
      5
      Posts
      150
      Views

      bibasmall

      @Chris-Kawa, oh, pardon my blindness, it really works. I found that the stylesheet is resetting the width of the button in my case.

    • R

      Unsolved Why I'm not secceed to change the posiyion of the button? helpp c++ qt
      Tools • layout c++ position button • • RuWex

      13
      0
      Votes
      13
      Posts
      220
      Views

      JonB

      @JonB
      You have (for unknown reason) placed a button at row #5 column #6 and spanning 5 rows and 2 columns. It's not going to make much sense, is perhaps not what you intend, and will move around when you place other widgets on the grid layout.

      I know nothing about "In the gray square there should have been a cube. that I opened",

      The second shot shows about what I expect when you didn't use any layout. If the 3 lines of text there were deliberate you would need to put them into the layout now if you expect to see them.

    • Emrecp

      Solved Layout for QScrollArea to expand Horizontally&Vertically
      General and Desktop • qscrollarea layout qgridlayout qhboxlayout horizontal • • Emrecp

      4
      0
      Votes
      4
      Posts
      156
      Views

      Emrecp

      @Chris-Kawa This worked, thank you very much!

    • L

      Unsolved Why Layout is reparenting to the top most widget through addChildLayout?
      General and Desktop • layout • • leonardoMB

      9
      0
      Votes
      9
      Posts
      443
      Views

      JoeCFD

      @leonardoMB said in Why Layout is reparenting to the top most widget through addChildLayout?:

      What will make _qButton child of widget_1. Where did I go wrong? printing it I have that all are child of widget_1

      What will make _qButton child of widget_1?
      _qButton = new QPushButton( widget_1 ) or _qButton->setParent( widget_1 ); will make _qButton the child of widget_1.
      The layouts of widget_1 can have children of other widgets.

    • B

      Solved Resize window screen when all tabs of tabWidget closed
      General and Desktop • qlabel qtabwidget resize layout • • BigBen

      5
      0
      Votes
      5
      Posts
      154
      Views

      B

      I see. Thank you.

    • A

      Solved Offset QLabel from widget center.
      General and Desktop • layout • • Aidan34

      3
      0
      Votes
      3
      Posts
      157
      Views

      A

      @JoeCFD That in combination with setMaximumSize seems to work, thanks!

    • N

      Unsolved Newbie Help with Code
      General and Desktop • layout source code mobile • • Nuakount

      11
      0
      Votes
      11
      Posts
      918
      Views

      N

      Ok, how about this - Anybody know a way I can add code or set env to enable rotation, (portrait/landscape, or...). As it is, the qt apps don't respond to phone sensors, but are fixes...

    • J

      Solved [PySide6] GraphicsView not showing - I'm evidently doing it wrong!
      Qt for Python • pyside6 qgraphicsview layout background • • jim87

      8
      0
      Votes
      8
      Posts
      303
      Views

      SGaist

      Great !

      Since you have it working now, please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)

    • H

      Unsolved QLabels have same width regardless of text?
      General and Desktop • qlabel layout widget • • hsetlik

      9
      0
      Votes
      9
      Posts
      402
      Views

      H

      @eyllanesc Oh I see, it's working now. Thank you!

    • A

      Solved [QtDesigner] Can't set layout for Widget under a QGridLayout
      Tools • qtdesigner qwidget layout layout issues • • Aramir

      3
      0
      Votes
      3
      Posts
      323
      Views

      A

      Thank you for the answer.
      Setting a child did enable the layout selection. I don't understand the logic behind that at all but ok.

      QcmEntryGuess are QWidget I've created on the side. They're only a QLabel nested in two layout 12d3bbf3-2642-4ef6-90a4-71ae4535d2d8-image.png

      Althought my QGridLayout is still only consisted of one row. I'm probably missunderstanding one of its property
      a3d87a05-d1dc-40b4-a478-a67c0a2a0256-image.png

    • K

      Solved QVariantMap as model for Repeater
      QML and Qt Quick • repeater qvariantmap layout • • Kyeiv

      5
      0
      Votes
      5
      Posts
      432
      Views

      raven-worx

      @Kyeiv
      https://doc.qt.io/qt-5/qtquick-modelviewsdata-modelview.html#models

      those are your possibilities

    • Phoenox

      Unsolved Implement custom QML FlowLayout
      QML and Qt Quick • flow layout qml quick flowlayout • • Phoenox

      1
      0
      Votes
      1
      Posts
      201
      Views

      No one has replied

    • A

      Unsolved Dynamic gridLayout and QComboBox using a drop-down menu
      General and Desktop • layout drop-down grid gridview qgridlayout • • AliGB

      1
      0
      Votes
      1
      Posts
      248
      Views

      No one has replied

    • noone

      Solved TableView with exapanding columns
      QML and Qt Quick • qml tableview layout • • noone

      5
      0
      Votes
      5
      Posts
      353
      Views

      noone

      adding onWidthChanged: forceLayout() with columnWidthProvider to TableView works

    • jeanmilost

      Solved ListView - How to refresh rows which content changed without slowdown?
      QML and Qt Quick • listview slow refresh force layout • • jeanmilost

      3
      0
      Votes
      3
      Posts
      656
      Views

      GrecKo

      @jeanmilost said in ListView - How to refresh rows which content changed without slowdown?:

      view.model.dataChanged(view.model.index(0, columnCount - 1), view.model.index(rowCount - 1, columnCount - 1));

      So you are emiting dataChanged from QML? That seems like a bad practice, why can't you do that in the model?

    • D

      Solved Strange QMainWindow Layout behaviour
      General and Desktop • layout qmainwindow size • • DL5EU

      12
      0
      Votes
      12
      Posts
      1124
      Views

      SGaist

      Glad you found out and thanks for the detailed solution !

    • K

      Unsolved RowLaoyut reload/refresh after dynamic anchoring
      QML and Qt Quick • layout anchoring dynamic • • Kyeiv

      1
      0
      Votes
      1
      Posts
      160
      Views

      No one has replied

    • cerr

      Solved problem with aligning text underneath buttons
      General and Desktop • pyqt4 layout qlabel qpushbutton • • cerr

      3
      0
      Votes
      3
      Posts
      267
      Views

      SGaist

      Hi,

      To add a layout to a layout there's the "addLayout" method.

    • _

      Unsolved Possible infinite recursion during toolbar layout on macOS
      General and Desktop • macos layout toolbar • • __lehew

      5
      0
      Votes
      5
      Posts
      268
      Views

      _

      Indeed it is! :( It is something that we are looking into doing for certain this FY.