有关静态变量操作是报错的分析:
http://blog.csdn.net/lanmanck/article/details/8912380
介绍静态变量:
http://www.cnblogs.com/gysm/archive/2011/09/16/2179277.html
介绍全局变量:
http://blog.csdn.net/jiong_1988/article/details/7968756
虚函数讲解:
http://blog.chinaunix.net/uid-26851094-id-3327323.html
string与QString的互转
QString qstr;
string str;
str = qstr.toStdString();
qstr = QString::fromStdString(str);