I have a class contain static memberin header file.How to use and initialize it in .cpp file?Thanks.Qt Code:
static QMap<QString, QString>list;To copy to clipboard, switch view to plain text mode
I have a class contain static memberin header file.How to use and initialize it in .cpp file?Thanks.Qt Code:
static QMap<QString, QString>list;To copy to clipboard, switch view to plain text mode
Last edited by jpn; 11th March 2008 at 22:26. Reason: changed [qtclass] to [code] tags
Just put this in your .cpp file:Qt Code:
QMap<QString, QString> YourClass::list;To copy to clipboard, switch view to plain text mode
Bookmarks