0
所以我目前使用我的类的构造函数具有的QMainWindow作为基础下面的代码:获取有关成员函数调用错误
char *name = this->windowTitle().toWCharArray;
的代码产生以下错误:
error C3867: 'QString::toWCharArray': function call missing argument list;
use '&QString::toWCharArray' to create a pointer to member
我不确定如何继续,以便我可以成功获取窗口的标题。
在StackOverflow上搜索此错误代码会引发其他问题,其中包括[此答案](http://stackoverflow.com/a/9525899/1281433)。 –