Examples of QButtonGroup


Examples of com.trolltech.qt.gui.QButtonGroup

    routeId.setText("Route" + new Random().nextInt());
    errorLabel = new QLabel("The edge you selected is not connected with the previous edge!");
    errorLabel.setVisible(false);
    errorLabel.setStyleSheet("background-color: red;");
   
    QButtonGroup bGroup = new QButtonGroup();
    QLabel lSelectionTyp = new QLabel("Please choose what to select on the map:");
    QRadioButton waySelection = new QRadioButton("Way");
    waySelection.setChecked(true);
    waySelection.toggled.connect(this,"waySelectionToggled(boolean)");
    QRadioButton edgeSelection = new QRadioButton("Edge");
    edgeSelection.toggled.connect(this,"edgeSelectionToggled(boolean)");
    bGroup.addButton(waySelection);
    bGroup.addButton(edgeSelection);
    QBoxLayout selBox = new QBoxLayout(Direction.LeftToRight);
    selBox.addWidget(waySelection);
    selBox.addWidget(edgeSelection);
   
    edgesWidget = new QListWidget();
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.