Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Need to create a Scrollview of rectangles with different labels, icons & touch action

Need to create a Scrollview of rectangles with different labels, icons & touch action

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 2 Posters 1.8k Views 1 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.
  • R Offline
    R Offline
    Rubin Stove
    wrote on last edited by
    #1

    Hi,

    I am a newbie in Qt. I searched a lot but not able to get a good example. I am making a qt app for ios. Here is what I am looking for.

    I need to create a long list of boxes in a scrollable list. Each of the box should behave like & button which has a label & an icon associated to it. This needs to be done in QML & I think I need to create a scrollview of rectangles where each rectangle will have a different label & touch action. But all the examples I am getting are simple listviews with a name & label to it. Can someone point me a nice example or sample code to start with..

    Thanks in advance for any help.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What would the different touch action be ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What would the different touch action be ?

        R Offline
        R Offline
        Rubin Stove
        wrote on last edited by
        #3

        @SGaist Each of the touch action on each of the rectangles should trigger a different action.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What kind of action ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Rubin Stove
            wrote on last edited by
            #5

            all the actions launch a dialog. but each dialog has different content in it.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Each dialog being different or do you have one that you can configure to show what you want ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Rubin Stove
                wrote on last edited by
                #7

                Yeah. makes sense. each dialog configured to show what I want. The dialog is okay to through some different content on each dialog. I just wanted to see a sample structure of this list or scrollview or flickable or whatever you use. Just note that it a scrollable list for ios/android devices

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  What would be differences between the dialogs ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  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