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

QLineEdit hexadecimal input mask accepts some invalid characters

    XMLWordPrintable

Details

    Description

      Running the code below should result in the validation of hexadecimal characters only (0-9 and A-F).
      However, characters like ALT+0178 ( ² ) ALT+0179 ( ³ ) are still accepted.

      Code to reproduce:
      //---------------------------------
      #include <QtGui>

      int main( int argc, char * argv[] )
      {
      QApplication app( argc, argv );

      QDialog * dlg = new QDialog;
      QHBoxLayout * lout = new QHBoxLayout( dlg );
      QLineEdit * ledit = new QLineEdit( dlg );

      lout->addWidget( ledit );
      ledit->setInputMask( "HH:HH:HH" );
      dlg->show();

      return app.exec();
      }
      //---------------------------------

      Attachments

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

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes