Exemplo n.º 1
0
ConnectionDiagram::ConnectionDiagram(QWidget *parent, VehicleConfigurationSource *configSource) :
    QDialog(parent), ui(new Ui::ConnectionDiagram), m_configSource(configSource), m_background(0)
{
    ui->setupUi(this);
    setWindowTitle(tr("Connection Diagram"));
    setupGraphicsScene();
}
Exemplo n.º 2
0
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    // tab 1 - QGraphicsScene with ScrollPanner
    setupGraphicsScene();

    // tab 2 - QTable with ScrollPanner
    setupTable();

    // tab 3 - QTextBrowser with ScrollPanner
    setupTextBrowser();
}