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

src.gui.widgets.qscrollarea.cpp

//! [0]
        QLabel *imageLabel = new QLabel;
        QImage image("happyguy.png");
        imageLabel->setPixmap(QPixmap::fromImage(image));

        scrollArea = new QScrollArea;
        scrollArea->setBackgroundRole(QPalette::Dark);
        scrollArea->setWidget(imageLabel);
//! [0]



Generated by  Doxygen 1.6.0   Back to index