1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <QImage> int main(int argc, char **argv) { #ifndef UNITY_BUILD Q_INIT_RESOURCE(stuff3); Q_INIT_RESOURCE(stuff4); #endif QImage img1(":/thing.png"); if(img1.width() != 640) { return 1; } QImage img2(":/thing4.png"); if(img2.width() != 640) { return 1; } return 0; }