Hello,
I have the following problem :
MyClass.h
...
private:
...
QDir m_iconsResourcePath;
QFile m_codesFile;
MyClass.cpp
MyClass::MyClass(QStandardItemModel *model)
:m_languagesModel(model)
,m_iconsResourcePath(":/Icons/languages")
,m_codesFile(":/Codes/codes.txt")
The QDir is not initialized but the QFile is. The QResource paths and prefixes are double-checked so they point to the right places. Initializing the QDir with an absolute file system path works fine too.
Any ideas what am I doing wrong?
Thanks
Edit: Clarified the title a little :-)
↧