Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QHBoxLayout.addWidget()


    // highlight button
    QGroupBox fontHighlightGroup =  new QGroupBox(tr("Text Highlight"));
    QHBoxLayout fontHighlightLayout = new QHBoxLayout();
    showFontHighlight = new QRadioButton(tr("Show"));
    hideFontHighlight = new QRadioButton(tr("Hide"));
    fontHighlightLayout.addWidget(showFontHighlight);
    fontHighlightLayout.addWidget(hideFontHighlight);
    fontHighlightLayout.setStretch(1, 100);
    fontHighlightGroup.setLayout(fontHighlightLayout);
       
    // Align Left
View Full Code Here


    QGroupBox fontHighlightGroup =  new QGroupBox(tr("Text Highlight"));
    QHBoxLayout fontHighlightLayout = new QHBoxLayout();
    showFontHighlight = new QRadioButton(tr("Show"));
    hideFontHighlight = new QRadioButton(tr("Hide"));
    fontHighlightLayout.addWidget(showFontHighlight);
    fontHighlightLayout.addWidget(hideFontHighlight);
    fontHighlightLayout.setStretch(1, 100);
    fontHighlightGroup.setLayout(fontHighlightLayout);
       
    // Align Left
    QGroupBox alignLeftGroup =  new QGroupBox(tr("Align Left"));
View Full Code Here

    // Align Left
    QGroupBox alignLeftGroup =  new QGroupBox(tr("Align Left"));
    QHBoxLayout alignLeftLayout = new QHBoxLayout();
    showAlignLeft = new QRadioButton(tr("Show"));
    hideAlignLeft = new QRadioButton(tr("Hide"));
    alignLeftLayout.addWidget(showAlignLeft);
    alignLeftLayout.addWidget(hideAlignLeft);
    alignLeftLayout.setStretch(1, 100);
    alignLeftGroup.setLayout(alignLeftLayout);
   
    // Align Center
View Full Code Here

    QGroupBox alignLeftGroup =  new QGroupBox(tr("Align Left"));
    QHBoxLayout alignLeftLayout = new QHBoxLayout();
    showAlignLeft = new QRadioButton(tr("Show"));
    hideAlignLeft = new QRadioButton(tr("Hide"));
    alignLeftLayout.addWidget(showAlignLeft);
    alignLeftLayout.addWidget(hideAlignLeft);
    alignLeftLayout.setStretch(1, 100);
    alignLeftGroup.setLayout(alignLeftLayout);
   
    // Align Center
    QGroupBox alignCenterGroup =  new QGroupBox(tr("Align Center"));
View Full Code Here

    // Align Center
    QGroupBox alignCenterGroup =  new QGroupBox(tr("Align Center"));
    QHBoxLayout alignCenterLayout = new QHBoxLayout();
    showAlignCenter = new QRadioButton(tr("Show"));
    hideAlignCenter = new QRadioButton(tr("Hide"));
    alignCenterLayout.addWidget(showAlignCenter);
    alignCenterLayout.addWidget(hideAlignCenter);
    alignCenterLayout.setStretch(1, 100);
    alignCenterGroup.setLayout(alignCenterLayout);
   
    // Align Right
View Full Code Here

    QGroupBox alignCenterGroup =  new QGroupBox(tr("Align Center"));
    QHBoxLayout alignCenterLayout = new QHBoxLayout();
    showAlignCenter = new QRadioButton(tr("Show"));
    hideAlignCenter = new QRadioButton(tr("Hide"));
    alignCenterLayout.addWidget(showAlignCenter);
    alignCenterLayout.addWidget(hideAlignCenter);
    alignCenterLayout.setStretch(1, 100);
    alignCenterGroup.setLayout(alignCenterLayout);
   
    // Align Right
    QGroupBox alignRightGroup =  new QGroupBox(tr("Align Right"));
View Full Code Here

    // Align Right
    QGroupBox alignRightGroup =  new QGroupBox(tr("Align Right"));
    QHBoxLayout alignRightLayout = new QHBoxLayout();
    showAlignRight = new QRadioButton(tr("Show"));
    hideAlignRight = new QRadioButton(tr("Hide"));
    alignRightLayout.addWidget(showAlignRight);
    alignRightLayout.addWidget(hideAlignRight);
    alignRightLayout.setStretch(1, 100);
    alignRightGroup.setLayout(alignRightLayout);
   
    QGridLayout mainLayout = new QGridLayout();
View Full Code Here

    QGroupBox alignRightGroup =  new QGroupBox(tr("Align Right"));
    QHBoxLayout alignRightLayout = new QHBoxLayout();
    showAlignRight = new QRadioButton(tr("Show"));
    hideAlignRight = new QRadioButton(tr("Hide"));
    alignRightLayout.addWidget(showAlignRight);
    alignRightLayout.addWidget(hideAlignRight);
    alignRightLayout.setStretch(1, 100);
    alignRightGroup.setLayout(alignRightLayout);
   
    QGridLayout mainLayout = new QGridLayout();
    mainLayout.addWidget(undoGroup, 0,0);
View Full Code Here

   
    ok = new QPushButton("OK");
    ok.clicked.connect(this, "okButtonPressed()");

    button.addStretch();
    button.addWidget(ok);
    button.addStretch();
    grid.addLayout(button);   
  }

  // The OK button was pressed
View Full Code Here

   
    createIcons();
    contentsWidget.setCurrentRow(0);
   
    QHBoxLayout horizontalLayout = new QHBoxLayout();
    horizontalLayout.addWidget(contentsWidget);
    horizontalLayout.addWidget(pagesWidget,1);
   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(1);
    buttonLayout.addWidget(okButton);
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.