C

Qt Quick Ultralite image_loading Example

// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial

#include "image_loading.h"
#include "myimageloader.h"
#include <qul/application.h>

int main()
{
    Qul::initHardware();
    MyImageProvider myImageProvider;
    Qul::Application app;
    app.addImageProvider("myimageprovider", &myImageProvider);

    Qul::initPlatform();
    static struct ::image_loading item;
    app.setRootItem(&item);
    app.exec();
    return 0;
}