#include <QApplication.h>
#include <QPushButton.h>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world");
hello.resize(100, 30);
hello.show();
return app.exec();
}
error C2664: '__thiscall QPushButton::QPushButton(class QWidget *,const char *)' : cannot convert parameter 1 from 'char [12]' to 'class QWidget *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
xxx.obj - 1 error(s), 0 warning(s)