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. How to let the column scrollable?

How to let the column scrollable?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 3 Posters 1.0k Views
  • 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.
  • M Offline
    M Offline
    Mr Pang
    wrote on last edited by
    #1

    My code is like this:

    Column {
        Repeater {
            model: 1000
            CheckBox {
                 text: "index " + index
            }
        }
    }
    
    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by p3c0
      #2

      @Mr-Pang Add it inside ScrollView. If you want it to be smooth and animated use Flickable inside it too.

      And then if you feel that there should be some built-in type for this then use ListView

      157

      M 1 Reply Last reply
      2
      • p3c0P p3c0

        @Mr-Pang Add it inside ScrollView. If you want it to be smooth and animated use Flickable inside it too.

        And then if you feel that there should be some built-in type for this then use ListView

        M Offline
        M Offline
        Mr Pang
        wrote on last edited by
        #3

        @p3c0
        But I don't know how to use Repeater inside ListView

        Julien BJ 1 Reply Last reply
        0
        • M Mr Pang

          @p3c0
          But I don't know how to use Repeater inside ListView

          Julien BJ Offline
          Julien BJ Offline
          Julien B
          wrote on last edited by Julien B
          #4

          Hello @Mr-Pang,

          You don't need to use a repeater, but model and delegate.

          Have a look in the example provided here Move QML ListView via buttons

          M 1 Reply Last reply
          1
          • Julien BJ Julien B

            Hello @Mr-Pang,

            You don't need to use a repeater, but model and delegate.

            Have a look in the example provided here Move QML ListView via buttons

            M Offline
            M Offline
            Mr Pang
            wrote on last edited by
            #5

            @Julien-B
            I see. model can be given a number directly.

            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