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");
    ...
