Forums

OverviewFelgo 2 Support (Qt 5) › Custom SimpleRow and Discloure

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #18568

    Nicola

    Hi,

    i defined my object in the SimpleRow, but on ios i have see the Disclosur at the start of the row (i think because it sees an empty SimpleRow) is existing a way to set it at the end of the row?

    Thanks

    Nicola

    #18572

    Günther
    Felgo Team

    Hi,

    it is sufficient to set a text for the SimpleRow to move the disclosure. If you want to keep the row empty, you can also use a blank string text: ” “.

    Here’s an example:

    NavigationStack {
    
          ListPage {
            model: 4
            delegate: SimpleRow {
              text: "Item #"+index // for a bank row, you can set " " as text value
            }
          }

     

    Best,
    Günther

    #18574

    Nicola

    My code is:

    delegate: VP.SimpleRow {
            id: row
    
            onSelected: {
                itemSelected(index, listView.model[index])
            }
    
            VP.Icon {
            ....
            }
    
            VP.AppText {
              ....
            }
    
            ThreeText {
                .. my object, 3 apptext
            }
    }

    Bu it see the disclosure at begin of the row

    #18576

    Günther
    Felgo Team

    You can additionally set the text property for SimpleRow:

    delegate: VP.SimpleRow {
            id: row
            text: " " // adds empty text in Layout within SimpleRow to show disclosure on the right
    
            onSelected: {
                itemSelected(index, listView.model[index])
            }
    
            VP.Icon {
            ....
            }
    
            VP.AppText {
              ....
            }
    
            ThreeText {
                .. my object, 3 apptext
            }
    }

    Best,
    Günther

    #18579

    Nicola

    Solved

Viewing 5 posts - 1 through 5 (of 5 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