Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_gui_widgets_qscrollarea.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
6QImage image("happyguy.png");
8
10scrollArea->setBackgroundRole(QPalette::Dark);
\inmodule QtGui
Definition qimage.h:37
The QLabel widget provides a text or image display.
Definition qlabel.h:20
void setPixmap(const QPixmap &)
Definition qlabel.cpp:339
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
Definition qpixmap.cpp:1437
The QScrollArea class provides a scrolling view onto another widget.
Definition qscrollarea.h:17
void setWidget(QWidget *widget)
Sets the scroll area's widget.
Definition image.cpp:4
QLabel * imageLabel
[0]
QImage image("happyguy.png")