35 questions
0
votes
0
answers
22
views
Using stackview with qrc
I have an issue:
qrc:/qt/qml/MyApp/qml/MyApp/Main.qml:11:5: QML StackView: initialItem: qrc:/qml/pages/LoginPage.qml:-1 No such file or directory
File tree
Im strugling to see why it cannot find my ...
-1
votes
1
answer
123
views
How to fix resources.qrc not loading images
I'm trying to load images from my resources.qrc but it doesn't seem to work. For instance:
cardVN1->setImage("://vn1.jpg");// The set image function is user-defined passing a QString
...
1
vote
0
answers
44
views
Auto completion is broken in Qt creator
Auto completion doesn't work in Qt creator with QtQuick module and qmldir which includes qml component from qrc
After defining my QML module which includes a c++ plugin and generating the .qmltypes ...
1
vote
1
answer
74
views
How to read files inside the project with QFile [duplicate]
I follow these simple steps to recreate the problem. Create a new Qt project in Qt Creator, a widget. Create a new widget class "newform" with its .cpp, .h, and .ui files. Try to load it on ...
1
vote
0
answers
154
views
Add qml module with plugin in qt resource
We have a qmldir declare a module contains qml files which are put inside resource file. The module has plugin which is in a directory, but not resource.
Before add qmldir and qml files into resource, ...
2
votes
1
answer
810
views
QPixmap is not shown when run application in Qt
Qt Designer allows me to add a .png file as a QLabel's pixmap, But it's only visible there, and not when running the app, and there are no errors.
This occurs when the picture is already included in a ...
0
votes
1
answer
671
views
Image from resource is not loading in Qt QML
I'm working on a Qt QML project, and I'm trying to display a simple image within my window, but nothing is displayed except for an empty window.
I put my image in a resource file (qrc), and I provided ...
2
votes
1
answer
2k
views
Common resource file in PyQt/ PySide and resource file location
When a resource file is created via Qt Designer in a Form, the python code generated by the Qt Designer includes the following import statement:
import icons_rc
This import statement is same ...
0
votes
3
answers
2k
views
QFile testing for existence of qrc resource
I read on the Qt forums that QFile::exists can be used to test for existence of an image resource.
In my project I have a lot of images, one of the references in a QML file is to:
qrc:/images/...
0
votes
1
answer
220
views
Failing to use DefineClass (JNI) with a Qt Resource
I'm attempting to use DefineClass which is part of the Java Native Interface.
The method takes a const jbyte* which is a const signed char* and I'm trying to parse it from a Qt resource. But there has ...
0
votes
1
answer
752
views
Qt application not working with qrc prefixes
I think I'm missing some fundamental way of working with various prefixes in the Qt Creator qrc environment.
If I place a qml component in the default prefix, the application builds and runs fine. ...
3
votes
1
answer
2k
views
How to change all path of resource file on Qt?
I draw GUI for the app and use many icons with resource file path
prefix: /ico
and path file in the folder of the project:
Resources/Images/*.png
So, each uses them in GUI, I must call::/ico/...
3
votes
2
answers
4k
views
What is the advantage of prefix over filesystem path in Qt resource system?
The Qt resource file .qrc allows to split the embedded files into different prefixes
<RCC>
<qresource prefix="/qml">
<file alias="CustomWidget.qml">qml/CustomWidget.qml&...
0
votes
0
answers
384
views
Creating a Qt install package with InnoSetup : missing images
I'm developing a Qt app in Qt Creator. I'm creating an install package via InnoSetup. And everything works OK except all the images are missing in the installed program (running it in Qt Creator works ...
1
vote
2
answers
2k
views
QWebEngineView does not load relative resources from an html page if the page is loaded from Qt RCC resource system
edit: Following @eyllanesc comment, here is a minimal example hosted on github. The test is run on Qt5.9, on OS X 10.12.
Base HTML
Let's create a minimal example HTML loading an image by relative path,...