Qtプロジェクトの次のインクルードは、ユーザー定義クラスと競合しています。
#ifdef Q_OS_WIN
#include "qt_windows.h"
#include "qwindowdefs_win.h"
#include <shellapi.h>
#endif
コードスニペット:
if (Desktop::MessageBox::question(this, tr("I am ready?"),
tr("I am not ready yet!?")) == QDialog::Rejected )
{
TRACE("Dialog rejected. I am not ready yet.");
return;
}
エラー: \ Desktop \ Gui \ MainScreen.cpp:953:エラー:'Desktop::MessageBoxA'が宣言されていません
デスクトップ::MessageBoxがWindowsで定義されたMessageBoxAと競合しています。C ++でのこの問題の標準的な解決策は何ですか?