Forums

OverviewFelgo 2 Support (Qt 5) › Coloured tag in SimpleRow

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

    Kool

    Hi All,

    In the QtWS2017 Felgo App the rows have ‘coloured tags’ on the left to indicate the type of talk.

    In the app source code, the list uses a custom delegate that’s quite specific for the app.

    Is there a clean and simple way to get the same thing for a SimpleRow? It’s a nice effect that definitely has a place in my app.

    Many thanks!

    #17255

    G├╝nther
    Felgo Team

    Hi,

    I hope you had a good time at the conference – maybe I’ll be there next time ­čśë

    As the SimpleRow does not support colored tags out-of-the-box this has to be done manually, for example with a custom delegate like in the QtWS app.

    The track indicator is basically just a simple colored Rectangle, so you can also extend the SimpleRow by adding a rectangle on the left side:

        ListPage {
          model: 10
          delegate: SimpleRow {
            text: index
    
            Rectangle {
              anchors.verticalCenter: parent.verticalCenter
              height: parent.height - dp(10)
              width: dp(4)
              x: dp(2)
              color: "red"
            }
          }
        }

     

    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