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

0
votes
1answer
11 views

How do I add a Device Kit to an existing project

I am writing a QML Ubuntu Application and unfortunately forgot to check the boxes for the different Device Kits when I created the Project. How do I get those Device Kits to show up at the run menu?
0
votes
0answers
4 views

Ubuntu QML App UI problems

I need some help... I am currently building a new QML Ubuntu App and I am struggeling with the UI.. The App sends a request to an external server, gets some JSON back and appends that to a ...
1
vote
1answer
183 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?
0
votes
0answers
5 views

How to force use of “overflow menu” for actions on header bar?

I am using header actions in my Ubuntu SDK app, but I would like to avoid clutter on the header bar. I have noticed that the Android-style "overflow menu" autocreates itself after a certain number of ...
0
votes
0answers
7 views

Use the design function of Qt Creator when developing Ubuntu apps

I would like to start developing Ubuntu apps with Qt Creator and I have a few queries when making a simple qml qt app. Firstly, is it normal qml and javascript? Can I use all normal qml and ...
5
votes
3answers
80 views

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. ...
0
votes
1answer
12 views

Why does my QQuick application crash on Ubuntu 14.04?

Basically I have (The Game class just wraps QGuiApplication): int Game::run() { QQuickView * mMainView = new QQuickView; mMainView->setResizeMode(QQuickView::SizeRootObjectToView); ...
2
votes
1answer
25 views

Why XMLHttpRequest send only “server connection established” in readyState attribut?

I try to store the result of JSON webservice into a List view. I create my request in javascript but my readyState value is always 1 and never change. I don't understand what is wrong. This is my ...
3
votes
1answer
55 views

using ubuntu-sdk to create app with problems

I upgraded my ubuntu 14.04 to 14.10 to use the latest ubuntu-sdk. But When I created a simple UI project there is just a red wave line under the "import Ubuntu.Components.1.1". So I moved my mouse to ...
1
vote
1answer
25 views

Touch App with QML Extension Library does not run on device or emulator, only desktop

I'm trying to create a QML app with a C++ backend using the Ubuntu SDK (Qt Creator). There is a template called 'App with QML Extension Library' When I run this using the Desktop kit it compiles and ...
5
votes
0answers
85 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 ...
0
votes
1answer
17 views

Weird bug in qml and oxyde

I have made an app with this source code: http://pastebin.com/zMwtusZJ However when I try to run the app the webview instead becomes black and does not load the web page. Here is the crash output: ...
4
votes
3answers
253 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"} }
2
votes
2answers
134 views

parsing JSON data QML

As in topic, I'm trying to parse this json data in to my QML project link: http://www.rad.io/info/menu/valuesofcategory?category=_genre So I have list of 188 elements but don't know how to get ...
0
votes
1answer
28 views

Ubuntu Touch: How can I debug ubuntu touch apps on the device? [duplicate]

My app works well on desktop but I can't figure out why does it crash on my nexus 7. How can I debug it while it runs on the device?
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 ...
1
vote
1answer
35 views

Ubuntu SDK, Ubuntu touch app: “Error: Error opening shm.”

I am building an app for Ubuntu Touch. It works well on desktop, but when I try to open it on nexus it starts opening a splash screen but immediately crashes. Here's the logs: t_shm() at ...
1
vote
0answers
24 views

Ubuntu QML Alarm not working properly

I've been trying to create a simple app capable of setting system alarm. But although I can see the set alarm at correct time in the event list under my clock indicator (on desktop), it doesn't notify ...
1
vote
0answers
28 views

Ubuntu SDK: How can I use PyQt for developing Ubuntu Touch apps?

I've heard that it's possible, can you give me some pointers on how to do that?
1
vote
1answer
40 views
2
votes
1answer
51 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 ...
15
votes
0answers
318 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 ...
0
votes
0answers
15 views

Ubuntu SDK, Ubuntu Touch: Disable automaticOrientation for one element?

I am building an Ubuntu Touch app. Option "automaticOrientation: true" rotates the whole interface, but I need one element to stay in place and ignore it. Is this possible?
2
votes
0answers
16 views

Ubuntu SDK, QML: how do I create a vertical slider?

I am trying to create a vertical slider: http://developer.ubuntu.com/api/qml/current/Ubuntu.Components.Slider/ How can I do that? Just rotating it doesn't seem like a good idea, it messes up anchors ...
0
votes
1answer
31 views

Ubuntu Components - Picker problem

While trying to create two pickers on Ubuntu inside a dialog, the labels inside can only be read properly when they are not chosen and overlap on the left when chosen, as seen in the image: The ...
1
vote
1answer
152 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
82 views

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 ...
3
votes
1answer
142 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: ...
2
votes
1answer
58 views

Get a rid of the header section in a qml app on Ubuntu SDK

It is possible to remove the header section in the MainView of an new qml app? Code: import QtQuick 2.0 import Ubuntu.Components 0.1 import "components" /*! \brief MainView with a Label and ...
1
vote
1answer
93 views

Prevent components from becoming transparent on a qml window

Here is the code for a transparent and frameless window in qml: import QtQuick 2.2 import QtQuick.Window 2.1 import Ubuntu.Components 0.1 Window { MouseArea { anchors.fill: parent ...
3
votes
2answers
126 views

QML - How to create QML Components properties so they can be set from JavaScript?

I am trying to create a component with certain properties I've set. The sounds location and name are given by a C++ function that is actually working because the console.log() shows so: qml: Adding ...
1
vote
1answer
86 views

Using Online Accounts to authenticate against my server

In my Ubuntu QML app I'm trying to use online accounts in order to authenticate against my server. I'm a little confused as to how I should go about doing this. Ultimately I want the user to be able ...
0
votes
0answers
36 views

Ubuntu Touch Qt3D 2.0 crashes on start

I've been trying to develop something in QML3D and while my app is running well on desktop, I can't get it working on my tablet (even thought for example Qt3D cylinder from the software center - ...
2
votes
1answer
98 views

How to get data from REST API with QML (for ubuntu touch app)?

I am trying to use firebase REST API and to get some data into my ubuntu touch app. Can you give me some pointers on how could I go about doing that?
1
vote
1answer
77 views

get QML default value of a widget

How to receive the default value of e.g. TextEdit font.pointerSize? I would like to create a custom widget that uses some default values but allows to set some values from outside. Therefore it is ...
2
votes
1answer
76 views

U1DB problems with apparmor

I'm having problem with u1db and apparmor. The application works fine, but when it is packaged apparmor does not allow the app to save data into $HOME/.local/share/.. so I can't actually save my ...
2
votes
1answer
30 views

Add external library to Ubuntu App in Ubuntu SDK

I am trying to add the QuaZip library to my project (https://launchpad.net/vadetux). I have tried setting the EXEC variable in the CMakeLists.txt to: set(EXEC "qmlscene -I /usr/include/quazip $@ ...
2
votes
1answer
108 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
18 views

Error while trying to import pictures with ContentHub

I followed the Content Hub tutorial and I used the code about importing single pictures I found here: http://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Content.index/ Anyway, when trying to import ...
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 ...
2
votes
1answer
37 views

Ubuntu SDK, how do I create a tree view in QML?

I have json data that defines comments that have children. I am trying to display nested comments(like in hackernews or reddit) in my app. What is the best way to go about doing it?
1
vote
1answer
224 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: ...
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 ...
0
votes
1answer
18 views

Combine a falling animation with a going up animation on click

I am trying to make a moving sprite fall down from the upper left corner to the left down corner. That function is working properly with the SequentialAnimation component. Apart from that, when you ...
0
votes
0answers
22 views

Ubuntu SDK - how to use the new header? [duplicate]

I want to use the new header features that are described here, but I can not find any documentation. Where can I find a QML example of using it?
5
votes
1answer
86 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 ...
3
votes
1answer
632 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 ...
2
votes
3answers
1k views

Mobile app development issues with qmlviewer not being found?

I am trying to follow the Mobile app development tutorial found here. When I try to run the currency converter in QT Creator I get this error: Starting external tool '/usr/bin/qmlviewer' '' ...
2
votes
0answers
55 views

How can I detect screen rotation with QML

I've been trying to create a Ubuntu QML application, but when I rotate my screen while it is running on my tablet, the header is semitransparent and the content below is exceeding the screen's height ...
2
votes
0answers
25 views

Is there a Bool or Flag you can use in QML to determine whether a phone is running the application?

For example: Text { text: isPhone ? "this application is running on a phone" : "this application is not running on a phone" }