天天看點

Tiled的qbs方式編譯記錄

目錄

​​一 編譯OK​​

​​二  moc_donationpopup.cpp缺失問題解決​​

​​三  參考連結​​

一 編譯OK

該例子以qbs方式将qml自動打包,很棒。

Tiled的qbs方式編譯記錄

二  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"));      

三  參考連結

繼續閱讀