qml

What are the real-world benefits of declarative-UI languages such as XAML and QML?

I'm currently evaluating QtQuick (Qt User Interface Creation Kit) which will be released as part of Qt 4.7. QML is the JavaScript-based declarative language behind QtQuick. It seems to be a very powerful concept, but I'm wondering if anybody that's made extensive use of other, more mature declarative-UI languages like XAML in WPF or Sil...

Element and Event inspection in QML (QT Declarative)

Hi everyone, I am doing some tests in Qt Quick (Qt Declarative and QML), and i would like to inspect the elements composing the declarative interface. For example, if i have a declarative GUI composed of a rectangle and two images, i would like to have a list with three (or more) elements with these widgets (or items in Qt Declarative)...

Only one row of ListView populated in QML app, any idea why?

Hi, I'm trying to create a simple QML application that will get an RSS feed with my active chess games and do stuff with it. At this point I am just trying to populate a list view with the feed contents, but it only shows one item even when there should be 11 items in the feed. Is this a bug or am I not getting something right? Here's ...

Setting the HTTP headers for XmlListModel in QML

Is it possible to set HTTP headers for an XmlListModel in QML? Suppose you want to use an XML feed which requires an API key as the data source for a list model. I can pass the API key as an URL attribute, but it would be more elegant to pass it in the HTTP headers. I didn't find anything in the documentation about this. Is it possible t...

How to make state-based model change in QML

Hi, I'm trying to make a QML-based dictionary application. It fetches the word definition via an XML RESTful API and displays them in a ListView. I have it working in this rudimentary mode. But now I'm trying to implement two states for the ListView: standard view with the definitions and a "did you mean" type suggestions list for when t...

QML ListView multiselection

Hi folks! How can I select a few elements in the QML ListView and send its indices to C++ code? ...

What's the preferred way to include QML sources in your application build?

I am building an application with mixed UI technologies (mostly C++ with some QML components included). Suppose I have a QML item which I want to show inside a QDeclarativeView using syntax like this: view = new QDeclarativeView(QUrl::fromLocalFile("foobar.qml")); I have added foobar.qml to my project in Qt Creator which automaticall...

Qt: how to build QML apps for Symbian devices?

I am pretty new to Qt and I have just started looking at QML. There are some sample applications included with the Nokia Qt SDK for Symbian and I have managed to load them into Qt Creator and run them using the QML Viewer application on the desktop. I would like to try some of the samples out on a device, but I am totally clueless as t...

How to provide data from PySide QAbstractItemModel subclass to QML ListView?

I have an app I'm writing in PySide that has a QML UI. I have subclassed QAbstractListModel in Python: class MyModel(QtCore.QAbstractListModel): def __init__(self, parent=None): QtCore.QAbstractListModel.__init__(self, parent) self._things = ["foo", "bar", "baz"] def rowCount(self, parent=QtCore.QModelIndex()): ...