All questions related to the QML programming language. QML (Qt Markup Language) is a declarative, JavaScript-like language to create intuitive and responsive user interfaces for applications that can run in multiple devices, platforms and form factors. Learn more about it ...

learn more… | top users | synonyms

7
votes
3answers
3k views

How do I install the QML toolkit on 12.04? [closed]

I'm trying to install the Ubuntu QML toolkit. I've installed Qt5 successfully, but I'm failing on the QML toolkit. Below is the error information: W: Failed to fetch ...
9
votes
4answers
2k views

Run system commands from QML App

I want to run a system command from inside my application. It's suppose to run a command on a remote server using SSH. But that's not really the point. The point is that I don't know how to run any ...
7
votes
3answers
4k views

Can't install qt-components-ubuntu because I'm using full release of QT 5.0.0

It appears that since I didn't install the beta1 version of QT5 from the ppa, I'm unable to use the Ubuntu components package. I have the released version QT5 already and not interested in installing ...
11
votes
4answers
3k views

Why Ubuntu.Components 0.1 missing from QTCreator?

First of all i need to create a "hello world" app using QML & QT Creator as described here http://developer.ubuntu.com/get-started/gomobile/ Second, when i was trying to install QML platform and ...
2
votes
2answers
628 views

Saving user settings in QML/JS

I'm working on a small game and i'd like to know how can i write/read a user settings file in ubuntu touch?
4
votes
1answer
123 views

How to insert Video element in my Ubuntu application?

I saw on some sites that you can insert videos with the Video element by importing Qt 4.7 and QtMultimediaKit 1.1 . But I have an error by compiling the project (it's a tabbed touch UI project): ...
4
votes
2answers
305 views

How to create a dialog and set title and text dynamically

Looking at the Dialog component example in the Ubuntu SDK documentation, it looks as if dialogs are intended to be defined as static components with fixed title and text. Or at least I cannot figure ...
6
votes
2answers
221 views

How do I use OAuth from an Ubuntu Touch app?

I'm writing an Ubuntu Touch application in QML. I'd like to integrate with Trello. There are two ways to log into Trello in the API, one of which is OAuth, which I plan on using. What is the best way ...
8
votes
2answers
1k views

Playing Sound with Ubuntu QML Toolkit preview

I've installed the Ubuntu QML Toolkit Preview as per the instructions on http://developer.ubuntu.com/get-started/gomobile/ (with a minor fiddle to get it working on 12.04). I'm trying to write an app ...
5
votes
1answer
819 views

Are Qt Quick Controls available on Ubuntu 13.10?

I was looking to do UI development in QML, and I really want it to look native. I found the QtQuick.Controls (http://qt-project.org/doc/qt-5.1/qtquickcontrols/qtquickcontrols-index.html), but when I ...
2
votes
2answers
2k views

How to use a SQLite database from QML? [duplicate]

I have not been able to find a working example in QT creator or gallery to use SQLite offline storage API for an Ubuntu touch application.
0
votes
0answers
68 views

How do I detect the presence of a mouse or touchpad?

How can the presence of a mouse or touchpad (pointer device in general) be detected using the Ubuntu SDK? This would be useful for presenting a more suitable interface for use with a pointer device. ...
5
votes
1answer
502 views

Qt5 Qtcreator using a c++function in main.qml to create a file /tmp/

I want to write an app for Ubuntu Touch based on the QtQuick2ApplicationViewer template and the app needs to write to a file (e.g. '/tmp/test.log'). I tested with using a function/macro Q_INVOKABLE: ...
0
votes
1answer
173 views

Get Qt WebKit HTML Content in QML

My application is built with QML (Ubuntu SDK), and I need to get the HTML content from a page loaded with a Qt WebView after the page is loaded. Based on some initial research, it would appear that ...
2
votes
1answer
283 views

Update grayed out (Xorg X server — QXL display driver)

I've been ignoring this issue for a while since it didn't effect anything on my system. But its annoying to watch this one little update graded out while the rest of the updates get installed. Any ...
1
vote
1answer
73 views

Getting ReferenceError when accessing public C++ slot from QML

According to Qt5 documentation: exposing methods including qt slots all public slots of C++ classes that inherit from QObject, are accessible from QML Here what I did: C++ class MyClass : public ...
1
vote
1answer
49 views

How can I pin the toolbar so that it remains revealed?

An always-revealed toolbar would be more suitable for a pointer-driven interface. How, using the Ubuntu SDK, can I set the toolbar to be (and remain) revealed?