1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
//! [0] imageLabel->resize(imageLabel->pixmap()->size()); //! [0] //! [1] if (!imageLabel->pixmap()) qFatal("ASSERT: "imageLabel->pixmap()" in file ..."); //! [1] //! [2] qmake "CONFIG += debug" foo.pro //! [2] //! [3] qmake "CONFIG += release" foo.pro //! [3] //! [4] scrollBar->setValue(int(factor * scrollBar->value())); //! [4]