[Qt-qml] Autotest for XmlListModel

joona.t.petrell at nokia.com joona.t.petrell at nokia.com
Mon Sep 13 12:58:32 CEST 2010


Hi,

The C++ APIs of most declarative elements accessible from QML are private, meaning we don't promise to keep the compatibility of the C++ APIs and accessing them from your C++ application in general is a bad idea. QtDeclarative module is all about building your application with QML language. Qt's own autotests do use the private headers and for example you can find the test for QDeclarativeXmlListModel under /tests/auto/declarative/qdeclarativexmllistmodel.

Cheers,

Joona


From: qt-qml-bounces at trolltech.com [mailto:qt-qml-bounces at trolltech.com] On Behalf Of ext Anton Alferov
Sent: Thursday, September 09, 2010 9:37 PM
To: qt-qml at trolltech.com
Subject: [Qt-qml] Autotest for XmlListModel

Hello,

Is there any way to write auto tests (using QtTest framework) for QML XmlListModel?
I have an old version of the Declarative realization (qt-4.6.0-declarative), and it contains directory with examples of auto tests. Those examples are used the QmlXmlListModel class. But in the new version I found that the QmlXmlListModel class has been renamed to the QDeclarativeXmlListModel one, and the problem that it is private and I unable to use it.

Thanks,
Anton.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100913/58a85454/attachment.html 


More information about the Qt-qml mailing list