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

What's the proper way of connecting a signal to a JavaScript method?

In an Ubuntu phone application, I need to perform some logic when an event occurs. Since I don't want to pollute the QML with too many lines of JavaScript, I made a class in an external file and I ...
0
votes
1answer
19 views

'ReferenceError: contents is not defined' with U1db

I'm trying to read information from a database of U1db. I encountered this error 'ReferenceError: contents is not defined' Here's my code: import U1db 1.0 as U1db U1db.Database { ...
0
votes
0answers
18 views

Ubuntu Touch emulator does not run app

I'm having troubles to run the default project app. It simply shows "Waiting for your emulator to get ready". After it is already running. The emulator is using a kit with 14.04 framework. So does ...
0
votes
0answers
24 views

System command QML runs only in Desktop Kit

Following another thread Run system commands from QML App, I wrote a program that calls command arecord. I only replaced some lines in Main.qml: ... onClicked: { var lista1 = ...
-1
votes
0answers
12 views

When will go-qml be officially supported in building apps for Ubuntu Touch/Next?

I haven't seen someone build an official app using go-qml specifically for Ubuntu Touch/Next. Any progress on this area?
0
votes
0answers
6 views

How to get the DPI of an ubuntu touch device

I would like to know the DPI of an ubuntu device so for example I could make a ruler app.
0
votes
0answers
21 views

How to make Ubuntu touch qml app fullscreen

I am making an Ubuntu touch app and I am wondering how you can make things such as games fullscreen like PathWind. Which means removing the notification bar. If I have a qml object as my main object, ...
1
vote
1answer
35 views

QML Blinking animation

I need a blinking animation for an icon, I did this so far: Icon{ id: bigLike name: "like" color: "white" opacity: 0 ...
1
vote
0answers
23 views

How to add items to a listview from the user perspective

I wanted to know how could I make it for a user to add items to my listview, so that his events could stay there, and later move to a database. beneath it the code I've for my listview now i want know ...
1
vote
1answer
77 views

Can't run QML app with C++ plugin (cmake) in emulator

I am using Ubuntu 15.04. I created a project QML app with C++ plugin (cmake), and then I want to start it. In desktop it's running fine. When I tried to start it in emulator I got: Framework ...
0
votes
0answers
18 views

SpinBox and ColorDialog on Ubuntu phone

I would like to create an app which need to use SpinBox and ColorDialog. These components need QtQuick.Controls to work but seems to not be installed. How install QtQuick.Controls as requirement for ...
0
votes
1answer
29 views

How to build a package for my QML app?

I want to build a package for my app, written with C++ and QML. For this I'm using Ubuntu SDK. I'm working on Ubuntu 15.04. Here is the project tree : Player : player.qmlproject components (a ...
1
vote
1answer
54 views

Ubuntu Phone - detect system type Desktop or Mobile

Is there a way to detect platform from QML or Qt C++ classes? I have Qt/QML project supplied to Linux/Android/Windows at one time, I see it's possible to deploy it to Ubuntu Phone. Is there a way to ...
0
votes
1answer
17 views

How to make a custom button provide haptic feedback

I've got a custom round button that is derived from Ubuntu.Components.AbstractButton. Looking at the documentation, it states that: All components deriving from this class support haptic feedback ...
0
votes
0answers
20 views

Tutorial for StyledItems for Ubuntu Touch

Is there any toturial or example how to modify the style of StyledItems? I'm writing an QML app and want to modify some header layout items, without copying and modding all ambiance theme files. For ...
2
votes
1answer
167 views

kde clock format: how to include the day in a non-tiny font?

I'm using KDE on Kubuntu 15.04. I want my taskbar clock to look like this: Sun 19 15:11 (or AM/PM would be ok, main thing is Day / Date in the same font size as the time. I don't need my computer ...
1
vote
1answer
53 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
59 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
86 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
90 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 ...
2
votes
2answers
93 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
41 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
52 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
27 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
36 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
52 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
99 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
94 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
34 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
48 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
37 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
25 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
49 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
35 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
104 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
29 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
27 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
298 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
67 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
33 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
12 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
144 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
34 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
26 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
107 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
40 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
27 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
38 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
24 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?