Unsolved What is the relative path to my default project directory
-
I have been looking for answers to this it seems like it is to simple for someone to cover so I cannot find it. the thing is when I try to do some thing like:
m_texture->setData(QImage(":/hpdefault.jpg"));
the program crashes on that line.
-
@AI_Messiah said in What is the relative path to my default project directory:
the program crashes on that line.
Don't know what a crash should have to do with 'What is the relative path to my default project directory' but when it crashes you should check if m_texture is valid (for sure it's not)
-
@AI_Messiah
Check what is the value ofm_texture
.
Check the value ofQImage(":/hpdefault.jpg").isNull()
.
Check the value ofQFileInfo(":/hpdefault.jpg")
. -
Hi,
Beside the points of my fellows, did you properly create a resource since you are using their path ?