C

Qt Quick Ultralite image_cache Example

import QmlProject 1.3

Project {
        mainFile: "image_cache.qml"
        MCU.Config {
                maxResourceCacheSize: 276480
        }

        InterfaceFiles {
                files: [
                "ImageModel.h"
                ]
        }

        ImageFiles {
                files: [
                "images/basse-terre-guadeloupe.jpg",
                "images/grand-canyon-arizona.jpg",
                "images/grand-canyon-national-park.jpg",
                "images/Jokulsarlon-glacier-lagoon-iceland.jpg",
                "images/reine-lofoten-islands.jpg",
                "images/sequoia-national-park.jpg",
                "images/sogn-og-fjordane.jpg",
                "images/yosemite-national-park.jpg",
                ]
                MCU.resourceImagePixelFormat: "RGB332"
                MCU.resourceCachePolicy: "OnDemand"
        }
}