3 ms·
Regarding QObject, you know the difference between identity objects and value objects? QObjects are identity objects. I sometimes see people using them as value
by ahartmetz 5y ago
Regarding QObject, you know the difference between identity objects and value objects? QObjects are identity objects. I sometimes see people using them as value objects (bags of data), and that is not what they are for. It's terribly inefficient, for starters.
- simion314 5y agoWhat do you mean ? You mean I should have avoided using QString ? I created a program once and I wanted to be pure c++ in the algorithm part so I used the std::string there but I suppose some C dev will tell me that char[] is faster. Usualy QObject based classes are needed to get the GUI working.
- ahartmetz 5y agoQString is not a QObject subclass. It's a value class. It is also movable - and yes, it's probably fairly recent that it's movable.