小编Ele*_*ant的帖子

在成员函数调用上获取错误

所以我目前在我的类的构造函数中使用以下代码,它以QMainWindow为基础:

char *name = this->windowTitle().toWCharArray;
Run Code Online (Sandbox Code Playgroud)

代码产生以下错误:

error C3867: 'QString::toWCharArray': function call missing argument list; 
use '&QString::toWCharArray' to create a pointer to member
Run Code Online (Sandbox Code Playgroud)

我不知道如何继续,以便我可以成功获得窗口的标题.

c++ pointers function function-calls

0
推荐指数
1
解决办法
88
查看次数

标签 统计

c++ ×1

function ×1

function-calls ×1

pointers ×1