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
5 views

How to make a QML Canvas visible?

I'm trying to draw something on the screen in an Ubuntu phone application. I created a new "QML App with Simple UI (qmlproject)" in Ubuntu SDK, and replaced the content of Main.qml with the following: ...
0
votes
1answer
36 views

Building ubuntu touch app with sql (mysql) support problem

i`m trying to develop simple ubuntu application. This application should connect to remove mysql server, query and display data in UbuntuListView. Project was created in Qt Creator 3.1.1 as QML app ...
1
vote
1answer
48 views

Hide notification bar on Ubuntu phone (QML)

I would like to create and QML app with Ubuntu SDK for ubuntu phone. I am not able to hide the notification bar at top of the screen. What is the way to hide it ? If it's not possible in QML only, ...
1
vote
1answer
41 views

QML app with C++ plugin (cmake) subdirectory

I am developing an Ubuntu Phone application "QML app with C++ plugin (cmake)" but I have so many qml files so I want to separate them by functionality ApplicationName CMakeListes.txt .. app ...
1
vote
2answers
64 views

Cannot run QML App with C++ plugin

I'm trying to extend a QML App with C++ functionality. Basically I want to make the MythMote app which is available on Android available on Ubuntu Touch. Also see my other question for which I would ...
0
votes
1answer
28 views

File storage location for ubuntu application

In my application I plan to store files locally ( exported files ) and import files which user copy via USB to the disk. Where to locate such application files ? Is there some recomendation ?
0
votes
0answers
36 views

ubuntu-sdk showing blank spaces where icons should be

When I launch Ubuntu-SDK in Ubuntu 14.10 (64-bit) every Qt Creator aspect works normally except all the content that was specifically added by canonical. This is especially annoying in the 'Welcome' ...
0
votes
1answer
18 views

qtserialport in c++ app ubuntu

Can someone please tell me how to install the qtserialport to use in a c++ project in ubuntu? Thanks.
0
votes
1answer
28 views

UbuntuListView ListItem.Expandable example?

I am playing with the Expandable ListItem components: UbuntuListView { id: myList model: 2 delegate: ListItem.Expandable { expandedHeight: units.gu(20) Label { text: "Expand me" } ...
0
votes
1answer
32 views

Dynamic object creation im QML

I am new to QML and would like to understand how object creation works when splitting code over different files (as it feels like a good code practice). I know I can call property of an item within ...
1
vote
1answer
82 views

Ubuntu Touch QML API : PageHeadStyle

I'm looking for some help to use PageHeadStyle components which is available in Ubuntu SDK. If somebody has example, I will be grateful. Thanks.
2
votes
2answers
82 views

How does one get the ambient light conditions in Ubuntu Touch?

I am planning to make an app which would switch between Light and Dark theme based on the ambient light conditions. So if it was a dark room, then the app would switch to a dark theme to reduce the ...
0
votes
0answers
30 views

Can't start application in the Emulator

I created in UBUNTU SDK new project ( QML App with C++ plugin ). I can run it as desktop application, but when I want to start it in the emulator I got following error : ...
0
votes
0answers
32 views

How to add ScrollBar to combobox QML

I hav a combobox with 100 ligne in QML ComboBox{ id: id width: 180 Model : liste() } How to add a scrollBar in this ...
0
votes
0answers
30 views

Where can I find the Ubuntu qml components?

I decided to give Ubuntu-SDK a try but it would not work properly, showing app a weird transparent window most of the time that would not go away or at least get out of the foreground. I could not ...
1
vote
0answers
19 views

Ubuntu's appindicator using QML

Is it possible to create a Unity indicator for my app which is written in QML?
0
votes
0answers
37 views

QML - Tabs - Header layout

the default style of the Tabs is like this: but how to make it look like this? thanks
0
votes
0answers
17 views

QT Quick Test problem [duplicate]

I have a QML file and I want to test the function of this test , in this file I have some import like import ValueField 1.0 , import MyModule 1.0 and I need this imports So when I run the QT Quick ...
0
votes
0answers
30 views

Error while installing QML app on ubuntu device using QT creator

I am getting following errors when try to install an application on my Nexus 4 having Latest Ubuntu Touch OS. :-1: error: lint_maintainer_domain: (EMAIL NEEDS HUMAN REVIEW) email domain too long ...
-1
votes
1answer
80 views

Problem in QT Quick Test for QML application

I have a problem in QT Quick Test for QML application, when I add import in my file.qml like: import QtQuick 2.3 import QtTest 1.0 import ValueField 1.0 <--- import "../myFile.qml" <--- ...
0
votes
1answer
19 views

Ubuntu sdk filedialog

I have tried to make a video playback application and this is the code I have got so far: import QtQuick 2.0 import QtMultimedia 5.0 import Ubuntu.Components 1.1 import QtQuick.Dialogs 1.0 Video { ...
2
votes
1answer
26 views

How to open an item in a MainView so that it fills the whole window?

I'm writing an application consisting of several pages. One page is a bit special, because it should fill up the whole screen. However, I cannot get rid of the page header, despite the fact that this ...
0
votes
1answer
207 views

Having trouble linking QML button to C++ class

First time using Ubuntu SDK and QML. I've spent the entire day attempting to figure this out but every solution that i came accross is either outdated or not well documented. I'm trying to figure out ...
1
vote
0answers
60 views

How do I bundle a python interpreter in my qml app?

How do I bundle a python interpreter in my qml app? I can not use the system's python interpreter due to the nature of Ubuntu’s new Click Packages, and App-Armour. How do I do this?
0
votes
0answers
28 views

Can you use QProcess in a Click Packaged Application?

I am just curious whether this is something AppArmor allows or not? My application works fine on the desktop, but I can't get Standard output or error to even display in my app when I run it from the ...
0
votes
0answers
11 views

What security policy group do I need to give a Click Package to download files?

My app downloads files, ideally to the Music Folder. What security policy groups are needed by app armor to accomplish this?
2
votes
2answers
119 views

Get unique device ID in QML

I need to get a unique ID for the device. I originally thought I'd use the device's imei, but that doesn't seem to return anything: import QtSystemInfo 5.0 DeviceInfo { id: device } ...
0
votes
0answers
26 views

Ubuntu SDK - switching to QML design mode crashes application

I'm using the Ubuntu SDK version 'qtcreator-plugin-ubuntu 3.1.1+15.04.20141212.1-0ubuntu1~0utopic1'. When developing an app containing QML code (App with simple UI) I cannot switch to design mode. ...
0
votes
1answer
23 views

Replace secret key placeholder at build time

I'm developing an Ubuntu touch app in QML, and would like to keep an API key reasonably secret (at least I don't want to have to commit it into the VCS). I see that you can define environment ...
0
votes
1answer
83 views

How to save text string in ClipBoard on Ubuntu Touch

As in topic I need to be copy text to ClipBoard but not by pressAndHold in TextField. Is there other way of doing this then via c++ ?
0
votes
1answer
34 views

Debugging a pyqt5 Oxide(html) App

Based on this: Debugging HTML5 With Ubuntu SDK For a PC pyqt5 qtwebkit app I can use the web inspector with chromium following theese steps: First run in a terminal: export ...
0
votes
0answers
20 views

html select tag in a pyqt5 oxide app

In a pyqt5 app with an HTML GUI, the "select" tag doesn't work, the control is show correctly, but when I click on it, it doesn't do anything. I'm getting this message from python: "Content ...
0
votes
0answers
31 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 ...
0
votes
1answer
19 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?
1
vote
0answers
28 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 ...
1
vote
1answer
48 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 ...
0
votes
1answer
67 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
89 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 ...
1
vote
1answer
74 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 ...
6
votes
0answers
110 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
24 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
2answers
243 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 ...
2
votes
2answers
515 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 ...
5
votes
3answers
131 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. ...
1
vote
0answers
45 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 ...
2
votes
1answer
89 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?
0
votes
1answer
90 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?
2
votes
1answer
81 views

Ubuntu Touch: How do I run an ubuntu touch app from the terminal?

How do I run an ubuntu touch app from the terminal? Where are they stored?
0
votes
0answers
16 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
1answer
96 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 ...