co.podzim.qemailvalidator

A class that provides a QValidator to validate emails

version 1.0.2

To install:

❯ qpm install co.podzim.qemailvalidator

QEmailValidator

A class that provides a QValidator to validate emails

Can be used just like any QValidator.

Installation

The package is provided as a qpm package, co.podzim.qemailvalidator. To install:

  1. Install qpm (See GitHub - Installing, for windows see below)
  2. In your projects root directory, run qpm install co.podzim.qemailvalidator
  3. Include qpm to your project by adding include(vendor/vendor.pri) to your .pro file

QML Usage

import QEmailValidator 1.0

TextField {
  id: emailField
  placeholderText: qsTr("Email")
  validator: QEmailValidator{}
}

Label {
  id: emailError
  visible: emailField.acceptableInput // only show if email is invalid
  color: "red"
  text: "Invalid Email"
}

Check their GitHub - Usage for App Developers to learn more about qpm.

Important for Windows users: QPM Version 0.10.0 (the one you can download on the website) is currently broken on windows! It's already fixed in master, but not released yet. Until a newer versions gets released, you can download the latest dev build from here:

Author

Long Nguyen

Info
View on Github

License: MIT

Installs
Today 6
This week 6
This month 6
This year 6
Total 6
Dependencies

None.

Versions