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

15
votes
4answers
28k views

How to use Qt Creator with Python?

I want to use Qt for developing Ubuntu desktop, phone and tablet applications but I don't want to learn a new programming language (C++, JavaScript). Is it possible to write Qt application in Python ...
15
votes
0answers
308 views

How to lock ubuntu device orientation in portrait or landscape from user input?

I am working on a reader app to be used on Ubuntu-Touch. When reading books from the app it would be a helpful feature to lock the orientation in either portrait or landscape. This would be useful ...
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 ...
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 ...
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 ...
9
votes
2answers
377 views

Can a single Ubuntu SDK target touch and desktop with separate layouts?

I know that touch apps will run on the desktop with the same UI, but I was wondering if it will be possible for a single Ubuntu SDK app to have a multi-window UI with desktop style UI elements when ...
9
votes
1answer
511 views

How to use theming in QML for Ubuntu Phone

The Ubuntu Interface Toolkit Documentations documents Theming for QML Elements with a syntax that is quite similar to CSS. It sounds amazing to me, but I am unable to get started with it. I have tried ...
9
votes
2answers
584 views

How to use gettext to make QML files translatable

I'd like to write a QtQuick app based on Python (PySide) and QML. I know Qt apps have got their own translation technology, but I would like to stick to gettext for this one. I'd like to know if it's ...
8
votes
2answers
913 views

How do I dynamically add tab to tabs?

I am trying to add a new tab to the tabs component with the code below. When running there is no error reported but no additional tabs are show. I have tried using both tabs and tabs.__tabsModel as ...
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 ...
7
votes
0answers
305 views

How can I run a command from a qml script? [duplicate]

I'm working on an Ubuntu Touch app that needs to modify iptables and do various other things that requires interaction with the command line. I found this and I understand that it must be done with a ...
6
votes
1answer
70 views

What's the difference between OptionSelector and ItemSelector?

When writing an app for Ubuntu, it seems I can interchangeably use the ItemSelector or OptionSelector components. In which situation should I use each one of those? What's their main difference that ...
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 ...
6
votes
2answers
2k views

How to pass the image preview from the QML Camera component to a C++ plugin

I'm writing an Ubuntu Touch QML app that captures and processes images from a camera device. The processing is done by a C++ plugin to which I'm passing the URL of the image. I can successfully save ...
6
votes
2answers
340 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 ...
6
votes
3answers
2k views

Problems with QML Tool Kit Installation: “unmet dependencies: qt-components-ubuntu: … ”

I am following the directions on the page for Ubuntu App Development: http://developer.ubuntu.com/get-started/gomobile/ Command 1: sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-beta1 ...
6
votes
1answer
203 views

How do I get an UbuntuShape to transition (fade) between different images?

I have some QML code using the UI toolkit. When you click on the image, it toggles between two different logos. I've attempted to make the transition use an animation but it doesn't work; after the ...
5
votes
3answers
211 views

Sockets in Ubuntu Touch Apps

I am creating an IRC client for the Ubuntu App Showdown. I need a way to be able to access an IRC server in QML (or JavaScript). What is the best way to accomplish this?
5
votes
1answer
136 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....
5
votes
1answer
75 views

What does functional_qml_applicationName_matches_manifest mean?

I submitted an application to the click store but it comes back with this error:- functional_qml_applicationName_matches_manifest What does this mean and how do I fix it?
5
votes
1answer
270 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): ...
5
votes
2answers
60 views
+50

How to add some padding between a ListView and its footer?

Consider the following QML snippet: ListView { //... footer: Text { text: "Sample Text" } } This will display the text "Sample Text" directly at the bottom of the ListView. ...
5
votes
2answers
1k views

QML: Simplest way to write to a text file?

QML at the moment lacks basic system commands, so I am looking for the most simple template to write to /tmp/text.txt.
5
votes
1answer
703 views

QML/Qt Development path verses “Quickly” and Gtk

It seems like recently the path Ubuntu is moving towards is to have code developed with QML and Qt, and that appears to sync with their move to be able to target tablets, phones, TV devices and the ...
5
votes
1answer
638 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: ...
5
votes
1answer
477 views

QML: What is the difference between a Component, Element, Property, Attribute, and Object?

The reason why I ask, is that often languages define the same terms differently, and QML is fairly unique in some regards. A brief explanation or analogy is preferred, where as more extensive and ...
5
votes
1answer
85 views

How do I get my QML program to utilize Unity7 notifications? Is there an API I can use?

I am developing a screenshot application in QML, and I wish to utilize Unity 7 notifications, similar to what Rhythmbox uses when notifying a user that a new song has started, or when the volume is ...
5
votes
0answers
80 views

How to change index in OptionSelector immediately (without animation)?

In my app, I use an OptionSelector to choose from a list of bike stations. I also have a map component with placemarkers for each station. When I tap a placemarker, it also changes the OptionSelector ...
5
votes
1answer
503 views

How to use Arguments in QML without getting qmlscene arguments

I'm trying to write a QML application to be launched by qmlscene. I want this to accept arguments, so I'm using the Arguments object. However, this gets the arguments passed to qmlscene as well as ...
4
votes
2answers
152 views

Do i need to know C++ to develop ubuntu app?

I'm a java developer. I dont know much about C++. should i learn C++ to develop ubuntu app? or can develop app without c++?
4
votes
2answers
427 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 ...
4
votes
3answers
235 views

How do you check if a property is undefined in qml?

How do you check if a property is undefined in qml? This is what I am trying to do: Button { id: myButton text: if (text === "undefined"){"default text"} }
4
votes
1answer
65 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 ...
4
votes
1answer
194 views

How do I make a WebView transparent?

Consider the following QML snippet: Page { WebView { id: webView anchors.fill: parent } } I then attempt to load some HTML in the WebView using the following JavaScript: ...
4
votes
1answer
1k views

QQmlComponent: Component is not ready

I'm following through the Create a currency converter app tutorial. I'm on a fresh raring install and have installed the ubuntu-sdk. I created a new project (QT Quick 2 UI) and copied in the ...
4
votes
1answer
226 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 ...
4
votes
1answer
136 views

How backwards compatible will the Ubuntu SDK be?

First let me say, by SDK I'm not actually referring to QT Creator, but Ubuntu's QML libraries, I'm actually using Geany for all my programming. When Ubuntu very first released the Ubuntu SDK I ...
4
votes
2answers
101 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
66 views

How can I change the color of Ubuntu Touch ToolBar?

Here is my situation: Does anyone know how to change colour of the bottom toolbar?
4
votes
1answer
55 views

QML: Will the Ubuntu Phone be theme-able, and do I need to develop with that in mind?

Take a simple example in formatting richtext: The Manual Way someTextBox.insert(0,"<font face='Ubuntu Mono'size='3'color='#f37420'> Blah Blah Blah </font>") The hypothetical Way ...
4
votes
1answer
98 views

Large amount of scrollable text in Ubuntu touch

Is there a way to make a label scrollable in ubuntu touch sdk. If not what is another way to have a large amount of uneditable text that can scroll.
4
votes
2answers
234 views

How to switch from Core Layout to Full Screen Layout? PageStack Header annoying

I want switch from a Core Layout to a Full Screen Layout when clicking somewhere in the Core Layout. I use PageStack to get the switching with back button and stuff Tabs to have something ...
4
votes
0answers
400 views

QtCreator creates unwanted windows [closed]

This issue occurs on raring with the build "qtcreator 2.8.1-0ubuntu1~raring1~test1", the latest from the software center. It works fine in general, but if you click on "Welcome" and than on "Develop", ...
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 ...
3
votes
1answer
603 views

How to create charts in QML?

I'd like to add to my application a page with not only raw figures but also eye friendly charts to display data. Is there a native component or a third-party plugin I could use to create such ...
3
votes
1answer
416 views

What is the best practice for saving data in Ubuntu one db from mobile?

I'm doing a simple todo-list with QML for Ubuntu phone OS. Is there any standard way for accessing Ubuntu One Database to sync data?
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
1answer
139 views

Ubuntu SDK: Provide your application identifier in $APP_ID environment variable

I'm getting familiar with Ubuntu SDK and QML. After creating sample project: 'App with Simple UI', I'm able to run it correctly. But, I'm getting warning: ...
3
votes
1answer
50 views

What is the difference between Ubuntu.Components and QtQuick?

QtQuick 2.0 Ubuntu.Components 0.1 Are two common imports when developing applications for Ubuntu. Are these classes? Can you import member functions this way? If yes, how can tell what member ...
3
votes
1answer
58 views

How come the contents of Text elements aren't being properly justified?

Consider the following page in a QML application: Page { Text { anchors.fill: parent anchors.margins: units.gu(2) horizontalAlignment: Text.AlignJustify text: ...