Forums

OverviewFelgo 2 Support (Qt 5) › AppButton strange behaviour

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22917

    Nicola

    Hi,

    i have this code:

    AppButton {
                anchors.top: contentRegistration.bottom
                anchors.right: contentRegistration.right
                anchors.topMargin: dp(10)
                text: qsTr("Save")
                enabled:  (txtName.text.length > 0 && txtLastName.text.length > 0 && txtStreet.text.length > 0 &&
                          txtCity.text.length > 0 && txtPhone.text.length > 0)
                onClicked: {
                   
                }
            }
    
    
    

    Where the textXXXX are AppTextField, i have a strange behaviour on some Android device the button is correct enabled when all the textfield are filled, instead on some device the button is no enabled, i see that the button is enabled while changing the focus on the text field for 1 second but return soon disabled.

    Any idea to resolve?

    #22920

    Alex
    Felgo Team

    Hi,

    this is most likely caused by predictive text features, like dictionary enabled on the keyboard. As long as the predicted word is not accepted, it is not reflected by the actual text property. Instead, you can use the displayText property here, which holds anything currently visible to the user, including the predictive text.

    Cheers,
    Alex

    #22948

    Nicola

    Thanks!

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