Merge pull request #2956 from jeandet/Qt_resource_in_subfolder
Qt resource in subfolderpull/2949/merge
commit
22be11514d
6 changed files with 24 additions and 1 deletions
@ -0,0 +1,10 @@ |
||||
#include <QImage> |
||||
|
||||
int main(int argc, char **argv) { |
||||
Q_INIT_RESOURCE(stuff3); |
||||
QImage qi(":/thing.png"); |
||||
if(qi.width() != 640) { |
||||
return 1; |
||||
} |
||||
return 0; |
||||
} |
@ -0,0 +1,4 @@ |
||||
|
||||
qresources = qtmodule.preprocess(qresources : 'resources/stuff3.qrc') |
||||
|
||||
app = executable('subfolder', 'main.cpp', qresources, dependencies : qtdep) |
@ -0,0 +1,6 @@ |
||||
<!DOCTYPE RCC> |
||||
<RCC version="1.0"> |
||||
<qresource> |
||||
<file>thing.png</file> |
||||
</qresource> |
||||
</RCC> |
After Width: | Height: | Size: 39 KiB |
Loading…
Reference in new issue