私はちょうど問題に遭遇します
error: request for member ‘show’ in ‘myWindow’, which is of non-class type ‘MainGUIWindow()’
単純なqtアプリケーションをコンパイルしようとすると:
#include <QApplication>
#include "gui/MainGUIWindow.h"
int main( int argc, char** argv )
{
QApplication app( argc, argv );
MainGUIWindow myWindow();
myWindow.show();
return app.exec();
}
私はこれを置き換えることで解決しました
MainGUIWindow myWindow();
に
MainGUIWindow myWindow;
でも違いがわかりません。私の質問:違いは何ですか?
よろしく、ダーク