PDA

View Full Version : error



zelawar
20th June 2012, 18:44
Hi all
I get the following error:
Error 1 error C2039: 'oper' : is not a member of 'QString' c:\qt\4.7.0\src\corelib\tools\qstring.h 720
please any sugestion how to solve it
also I wrotethe code in this it in this way
inline QString &QString::oper
regards
ziad

wysota
20th June 2012, 18:54
In C++ you cannot add methods to already existing classes.

Ali Reza
20th June 2012, 19:43
you can define a class that inherits QString and add your methods to it.