Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1540

QIPAddressValidator

    XMLWordPrintable

Details

    Description

      It would be a nice feature to have a premade QValidator that specializes in IP Addresses.

      It currently can be done with the QRegExpValidator and something like :

      le = new QLineEdit();
      QRegExp rx( "((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])
      .)

      {3}

      (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9])" );
      le->setValidator(new QRegExpValidator(rx,this));

      But an optimized class would be nice.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            monsen Marius Bugge Monsen
            dettman Dean Dettman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes