Navigation

    Qt Forum

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

    • SOLVED Struggles with Page/ScrollView/ColumnView centering and scrolling
      QML and Qt Quick • qml scrollview positioning columnlayout • • Chris Jennings  

      2
      0
      Votes
      2
      Posts
      78
      Views

      Hello! I think what is missing is a specification of the contentWidth and contentHeight of the ScrollView. The reason this breaks in the main case is because ColumnLayout has no default width/height. In spite of your specification of an implicitHeight and implicitWidth the ScrollView still must have the content sizes specified manually. So adding: contentWidth: parent.width contentHeight: the_column.height to the ScrollView resolves the issues.
    • SOLVED How do i make ColumnLayout draw items directly under each other
      QML and Qt Quick • spacing order columnlayout • • Kyeiv  

      12
      0
      Votes
      12
      Posts
      87
      Views

      I managed to solve the issue changing the code to: ColumnLayout { id: listcolumn2 Layout.fillWidth: true Layout.preferredWidth: 500 Layout.minimumWidth: 100 spacing: 0 ColumnLayout { id: sublistcolumn1 Text{...} ListView { id: lv1 Layout.fillHeight: true Layout.fillWidth: true Layout.minimumHeight: lv1.contentItem.childrenRect.height } Layout.fillWidth: true Layout.preferredWidth: 500 Layout.minimumWidth: 100 } ColumnLayout { id: sublistcolumn2 Text{...} ListView { id: lv2 Layout.fillHeight: true Layout.fillWidth: true Layout.minimumHeight: lv2.contentItem.childrenRect.height } Layout.fillWidth: true Layout.preferredWidth: 500 Layout.minimumWidth: 100 } Item { id: filler Layout.fillHeight: true Layout.fillWidth: true Layout.preferredWidth: 500 Layout.minimumWidth: 100 } }
    • SOLVED TextField selection handles issue
      QML and Qt Quick • virtualkeyboard dialog textfield columnlayout select all • • Deedss  

      4
      0
      Votes
      4
      Posts
      104
      Views

      Was able to solve it by outcommenting selectionHandle in the custom keyboard style.qml file.
    • SOLVED Unable to get height of ColumnLayout
      QML and Qt Quick • flickable columnlayout • • mbnoimi  

      2
      0
      Votes
      2
      Posts
      1481
      Views

      I found the solution in this post: https://forum.qt.io/post/321757