You are not logged in.

#1 2013-05-15 07:02:47

tinosezc
Member
Registered: 2013-04-09
Posts: 52

kdevelop - template

I use kdevelop for many years.  From last update 15/05 i got several problem with project template.

using qt I create new project with template kde --> kgraphical

Source is a bit different from the past in this position

--->>>#include <QtDeclarative/QDeclarativeView>
--->>>#include <QtDeclarative/QDeclarativeProperty>
--->>>#include <QtDeclarative/QDeclarativeItem>

KGraphicalTestView::KGraphicalTestView(QWidget *)
{
    view = new QDeclarativeView(this);
--->>>    view->setSource(QUrl::fromLocalFile(KStandardDirs::locate("data", "kgraphicaltest/src/qml/main.qml")));
--->>>    kcfg_sillyLabel = view->rootObject();
@@@@--->>>    kcfg_sillyLabel->setProperty("width", width());
--->>>    QDeclarativeProperty(kcfg_sillyLabel, "width").write(width());
    kcfg_sillyLabel->setProperty("height", height());
    QDeclarativeProperty(kcfg_sillyLabel, "height").write(height());
    QObject::connect(kcfg_sillyLabel, SIGNAL(clicked()),
                      qApp, SLOT(quit()));
    view->show();
    settingsChanged();
}


build project

when running project crash on point @@@@

I think there is a mix of qt4 and qt5, but how to solve it ?

thanks

Offline

Board footer

Powered by FluxBB