一 编译OK
该例子以qbs方式将qml自动打包,很棒。
二 moc_donationpopup.cpp缺失问题解决
(1)格式问题
修改从:
"&Donate ↗"
"I'm a &supporter!"
到:
"&Donate"
"I'm a &supporter"
(2)删除libtilededitor.877b2b3a文件夹重新编译
//tiled.qbs文件修改
property string version: Environment.getEnv("TILED_VERSION") || "1.8.4";
property bool snapshot: Environment.getEnv("TILED_SNAPSHOT") == "true"
property bool release: Environment.getEnv("TILED_RELEASE") == "true"
property bool installHeaders: true
property bool useRPaths: true
property bool windowsInstaller: true
property bool staticZstd: false
property bool sentry: false
property bool dbus: true
//donationpopup.cpp文件修改
// auto visitDonatePage = new QPushButton(QCoreApplication::translate("DonationDialog", "&Donate ↗"));
// auto alreadyDonating = new QPushButton(QCoreApplication::translate("DonationDialog", "I'm a &supporter!"));
// auto maybeLaterButton = new QPushButton(QCoreApplication::translate("DonationDialog", "&Maybe later"));
auto visitDonatePage = new QPushButton(QCoreApplication::translate("DonationDialog", "&Donate"));
auto alreadyDonating = new QPushButton(QCoreApplication::translate("DonationDialog", "I'm a &supporter"));
auto maybeLaterButton = new QPushButton(QCoreApplication::translate("DonationDialog", "&Maybe later"));
三 参考链接
mapeditor/tiled: Flexible level editor (github.com)
(5条消息) VS +QT 手动添加Q_OBJECT 报错问题解决_边城浪子书生的博客-CSDN博客_q_object报错