Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Make TreeView flickable
Forum Updated to NodeBB v4.3 + New Features

Make TreeView flickable

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 4 Posters 2.5k Views 2 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.
  • P Offline
    P Offline
    Pheelbert
    wrote on last edited by
    #1

    Says here that TreeView inherits from ScrollView: http://doc.qt.io/qt-5/qml-qtquick-controls-treeview.html

    Compared to ListView which inherits from Flickable: http://doc.qt.io/qt-5/qml-qtquick-listview.html

    Is there a way to make TreeView also flick instead (or in addition to) scrolling? Would be much better from tablets!

    Thanks.

    P 1 Reply Last reply
    0
    • K Offline
      K Offline
      Kofr
      wrote on last edited by
      #2

      in QML designer under android there is quite good example of flickable tabs!

      1 Reply Last reply
      0
      • P Pheelbert

        Says here that TreeView inherits from ScrollView: http://doc.qt.io/qt-5/qml-qtquick-controls-treeview.html

        Compared to ListView which inherits from Flickable: http://doc.qt.io/qt-5/qml-qtquick-listview.html

        Is there a way to make TreeView also flick instead (or in addition to) scrolling? Would be much better from tablets!

        Thanks.

        P Offline
        P Offline
        Pheelbert
        wrote on last edited by
        #3

        Bump, sorry but I really need this! Do I need to change the qt source and recompile?

        p3c0P 1 Reply Last reply
        0
        • P Pheelbert

          Bump, sorry but I really need this! Do I need to change the qt source and recompile?

          p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          @Pheelbert TreeView doesnot inherit Flickable so AFAIK that is not possible. Even if you put TreeView inside ScrollView or Flickable it wont flick the items but the whole TreeView.

          157

          1 Reply Last reply
          1
          • B Offline
            B Offline
            bmurphy
            wrote on last edited by
            #5

            This is a highly desirable feature to many people I believe, myself included.

            Another part of TableView that should be improved is dynamic rowHeight. Having your Text wordWrap screws with the height calculation and I'm about to spend a day or more creating my own QML implementation of a combination TextMetrics with QML exposed functionality for QFontMetricsF (TextMetrics doesn't have any options for wordWrap).

            I've seen the above issue unresolved in many blogs, ideas on a workaround would be greatly appreciated.

            p3c0P 1 Reply Last reply
            0
            • B bmurphy

              This is a highly desirable feature to many people I believe, myself included.

              Another part of TableView that should be improved is dynamic rowHeight. Having your Text wordWrap screws with the height calculation and I'm about to spend a day or more creating my own QML implementation of a combination TextMetrics with QML exposed functionality for QFontMetricsF (TextMetrics doesn't have any options for wordWrap).

              I've seen the above issue unresolved in many blogs, ideas on a workaround would be greatly appreciated.

              p3c0P Offline
              p3c0P Offline
              p3c0
              Moderators
              wrote on last edited by
              #6

              @bmurphy You can make a feature request at bugreports.qt.io. Also you can try asking the same on http://lists.qt-project.org/mailman/listinfo/interest or http://lists.qt-project.org/mailman/listinfo/development.

              157

              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