I currently define a string ID inside a class Return_Class for this to work I need to use "namespace." (I'm working in Qt.)
When I put using namespace std; my code functions perfectly, however when I remove using namespace std; and edit my class to...
class Return_Class : public QString
{
public:
    static std::QString ID;
};
...my code get the error message "QString in namespace "std" does not name a type"
I know that using std:: is considered better practice, but I'm confused as to why it doesn't work it my case? Is my syntax for the string wrong? Thanks
 
     
     
    