blob: 46c1522e69b9c8c228f7ab07e2efb0212b8aa226 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
Copyright (C) 2023 The Qt Company Ltd.
SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
Setting up a project for using Example icon library
1. Add ExampleIconsPrivate component to your project CMakeList.txt file
...
find_package(Qt6
REQUIRED COMPONENTS Core Gui Widgets ExampleIconsPrivate
)
target_link_libraries(imageviewer PRIVATE
Qt6::Core
Qt6::Gui
Qt6::Widgets
Qt6::ExampleIconsPrivate
)
...
2. Create image resource in your application code:
...
bool success = img->load(":/qt-project.org/examples/icons/32x32/document-new.png");
...
|