Apparently it uses Qt5-only headers with Qt4 build. These do not exist, for example:
#include <QMediaPlayer> // 实现多媒体的 应用
#include <QMediaPlaylist>
:info:build sign_up_win.cpp: In constructor 'sign_up_win::sign_up_win(QWidget*)':
:info:build sign_up_win.cpp:32:31: error: 'void QAbstractButton::clicked(bool)' is protected within this context
:info:build 32 | connect(ok, &QPushButton::clicked, this, &sign_up_win::user_sign_up);
:info:build | ^~~~~~~
:info:build In file included from /opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers/qpushbutton.h:45,
:info:build from /opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers/QPushButton:1,
:info:build from sign_up_win.h:8:
:info:build /opt/local/libexec/qt4/include/QtGui/qabstractbutton.h:127:10: note: declared protected here
:info:build 127 | void clicked(bool checked = false);
:info:build | ^~~~~~~
:info:build sign_up_win.cpp:32:12: error: no matching function for call to 'sign_up_win::connect(QPushButton*&, void (QAbstractButton::*)(bool), sign_up_win*, void (sign_up_win::*)())'
:info:build 32 | connect(ok, &QPushButton::clicked, this, &sign_up_win::user_sign_up);
:info:build | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. . .
sign_in_win.cpp:30:40: error: 'void QAbstractButton::clicked(bool)' is protected within this context
30 | connect(sign_up_btn, &QPushButton::clicked, this, [=] () {
| ^~~~~~~
/opt/local/libexec/qt4/include/QtGui/qabstractbutton.h:127:10: note: declared protected here
127 | void clicked(bool checked = false);
| ^~~~~~~
sign_in_win.cpp:30:12: error: no matching function for call to 'sign_in_win::connect(QPushButton*&, void (QAbstractButton::*)(bool), sign_in_win*, sign_in_win::sign_in_win(QWidget*)::<lambda()>)'
30 | connect(sign_up_btn, &QPushButton::clicked, this, [=] () {
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | login_win = new sign_up_win();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | login_win ->show();
| ~~~~~~~~~~~~~~~~~~~
33 | });
| ~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:204:17: note: candidate: 'static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)'
204 | static bool connect(const QObject *sender, const char *signal,
| ^~~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:204:60: note: no known conversion for argument 2 from 'void (QAbstractButton::*)(bool)' to 'const char*'
204 | static bool connect(const QObject *sender, const char *signal,
| ~~~~~~~~~~~~^~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:217:17: note: candidate: 'static bool QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)'
217 | static bool connect(const QObject *sender, const QMetaMethod &signal,
| ^~~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:217:67: note: no known conversion for argument 2 from 'void (QAbstractButton::*)(bool)' to 'const QMetaMethod&'
217 | static bool connect(const QObject *sender, const QMetaMethod &signal,
| ~~~~~~~~~~~~~~~~~~~^~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:337:13: note: candidate: 'bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const'
337 | inline bool QObject::connect(const QObject *asender, const char *asignal,
| ^~~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Versions/4/Headers/qobject.h:337:66: note: no known conversion for argument 2 from 'void (QAbstractButton::*)(bool)' to 'const char*'
337 | inline bool QObject::connect(const QObject *asender, const char *asignal,
| ~~~~~~~~~~~~^~~~~~~
mytablewidget.cpp: In constructor 'mytablewidget::mytablewidget(QWidget*)':
mytablewidget.cpp:25:34: error: 'void QTableWidget::cellEntered(int, int)' is protected within this context
25 | connect(this, &QTableWidget::cellEntered, this, &mytablewidget::changeColor); // 当鼠标hover itme 这一行 使一整行 都变色
| ^~~~~~~~~~~
/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Versions/4/Headers/qtablewidget.h:319:10: note: declared protected here
319 | void cellEntered(int row, int column);
| ^~~~~~~~~~~
mytablewidget.cpp:25:12: error: no matching function for call to 'mytablewidget::connect(mytablewidget*, void (QTableWidget::*)(int, int), mytablewidget*, void (mytablewidget::*)(int, int))'
25 | connect(this, &QTableWidget::cellEntered, this, &mytablewidget::changeColor); // 当鼠标hover itme 这一行 使一整行 都变色
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~