Forums

OverviewFelgo 2 Support (Qt 5) › SectionSelect QML

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19982

    Felgo User

    Hi, I need custom selectionSelect QML with day type or how i can’t create like that. Thanks.

    #19985

    Günther
    Felgo Team

    Hi,

    the SectionSelect is a custom made QML type built with basic Qt Quick Components. You can create your own section select in a similar way.
    The main part is the SectionSelect::target, which refers to a ListView item of your application.

    The SectionSelect can then build an internal model based on the ListView data, and provide UI mechanisms to set ListView properties and use functions for controlling the view.

    You can for example use a Connections element to react to changes of ListView properties, e.g.:

    import QtQuick 2.0
    
    Item {
      id: sectionSelect
    
        property ListView target
    
      // ...
    
      Connections {
        target: sectionSelect.target
        onModelChanged: updateModel()
      }
    }

    The updateModel function within the SectionSelect type can then e.g. provide a UI for an adapted version if the target ListView’s model.

    Best,
    Günther

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support