C

Qt Quick Ultralite image_cache Example

import QmlProject 1.3

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

        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.resourceCachePolicy: "OnDemand"
                // RH850 doesn't have enough internal flash memory
                MCU.resourceCompression: true
        }
}