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
21 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
27 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
0answers
25 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 ...
-1
votes
0answers
9 views

Ubuntu-sdk-fails to launch in the emulator

I have tried to run the first example code in the emulator, however it has recevied a failed event and, it did not want to launch. https://developer.ubuntu.com/api/qml/current/Ubuntu.Components.Tabs/ ...
2
votes
1answer
85 views
+50

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
22 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
26 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
26 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
votes
0answers
24 views

Ubuntu SDK Design

OK, so i have a question, i don't know if it's me or others, but i would like to know when or is the design mode going to be fixed?? "import Ubuntu.Components 1.1" for example. I tried, the ...
1
vote
1answer
49 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
71 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
59 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
30 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
21 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 ...
1
vote
1answer
125 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
29 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
32 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
47 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 ...
1
vote
1answer
67 views

Show JSON in QML without list [closed]

I would like to display data from a JSON file in my application for Ubuntu Touch. But the data is displayed only in list, how to display it differently? My code : function load() { ...
2
votes
2answers
10 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
33 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
48 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
43 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
44 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
49 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
53 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
38 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
34 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
56 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 = ...
0
votes
0answers
18 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
65 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
111 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
36 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
132 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
28 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
54 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
70 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
25 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
23 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 ...
3
votes
2answers
527 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 ...
2
votes
1answer
126 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
111 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
141 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
136 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
130 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
57 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
83 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
46 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
57 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
81 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 ...