Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
main.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
4
#
include
<
QtGui
>
5
#
include
<
QApplication
>
6
#
include
<
QLabel
>
7
#
include
<
QPixmap
>
8
9
int
main
(
int
argc,
char
*argv[])
10
{
11
QApplication app(argc, argv);
12
13
//! [0]
14
QLabel topLevelLabel;
15
QPixmap pixmap(
":/images/tux.png"
);
16
topLevelLabel.setPixmap(pixmap);
17
topLevelLabel.setMask(pixmap.mask());
18
//! [0]
19
20
topLevelLabel.show();
21
return
app.exec();
22
}
main
int main(int argc, char *argv[])
[ctor_close]
Definition
src_corelib_animation_qpropertyanimation.cpp:100
qtbase
src
widgets
doc
snippets
widget-mask
main.cpp
Generated on
for Qt by
1.14.0