Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src.gui.graphicsview.qgraphicslinearlayout.cpp

//! [0]
        QGraphicsScene scene;
        QGraphicsWidget *textEdit = scene.addWidget(new QTextEdit);
        QGraphicsWidget *pushButton = scene.addWidget(new QPushButton);

        QGraphicsLinearLayout *layout = new QGraphicsLinearLayout;
        layout->addItem(textEdit);
        layout->addItem(pushButton);

        QGraphicsWidget *form = new QGraphicsWidget;
        form->setLayout(layout);
        scene.addItem(form);
//! [0]



Generated by  Doxygen 1.6.0   Back to index