Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded