2013年7月31日 星期三

[QT] debug


#include <QApplication>
#include <QDeclarativeView>
#include <QDebug>
#include "sailfishapplication.h"

Q_DECL_EXPORT int main(int argc, char *argv[])
{
    QScopedPointer<QApplication> app(Sailfish::createApplication(argc, argv));
    QScopedPointer<QDeclarativeView> view(Sailfish::createView("main.qml"));
    
    QString mStr = "test";
    Sailfish::showView(view.data());
    qDebug() << mStr;
    return app->exec();
}



沒有留言:

張貼留言