C
Qt Quick Ultralite image_loading Example
// Copyright (C) 2024 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial #include "ImageLoadingApp/image_loading.h" #include "myimageloader.h" #include <qul/application.h> #include <cstdint> int main() { Qul::initHardware(); MyImageProvider myImageProvider; Qul::Application app; app.addImageProvider("myimageprovider", &myImageProvider); Qul::initPlatform(); static ImageLoadingApp::image_loading item; app.setRootItem(&item); while (true) { const uint64_t nextUpdate = app.update(); app.waitUntil(nextUpdate); } }