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

13
votes
4answers
23k 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 ...
11
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 ...
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 ...
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
346 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
470 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
513 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
789 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
301 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
2answers
1k 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
287 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 ...
5
votes
3answers
201 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
62 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
184 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
1answer
1k 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 ...
5
votes
1answer
654 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
572 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
100 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
399 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 ...
5
votes
1answer
179 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 ...
4
votes
2answers
143 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
359 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
1answer
105 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
1answer
106 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
92 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
127 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
86 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
55 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
46 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
95 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
214 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
371 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
1answer
401 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
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.
3
votes
1answer
38 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
55 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: ...
3
votes
1answer
349 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 ...
3
votes
1answer
86 views

How can I center an ActivityIndicator within the screen?

How can I center an ActivityIndicator within the screen? My current code is: Column { Row { ActivityIndicator { anchors.leftMargin: units.gu(10) running: true ...
3
votes
1answer
58 views

QML: How to do variables?

In QML, I am just looking for a way to do fairly simple variables: Bool String Integer
3
votes
1answer
80 views

Should all Ubuntu Touch apps use a MainView?

I know the MainView component is the recommended container for all widgets that are part of an Ubuntu Touch app. However, I'd like to understand whether it is essential to use it and what it brings to ...
3
votes
1answer
171 views

Re-use toolbar code for each tab

I'm creating a music app using QML and it uses around five tabs, each using a toolbar. The toolbar should look the same, so instead of having the exact same code for each tab, I wanted to re-use the ...
3
votes
2answers
535 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.
3
votes
1answer
69 views

What's a good way to mock a remote HTTPS API for unit testing my QML app?

I'm tinkering with a QML app that interacts with a remote REST API over HTTPS. The "client" part of the app is neatly packaged into a component and I'd like to unit test that, but I don't want to ...
3
votes
2answers
71 views

How to change the color of *just* the header?

Is there a non-hacky way to change the color of just the header in an app using the Ubuntu SDK? MainView has a headerColor property, but that is used as the first step of gradient. Currently, I'm just ...
3
votes
2answers
317 views

Appmenu with QML App

I'm developing an Ubuntu SDK meant to be used on both the desktop and touch interfaces. Obviously the menu that slides up from the bottom of the window is not a great interface for the desktop. ...
3
votes
1answer
74 views

Is there an 'offical' way to store data in uTouch-Apps?

through qml there are several ways to store data. Is there any 'offical' way to store data in Ubuntu-Touch?
3
votes
1answer
316 views

Buttons in ubuntu touch toolbar

What is the code to have a toolbar with buttons when programing in QML with the Ubuntu Components Module. I want to make it so that when I swipe a finger from the bottom of the screen the toolbar ...