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. large number of check box in page: repeater or arrays?
Forum Updated to NodeBB v4.3 + New Features

large number of check box in page: repeater or arrays?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 423 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.
  • gfxxG Offline
    gfxxG Offline
    gfxx
    wrote on last edited by gfxx
    #1

    I would insert a large number of check box on mypage (100 or 200) and setting it on startup using setting and state machine.

    So I need to iterate trought check box using for statement to save and set control state. For these pourpose better is using arrays or repeater? I would set text property and checked/unchecked state.... for example the name of control is stored in qlist model ....

    is possible to have minimal example?

    bkt

    gfxxG 1 Reply Last reply
    0
    • gfxxG gfxx

      I would insert a large number of check box on mypage (100 or 200) and setting it on startup using setting and state machine.

      So I need to iterate trought check box using for statement to save and set control state. For these pourpose better is using arrays or repeater? I would set text property and checked/unchecked state.... for example the name of control is stored in qlist model ....

      is possible to have minimal example?

      gfxxG Offline
      gfxxG Offline
      gfxx
      wrote on last edited by
      #2

      @gfxx At the end I use repeater .... i can refer to the control using these:

      myRepeaterId.itemAt(integerIndex).text = "hello world" /* for change button text */
      myRepeaterId.itemAt(integerIndex).checked = true /* for change from unchecked to checked*/
      

      regards

      bkt

      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