Questions related to the development of QML applications on the Ubuntu environment. QML is a core programming language for Ubuntu & Ubuntu Touch.

learn more… | top users | synonyms

12
votes
4answers
3k 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 ...
3
votes
1answer
1k views

Embedding C++ Objects into QML with Context Properties

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 ...
11
votes
4answers
4k 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
1k 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?
5
votes
1answer
271 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
431 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
346 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 ...
4
votes
1answer
68 views

What does the head: property do on Page{} in qml?

I have an app that I am trying to get the toolbar in the header to work. In the documentation I've noticed a property called head that seems to create and add items to the header toolbar. What is the ...
9
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 ...
6
votes
1answer
2k 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 ...
3
votes
2answers
3k 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.
3
votes
2answers
36 views

Ubuntu SDK: How can I see error logs for my ubuntu touch app?

I've built an ubuntu touch app, it works well on desktop, but when I install it on the device and try to launch, it crashes. Where can I find error logs or any other output that the app can give me to ...
5
votes
1answer
640 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: ...
1
vote
1answer
708 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 ...
3
votes
2answers
45 views

How to go back from a PageStack's Page to the parent tab in the UI Toolkit

So in a previous question I tried to use the Ubuntu UI Toolkit to nest a PageStack within the Tabs component. It seemed to work, but it had its quirks, so I'm now trying another option, which in ...
2
votes
1answer
97 views

How can I create in QML a table of TextInput boxes with background

How can I make a table with 6 rows 5 tables and 25 TextInput boxes, with background. I've tried almost everything to put an background to the TextInput boxes, but still I could not get it right. My ...
2
votes
2answers
309 views

How To Use i18n.tr in Ubuntu Touch Projects

I have been using i18n.tr for a while in my Ubuntu-Touch projects. I know what this function is about but I don't know how to add a translation to my project. Where do I have to place my translation ...
2
votes
1answer
347 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 ...
5
votes
1answer
137 views

What does .gu stand for?

What does .gu stand for? For example: ConditionalLayout { name: "row" when: layouts.width > units.gu(50) //right here Row { anchors.fill: parent etc....
4
votes
2answers
104 views

How to hide the header of the Tabs component

I'm writing an app using the Ubuntu SDK, and I've got a PageStack component inside aTabs component. When I load one of the pages inside the PageStack, it all works well, and in the header the name of ...
4
votes
1answer
234 views

Ubuntu SDK QML how to change the background color of TextField

I have a situation where the background color of my QML app MainView causes the textfield entry to have grey lettering on equally dark brown background. This makes it almost impossible to read what ...
2
votes
2answers
1k views

Ubuntu Touch app with c++ core and QML interface. How to create?

How to create Ubuntu Touch application with c++ core? In examples I see only pure QML apps.
1
vote
1answer
182 views

Why am I getting the error “Cannot assign to non-existent property ”head"?

I'm actually on Trusty, and I want to try new "head" property which comes with API 14.10 of Ubuntu SDK. When I launch qmlscene to test my applicaton, I get this error : Cannot assign to ...
1
vote
1answer
154 views

QML what to use to store int numbers TextInput or TextField

What is good to use on a Ubuntu Phone app that needs 25 variables to get input that are int numbers. Text fields or text input. Right now I'm using text inputs to create the 25 ids that I'm going to ...
1
vote
1answer
185 views

Read lines from a text file in QML Qt/Quick

I need open a text file and read it's contents line by line and store each lines in a string list in qt quick 2.2. Can every one help me?
1
vote
1answer
832 views

Listmodel in QML: How to retain Listmodel values on page switch in page stack

I have an XML file to show list of items(listview), on click of each item i am switching to page which reads the XMLListmodel for each category using pagestack.push. After pressing back and again ...
1
vote
1answer
52 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?
0
votes
1answer
80 views

How to open a browser when the TextEdit::onLinkActivated signal is received

I'd like to open a browser window to display the URL received by a TextEdit onLinkActivated signal. Is it possible to perform such call from the QML application?