Home > other >  QString in the header file, the constructor to initialize not value?
QString in the header file, the constructor to initialize not value?

Time:11-06

The code below. H# include The class QAAA: public QWidget {public: a QString QSTR; . }; CppQAAA: : QAAA () {QSTR="ABC"; } tracking to the constructor, QSTR not ABC, vs display information is - QSTR {d=??? } a QString [referenced] CXX0030: error: unable to calculate the value of the expression [size] CXX0030: error: unable to calculate the value of the expression d CXX0017: error: could not find the symbol "" solutions for help, study a night also didn't understand

CodePudding user response:

Under the other project, I wrote this is no problem, good strange, what is the possible reason,,,

CodePudding user response:

QDebug () shows that's right, thank you upstairs two great god ~ qDebug () shows like I thought! Ah! This is the day time

CodePudding user response:

Under the question what is the reason, please
  • Related