Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

[SOLVED] QDir with a QResource path is not initialized in the constructor

$
0
0
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 :-)

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>