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

Running QML/C++ application build with CMake is unable to run from QtCreator or snap package

I am trying to get a QML/C++ application packaged as a snap. I am using CMake as a build system. The application builds fine and I am able to run the executable by double clicking on it. When trying ...
0
votes
0answers
27 views

How to work with QVariant(QJsonDocument) in javascript

I try to write a ubuntu app. My problem is, that i want to fill the ListModel in my qml. ListModel { id: model } i do that by using javascript: fill(database.get()) The database is defined ...
1
vote
0answers
25 views

content hub: make my app available to others

My app uses the phone's microphone to record audio. I need to make it available to other apps so that they can call upon it whenever they want to. Say email or a messaging service like telegram ...
0
votes
0answers
11 views

TextField using Keys.onPressed on Meizu MX4

I have this QML file: import QtQuick 2.2 import Ubuntu.Components 1.1 MainView { Label { id: lbl; text: "none"; } TextField { anchors.top: lbl.bottom; ...
2
votes
1answer
107 views

Ubuntu SDK : Having difficulty getting images to work in 'QML only app' when deploying to armhf device

When I deploy my QML only program to the desktop using the Ubuntu SDK, images that I have placed in the same folder as 'Main.qml' can be accessed and displayed correctly in the application using ...
1
vote
1answer
55 views

No video shown in Ubuntu Touch QML app video player

I'm trying to play a video in an Ubuntu Touch QML app. The audio plays, but no video is shown. A minimalistic version: import QtQuick 2.4 import Ubuntu.Components 1.2 import QtMultimedia 5.5 ...
1
vote
1answer
42 views

Is qml from the terminal supposed to work on OTA-10.2

Context: Meizu PRO 5 w/ UbuntuTouch OTA-10.2 (unboxed today). Developer Mode, and a rw filesystem. Question, qml and qmlscene segfault, and have broken symlinks: phablet@ubuntu-phablet:~$ qmlscene ...
0
votes
1answer
74 views

Plasma 5.5.5 NetworkManagement Widget won't load the QML file

Hello I am using Kubuntu 16.04 using Plasma 5.5.5 and Qt version 5.5.1. I was running kernel 5.5.3 and upon upgrade to 5.5.4 the plasma widget for network management seemed to break. So I downgraded ...
0
votes
0answers
59 views

Qt Creator missing Ubuntu Download Manager - how to install?

I am trying to use the Ubuntu Download Manager (https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.DownloadManager.DownloadManager/) in Qt Creator by entering the line: import Ubuntu....
0
votes
1answer
39 views

QML MediaPlayer on Ubuntu Touch

Has anyone tried to play movie link (MP4) using QML MediaPlayer on Ubuntu Touch? Currently I can only get audio but without any video. Any help would be appreciated.
1
vote
0answers
22 views

Go app won't compile in Ubuntu SDK

I'm trying to create a new Ubuntu Touch App with Go and QML using the template in the SDK. The application won't build and gives the following error. 17:41:47: Running command go get -d -u gopkg.in/...
0
votes
1answer
321 views

QT Creator cannot start ubuntu apps on ubuntu 16.04

If i create a new project with QT Creator (Ubuntu 16.04) QML App with C++ plugin (cmake) Framework: ubuntu-sdk-15.04.4-qml Desktop Unix-Generator (Desktop) ( CMake works without problems ) I start ...
1
vote
1answer
10 views

Non-existent property tools in Page

I have a code which used to work but after I upgraded to (K)ubuntu 16.04 and the latest Ubuntu-sdk, it doesn't work anymore. I get error Cannot assign to non-existent property "tools". This is my code ...
1
vote
0answers
54 views

How to use PageHeader on Ubuntu Desktop

I am trying to create an application for my Ubuntu Phone, that should be run on my desktop machine (15.10), too. It runs fine on my Ubuntu Phone (OTA 10), but when I try to run it on my desktop ...
0
votes
0answers
16 views

How to show a certain div in webview (qml)?

Is it possible to show a certain div from a webpage in qml webview for Ubuntu Touch?
0
votes
1answer
56 views

I need Ubuntu.Components 1.3 for Ubuntu 14.04

Newbie here. Been an IAR baremetal embedded guy for years. Ubuntu transition is painful. I've installed Ubuntu 14.04. I've installed SDK and Qt Creator and I'm trying to build...anything. ...
2
votes
1answer
79 views

Get the sum of all values in a specific column of a ListView in QML [closed]

How have the sum of a column in a list view? By example the total cost : ListModel { id: fruitModel ListElement { ...
1
vote
0answers
65 views

QML unit testing: running qmltestrunner

I'm on ubuntu 14.04. I installed the Ubuntu SDK IDE. Running a QML App on my Ubuntu phone via the IDE works fine. I'm following this tutorial on testing https://developer.ubuntu.com/en/apps/qml/...
0
votes
1answer
32 views

How to download and parse a gzipped xml file with qml in Ubuntu Touch?

Currency converter tutorial is very useful in explaining how to download and parse an xml file through XmlListModel, but it seems it is not possible to parse a gizipped file in this way. How could I ...
0
votes
0answers
53 views

Segfault running PyQt5 on Ubuntu Phone

I'm struggling with running a very simple pyqt5 application on the Ubuntu Phone, loading a QML file. I have installed extra python-qt5 packages for this. This is basically as stripped down as I can ...
0
votes
0answers
49 views

Ubuntu-touch QML MediaPlayer metaData

I'm not experienced at all. I have this simple code, it works fine on PC, but when I run it on ubuntu-touch it doesn't display metadata but a series of "undefined" (one for each playMusic.metaData*). ...
1
vote
0answers
52 views

How to control system volume with C++/QML?

Helo, I want to develop an app. It should control the system volume by day time. I have two questions: How to change system volume in C++/QML? How can I run my app as a service that will ...
1
vote
1answer
152 views

Ubuntu SDK Error 'could not find or load the Qt platform plugin “xcb”.'

I am trying to write my first ubuntu app using the Ubuntu SDK but keep running into an error. This error turns up both with QML and HTML5 apps. I am trying this just on the template for both project ...
0
votes
1answer
44 views

Why does XMLHttpRequest used in ubuntu sdk QML application produce “Object path cannot be empty” error

When I deploy my application to my Ubuntu phone via ubuntu SDK I get the following error: QNetworkManagerInterface::QNetworkManagerInterface(QObject*) nmReply "An AppArmor policy prevents this sender ...
0
votes
1answer
26 views

Ubuntu SDK IDE quits with Segmentation fault when running example code

I installed Ubuntu SDK from ppa:ubuntu-sdk-team/ppa on Ubuntu 14.04 LTS 64bit. Then I created device kit ubuntu-sdk-15.04 armhf. When I try to run with CTRL + R example below from: https://developer....
0
votes
0answers
19 views

ubuntu touch screen-shot api corodva/html/qml

I want to capture screen via ubuntu touch app. Is there any api like camera or other apis which can help capture screen because usually we take screen shot by holding volume up button. It can be any ...
0
votes
1answer
34 views

Issues with CurrencyConverter qml tutorial

I'm trying to follow the tutorial at https://developer.ubuntu.com/en/apps/qml/tutorials/building-your-first-qml-app/ which states, "Select the Projects > Ubuntu > App with Simple UI template and click ...
0
votes
0answers
28 views

Ubuntu SDK: QTquick not installed?

Der all, I just installed the Ubuntu SDK on Trusty Tahr (64bit). The MyHtml5 example worked quite well, but now I tried a "Simple QML App Projekt". My framework choice was ubuntu-sdk-14.04-qml ...
1
vote
1answer
82 views

ListModel display and if it contains [closed]

I want to know how to display a list if it contains a character. Example: ListModel { id: fruitModel ListElement { name: "Apple" cost: 2.45 } ListElement { ...
1
vote
1answer
112 views

How to create and build snappy apps ?

I am very new to Ubuntu application development. I have to develop an application for snappy Ubuntu. Now I am confused about how to do it? So here are my few questions. Which language should I use ...
-1
votes
1answer
37 views

Ubuntu sdk autopilot3 error

When I try to run the hello world application in de ubuntu sdk, i get this error: Can someone please help me to fix this?
3
votes
0answers
189 views

How do I develop a Ubuntu application using the Go language?

I want to develop some application for the Ubuntu platform. But I don't know C++. I can learn QML very easily. The problem is that the logic or process behind the scene in an application seems to use ...
0
votes
2answers
455 views

How to add element for QML ListModel using Javascript?

I have created one nested ListModel. ListModel { id: mainModel ListElement { mainName: "Alphabet" subAlpha: [ ListElement { alphaName: "A" }, ...
0
votes
1answer
49 views

Does Canonical have plans to build UI Toolkit APIs for the D programming language

There are APIs for C++, JavaScript and even Go. D Programming Language makes a good candidate for building Ubuntu Next apps and less complex compared to C++ IMO. It has good C++ bindings capability + (...
3
votes
1answer
117 views

Add image files in Ubuntu QML app with C++ plugins (qrc)

I'm writing an Ubuntu QML (phone) App with C++ plugins using ubuntu-sdk. My app includes a png image and in order to include the image in the binary (so it shows on the phone) I have created a qrc ...
0
votes
1answer
182 views

How to display a QWidget in Ubuntu Touch using QML and C++?

How can I display text from QTextEdit (a QWidget) using a QML frontend and a C++ backend? I am currently developing a Ubuntu Phone app using the qmake project. I need advanced text editing ...
1
vote
1answer
71 views

QML dynamic scoping not working (ReferenceError)

I am trying to reproduce the example here where the TitlePage.qml component creates two TitleText instances even though the TitleText type is in a separate file (under Section: Component Instance ...
0
votes
1answer
37 views

ubuntu phone textfield displayed different

I am trying to build a QML application for Ubuntu phone. My form looks ok on screen (desktop), but when I put the app on the phone, the display is off. The borders around my test fields are not ...
0
votes
0answers
20 views

Select Audio Device from within QML

I am trying to write a small qml app for audio playback. I was wondering, whether it is possible to choose the Audio Device from within QML (so without c++). The QtMultimedia.Audio element is not ...
0
votes
0answers
41 views

QML Ubuntu Touch: How share to another app?

I would like to share from a QML file a string to another application (through the native "Share to" page). I can't find documentation about this. My doubts are: Can it be done with an URL ...
1
vote
0answers
127 views

How to Send SMS and MMS using Ubuntu API

Is it possible to Send SMS and MMS using Ubuntu API? I've searched in the following documentation, but I cannot find anything about that. https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/ thx,
2
votes
0answers
91 views

How to perform a Dial Call using Ubuntu API

I'd like to know how to perform a Dial Call using Ubuntu API. I couldn't find anything in the API doc: https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/ thx,
1
vote
0answers
122 views

QtBluetooth support for Ubuntu Touch

I like to build a qml-based app with bluetooth support. My code works well for the Desktop Kit in the Ubuntu SDK but fails on the BQ Aquaris 4.5 with the error message 'module "QtBluetooth" is not ...
1
vote
0answers
98 views

ubuntu-sdk mkspec

I followed instructions in Ubuntu SDK to install the IDE. No problem. I can write an app and run it in the desktop, but not in my Ubuntu BQ 4.5. The kit is wrong and several errors appear: "Mkspec not ...
0
votes
0answers
117 views

TreeView in QML dosen't work?

I have installed the latest Qt 5.5.0, but there seems to be only QtQuick.Controls 1.0 and 1.1. I want to use TreeView, which is contained in the 1.4 version.
2
votes
1answer
130 views

Pure Qt application (QML/QtQuick) on Ubuntu Phone?

I have a Qt application that is based on QML/QtQuick and runs, among other platforms, on Android. Is it possible to compile this application without (major) modifications for Ubuntu phone? If yes, how?...
-1
votes
1answer
141 views

How to save variables for all pages in qml?

I am currently working on a game for Ubuntu touch. It is as good as finished, but one thing does not work: I have multiple pages using PageStack and want to have some variables which i can reach, ...
0
votes
0answers
145 views

No decoder available for type 'video/x-msmpeg, msmpegversion=(int)42,

I am using QtMultimedia class in QML: http://doc.qt.io/qt-5/qml-qtmultimedia-video.html When I run the first example program shown in the above link, I get the following error: Warning: "No decoder ...
0
votes
1answer
24 views

How do you make the background of a dragged ListItem opaque?

The new ListItem has drag-and-drop capability built-in. By default, though, dragged items have a transparent background, which looks awful. (Why would this be the default?) The ListItem has a color ...
1
vote
1answer
22 views

How do you detect the end of a live drag with the new ListItem?

The new ListItem has the ability to do live drag-and-drop reorderings. When one is in progress, how do you detect its end? The ListItem had the ViewItems.onDragUpdated signal, which should fire for ...