Examples of QDoubleValidator


Examples of com.trolltech.qt.gui.QDoubleValidator

    QGridLayout passwordGrid = new QGridLayout();
    QGridLayout buttonGrid = new QGridLayout();
   
   
    longitude = new QLineEdit();
    QDoubleValidator longVal = new QDoubleValidator(-180.0,180.0,4,longitude);
    longVal.setNotation(Notation.StandardNotation);
    longitude.setValidator(longVal);
   
    latitude = new QLineEdit();
    QDoubleValidator latVal = new QDoubleValidator(-90.0,90.0,4,latitude);
    latVal.setNotation(Notation.StandardNotation);
    latitude.setValidator(latVal);
   
    altitude = new QLineEdit();
    QDoubleValidator altVal = new QDoubleValidator(-9999.0,9999.0,4,altitude);
    altVal.setNotation(Notation.StandardNotation);
    altitude.setValidator(altVal);

   
    passwordGrid.addWidget(new QLabel(tr("Longitude")), 1,1);
    passwordGrid.addWidget(longitude, 1, 2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.