C++ Function call to create a pointer from member
So I'm currently using the following code in the constructor of my class
which has QMainWindow as a base:
char *name = this->windowTitle().toWCharArray;
The codes yields the following error:
error C3867: 'QString::toWCharArray': function call missing argument list;
use '&QString::toWCharArray' to create a pointer to member
I'm not sure how to proceed so that I can get successfully obtain the
window's title. Any help would be much appreciated!
No comments:
Post a Comment