Dialog input form validation
Unsolved
QML and Qt Quick
-
wrote 21 days ago last edited by
I have a dialog window with standard buttons and different input fields (image upload, name, price, etc). Each field has it's validator, such as int validator, double validator, regex validator. While any field has an inacceptable input the OK button is disabled (enabled if all fields have acceptable values)
I also have unique constraints in database, then I created Q_INVOKABLE method that checks whether name and chosen image are unique. I need to include these unique validations in QML together with other above mentioned validations.
What is the best practice workflow generally? Is there a straightforward way to validate input forms both in place and with DB response?
-
1/1