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
0answers
13 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
27 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
12 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
21 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 ...
0
votes
1answer
41 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
13 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
16 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
83 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
35 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
48 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
62 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
61 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
73 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
34 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
42 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
23 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
33 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
39 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
86 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
87 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
33 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
36 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
31 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
22 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
40 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
32 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
88 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
20 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
241 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
61 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
31 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
127 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
29 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
92 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
37 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
22 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
34 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
20 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
31 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
57 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
78 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
100 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
81 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
114 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
281 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 ...