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

Forums

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

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded