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

1
vote
1answer
13 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
0answers
21 views

How to create an Ubuntu Touch app with a C++ backend and a QML interface [on hold]

I'm looking forward to the release of Ubuntu Touch and thought it would be nice to contribute a small and free app that I'm also using now on my Android phone. The free and open source app for ...
-2
votes
0answers
19 views

change property of qml file in c++

in qt quick 2.2, I have a simple rectangle in qml and i have a qt code with a button. When the button were clicked index property of rectangle in qml increased. How can i do change index property from ...
3
votes
0answers
426 views

TypeError: Cannot call method 'hasOwnProperty' of null, while creating a QMLscene window

I am trying to make a simple Ubuntu Touch web application with Qt Creator. I have set up a new project according to the tutorial and committed the files to Bazaar. I have set a url instead of the ...
1
vote
1answer
53 views

Execute Javascript Code in Oxide

I'm Looking for an oxide equivalence to this QtWebKit Function: WebView.experimental.evaluateJavaScript() Or WebKitGtk WebView.execute_script() I'm having problems to find documentation about ...
1
vote
1answer
33 views

QML How can i store the value an user enters in a variable?

How can i store the value an user enters in a variable? For example i have this code TextField {width: 37; height: 19 var id: q1 ...
1
vote
1answer
17 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 ...
2
votes
1answer
29 views

QML can't insert text into TextInput

I have an TextInput box and I can't insert text into it, I have tried everything I knew but still I could not put text into it, or even delete a text I have put on it. Here is some of the code I ...
2
votes
1answer
32 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 ...
1
vote
0answers
26 views

Use Pictures for an Image object in QML for Ubuntu Touch

I'm trying to use an image file from the main Pictures directory (/home/phablet/Pictures) for an AnimatedIMage/Image object however it says error reading file. I've tried two paths already but neither ...
1
vote
1answer
19 views

how to resolve “TypeError: Cannot call method 'push' of null”

I'm a new qml programmer and I found my self in this problem that when I want to call a new page when clicked on a button it says: TypeError: Cannot call method 'push' of null I've tried everything ...
2
votes
1answer
33 views

how to change to next page when clicked on button

hi guys I'm new in qml programming and i was just wondering how can i switch to an other page when the user clicks on my button. by the way how can i make a new page in the ubuntu sdk so that when ...
0
votes
1answer
47 views

Problem with QtWebkit and QML in PyQt5 App Ubuntu for Devices (Ubuntu Touch)

I'm having problems with qtwebkit in ubuntu for devices (Nexus 10) when using pyqt5, the webview element doesn't show, and the application closes. But if I test the same .qml file with qmlscene it ...
1
vote
2answers
52 views

read from text file in qml qt/quick

I have a program to preview images that store every image's path (all images are in my computer) in text file. first i open text file and read line by line images paths and store to a list then i ...
0
votes
1answer
44 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
108 views

Qt Quick 2.0 UI Application Not Displaying on Touch Device

I'm trying to run a tiny (very tiny) Qt Quick 2.0 UI application on my Ubuntu Touch device (Galaxy Nexus Phone). Qt Creator successfully pushes to the device (copies via ADB and runs QMLScene) but I'm ...
0
votes
1answer
46 views

App for Ubuntu Touch [duplicate]

I've implemented an application for Ubuntu Touch, using QML. How can I create a "package"(something like APK in Android) for the app?
1
vote
1answer
53 views

emit signal with custom type objects array parameter from c++ and receive in qml

I would like to emit a signal from a Qt C++ class which includes a parameter that is an array of custom objects (inherited from QObject) and receive the parameter in its qml slot, but i'm afraid it is ...
0
votes
0answers
53 views

fade out image and video in qml

I write a program in QML (QtQuick 2.0). In the program I have a string array that each strings in the array are image or video path in my computer. I have a button that when it was clicked show item ...
3
votes
1answer
17 views

Unable to access i18n in QML app's JS file

I'm having trouble importing the i18n library included in Ubuntu.Components 0.1 for use in a JS file. I initially ran into my question/problem while hacking on the 'Clock' Ubuntu Touch core app, but ...
1
vote
1answer
54 views

QML: Overriding a signal handler from other element

Is it possible to override an elements action (eg onTriggered() of a Timer) from within the onClick() of a button? Something like so-> Button { id: centerBtn ...
1
vote
1answer
41 views

Ubuntu SDK: QML with C++ recommended App Design Methodology

Are there documented general guidelines for mixing QML with C++ for ubuntu apps? "QML for UI design and C++ for logic" seems to be the trend. Is this the right way forward?
1
vote
1answer
37 views

Ubuntu SDK: How do I implement a “onClick” for an image in QML?

I have a background image for my page, and I want to implement a sort of page refresh when the background is clicked. However, I didn't find any actions for the image element in QT quick. What's the ...
0
votes
0answers
19 views

QML: TextField horizontalAlignment not working for entered text in Ubuntu SDK

I'm a complete newbie to QML and QT, forgive me if this is a trivial question. I'm using the following code to center-align the text in a TextField. This does work for the placeholder text, but the ...
3
votes
1answer
190 views

What is the fundamental GUI library for Ubuntu starting with 12.04?

I have started exploring deeply into doing development for the Ubuntu phone. In the past, and having used stock Ubuntu, I always found that GTK was the standard GUI library. But now, with the phone ...
0
votes
1answer
43 views

HUD and menu integration for Ubuntu Touch apps

Is there a way to move the Tabs into a menu, or the toolbar options into a menu? It would be nice enough to have the toolbar options display in the menu when on the desktop.. Is there any work to add ...
0
votes
0answers
17 views

Ubuntu App Development: u1db results not as Listview just one special result

I have started with an Ubuntu app (QML) with a U1DB-Database-Integration. I could add new Data and I can show all data with a Listview (over Query and Index). But how can I get just one special ...
2
votes
1answer
63 views

How to translate ListElement property with Ubuntu SDK

I have my fist Ubuntu Touch QML app running, and I am willing to translate it. Whenever I use a UI string in the qml files, I was careful to use i18n.tr("my text"). So now I need to generate the pot, ...
0
votes
1answer
25 views

Login on a Webpage via QML-App

I am trying to write an App for Ubuntu Touch on a Nexus 4 using QML and the Ubuntu SDK. The App should do what I usually do via Internetbrowser: Login on a Webpage, and then see the data on the next ...
4
votes
1answer
49 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?
1
vote
0answers
18 views

Qml HUD integration without MainView?

I'm working on an app with Qt Quick Components, I don't want to use any Ubuntu specific components because I want the desktop version of my app to be more portable than that (Qt 5.2 is enough of a ...
0
votes
0answers
20 views

QML: How do I set my icon in the Ubuntu SDK with a CMakeLists based project?

How do I set my icon in the Ubuntu SDK with a CMakeLists based project? Do I need a specific type of image file, or can I use just a png?
1
vote
1answer
53 views

Qt Audio Engine not in Ubuntu SDK

I am using Ubuntu 14.04. I installed Ubuntu SDK with no problems using the instructions on Ubuntu website. I created a new QML project. I want to create an app that uses Qt Audio Engine. Here is my ...
0
votes
2answers
40 views

QML: How do you toggle boolean?

In QML, how do you toggle boolean non explicitly? For example: Whenever a button is pressed, a boolean property will simply switch to its other value. If false, it will be come true. If true, it ...
3
votes
2answers
27 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 ...
4
votes
2answers
79 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
98 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....
1
vote
1answer
95 views

In QML, is there a Conditional Layout that corresponds to the phones orientation?

So instead of guessing it with something like this: ConditionalLayout { name: "column" when: layouts.width > units.gu(50) Column {... It would be something like this: ...
2
votes
2answers
66 views
1
vote
1answer
26 views

QML: How to display a “<” character in a richTextBox?

The code in question: description.insert(0,"<tr><td><H1> ---Less-Than-Sign-Here--- </H1></td><td><font face='Ubuntu'size='3'color='#f37420'> ...
2
votes
1answer
26 views

ActionSelectionPopover - populate dynamically

I am trying to populate dynamically an ActionSelectionPopover... Does any one ever got it working? this is the static way to get it work: ActionSelectionPopover { id: popMeUp data: bitrates ...
3
votes
1answer
37 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 ...
1
vote
0answers
30 views

Is it possible to send a return code with the Qt.quit() signal from QML?

I'd like to know if it's possible to send a return code from a pure QML application using the Qt.quit() signal so that qmlscene can exit with the same error code. I don't need a solution using C++, I ...
2
votes
1answer
148 views

Unable to start a QML app using qmlviewer/qmlscene

I'd like to start writing QML applications. I followed this tutorial: http://qt-project.org/doc/qt-4.8/qml-tutorial1.html my code is: import QtQuick 1.0 Rectangle { id: page width: 500; ...
0
votes
0answers
46 views

Binding loop error when changing mainView background colors

The background color change works but the errors below shows and sometimes it lags when triggering the change. This is my code: onActiveChanged: { if (pageGastos.active === true) { ...
3
votes
1answer
76 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 ...
0
votes
1answer
35 views

How can I access an attribute of the selected option in an OptionSelector?

I have an OptionSelector that delegates to an OptionSelectorDelegate, and has a ListModel for the model. How should I access the "sometext" attribute of the ListElements? OptionSelector { id: ...
2
votes
1answer
29 views

QML WebView.back does not work

In QML I want to use WebView , but the WebView.back does not work. Is there some way how to navigate, or do I have to store all the previous paths and navigate between them manualy using javascript ...
3
votes
2answers
264 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
2answers
386 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.