Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Input form validation
QtWS25 Last Chance

Input form validation

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 87 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    irakli
    wrote last edited by
    #1

    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?

    JonBJ 1 Reply Last reply
    0
    • I irakli

      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?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote last edited by
      #2

      @irakli
      Since this is a QML question, please stick with your original post at https://forum.qt.io/topic/161825/dialog-input-form-validation. Otherwise it can waste responders' efforts.

      1 Reply Last reply
      0
      • SGaistS SGaist locked this topic

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved