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
votes
0answers
21 views

Ideal language & IDE for creating native desktop Ubuntu apps

I'm in process of creating a native desktop application for Ubuntu (targeting x86 specifically). I'm considering Vala and QML (with C++ backend). As the app I'm planning to make requires strong ...
1
vote
0answers
27 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
30 views

Ubuntu sdk autopilot3 error

When I try to run the hello world application in de ubuntu sdk, i get this error: link Can someone please help me to fix this? Thanks in advance! Figured out how to fix this: just delete the ...
3
votes
0answers
119 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
75 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
34 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
47 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
67 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
30 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
32 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
11 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
35 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
88 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, ...
1
vote
0answers
76 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
61 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
49 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
67 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
86 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, ...
-1
votes
1answer
98 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
86 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 ...
0
votes
1answer
63 views

SDK QML slider on release signal

I am using the slider component from the 15.04 Ubuntu SDK components, see here for the docs. Currently, there is no signal for releasing the slider handle, but there is one for when it is touched ...
0
votes
0answers
41 views

Can't set visibility property on QML MainView

Am I supposed to be able to write in a button's onClick method: mainView.visibility=FullScreen ? (I have set my MainView's ID to "mainView".) When I try this I get the error Error: Cannot assign ...
0
votes
1answer
53 views

How can I save the CurrentItem of Picker in QML?

Helo, I defined in mainView the following functions: property var db: null function openDB() { if(db !== null) return; // db = LocalStorage.openDatabaseSync(identifier, version, ...
0
votes
1answer
36 views

How to keep an UbuntuListView between its boundaries?

I have an UbuntuListView in a QML application for Ubuntu Touch. Above it, there's another component - a TextField. The initial position of the list looks good. Also, if the list is smaller than the ...
0
votes
1answer
110 views

How to install the qmlscene module version need?

I'm trying to run a QML without the Ubuntu SDK in Ubuntu 14.04. costales@desktop:~/Desktop$ qmlscene qml/Main.qml file:///home/costales/Desktop/unav_jkb/qml/Main.qml:16 module "QtQuick" version 2.4 ...
3
votes
1answer
206 views

How to handle QML application shutdown?

I need to persist the state of a QML application when it shuts down, and to read it when the application loads. I tried using Component.onCompleted and Component.onDestruction inside the MainView's ...
0
votes
1answer
51 views

How to delete from an UbuntuListView?

I'm trying to learn how to use an UbuntuListView. Items will be added at runtime, but for demo I just hardcoded them. What I need is a way of removing existing list items. Here's my code and a ...
0
votes
0answers
37 views

ListItemActions leadingActions and trailingActions not working

I am having trouble getting leadingActions and trailingActions in ubuntu-sdk ListItemActions to work. QtCreator just underlines the two properties and throws an error message about "cannot assign to ...
0
votes
0answers
144 views

How to keep model and view in sync for a QML List Item?

I have a list with multiple selection and a button. All list items are checked. When I click the button, I want the second item to become unchecked. I am also changing the displayed text (just for ...
1
vote
1answer
89 views

QtQuick Controls for armfh kit Ubuntu SDK (Ubuntu 15.04)

An app that I am working on compiles and runs fine on the desktop but when run from the Aquaris 4.5 Ubuntu SDK keeps throwing messages about QtQuick Controls not found. On checking the path, I found ...
1
vote
2answers
165 views

Access document files from QML

I am writing a QML-App for Nexus 4 running Ubuntu touch. I have to access some files stored in /home/phablet/Documents. As I read here: Use Pictures for an Image object in QML for Ubuntu Touch this ...
0
votes
1answer
125 views

QtWebSockets not available on Ubuntu Touch

I'm developing an Ubuntu Touch application which communicates with a server using WebSockets. Qt offers its own API since version 5.3, which can be used from a QML file by adding import QtWebSockets ...
0
votes
1answer
51 views

Cannot detect if a MouseArea is over a GridView item

This question is not specific for the Ubuntu platform, but as I am developing an Ubuntu Touch app, I'd like to ask first here. I have a list of UbuntuShapes arranged in a GridView - generated from a ...
0
votes
0answers
37 views

Is it acceptable code style to leave binding loops in QML applications?

Backstory: I am working on a patch for the ubuntu-filemanager-app that will shrink the fontSize: for a Label {}, if the width: is larger than the window size. Think this: Label { id: myLabel ...
2
votes
1answer
238 views

How do I simply run an ubuntu touch app from the terminal?

I've got a qml file and I just want to ssh to the phone and do qmlscene myfile.qml Is it possible without doing all that stuff with SDK and packages? Just vim and some simple commands that can fit ...
0
votes
0answers
34 views

QML app developpement, how to access system organizer (events)

I searched for a long time about this but can't find something relevant. I'm starting to develop with Ubuntu SDK and QML. I would like to access the system organizer in order to read the next events ...
0
votes
1answer
43 views

Is it possible in Ubuntu app, start C++ function from javascript?

I have application using QML and C++ and want to start C++ function from javascript . Is it possible ?
1
vote
1answer
70 views

How to identify programically in QML app, where is located my sqlite database file

I have QML application which use as well C++ . From C++ I need to connect to DB ( sqlite ) . For this I need to know the exact name and location of the database file . How to identify it ? Or how to ...
2
votes
2answers
14 views

Why PageStack won't send property?

I have a basic code but it's impossible to send a property to an external page This is my main.qml : PageStack { id: pageStack Component.onCompleted: push(pageMain) Page { ...
0
votes
0answers
44 views

How to use Ubuntu.Components.Icon?

I am using the Ubuntu.Components.Icon component from Ubuntu SDK to display an icon (as a map marker). I also tried to place the component on a blank page, but I alays get the same error: ...
0
votes
0answers
99 views

can't deploy application to emulator : SFTP initialization failed: Server could not start SFTP subsystem

Such error I got when try to run my app in emulator : 11:01:33: Connecting to device... 11:01:34: SFTP initialization failed: Server could not start SFTP subsystem. 11:01:34: Deploy step failed. ...
0
votes
1answer
68 views

QML WebView does not want to start in Emulator

When opening WebView in emulator I got this: LaunchProcess: failed to execvp: /usr/lib/arm-linux-gnueabihf/oxide-qt/chrome-sandbox
0
votes
0answers
62 views

Ubuntu SDK include error because of import [QML/JS]

Here are my files : SettingsController.js .import QtQuick.LocalStorage 2.0 as Sql var result=Qt.include("MainController.js") Qt.include("DatabaseDefault.js") console.log(result.status) ...
2
votes
0answers
71 views

Can't start ubuntu-filemanager-app in emulator

I downloaded ubuntu-filemanager-app opened the project in UbuntuSDK and want to run it in Emulator , but I get this error: 23:49:37: Running steps for project ubuntu-filemanager-app... 23:49:37: ...
0
votes
1answer
97 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
70 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
42 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
76 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 = ...