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

3
votes
2answers
534 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 ...
0
votes
2answers
45 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 { ...
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, ...
2
votes
1answer
89 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
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 ...
3
votes
0answers
250 views

(QML) Flickable not working as supposed

So, while building an Ubuntu app I needed to use Flickable for scrolling, so now I have code of the form Page{ ... Flickable { anchors.fill: parent content.height: element1.height + ...
-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/ ...
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
27 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
27 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
51 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 ...
3
votes
1answer
448 views

Buttons in ubuntu touch toolbar

What is the code to have a toolbar with buttons when programing in QML with the Ubuntu Components Module. I want to make it so that when I swipe a finger from the bottom of the screen the toolbar ...
0
votes
1answer
147 views

How to open a browser when the TextEdit::onLinkActivated signal is received

I'd like to open a browser window to display the URL received by a TextEdit onLinkActivated signal. Is it possible to perform such call from the QML application?
1
vote
2answers
72 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
60 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
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
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
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 ?
2
votes
2answers
259 views
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
98 views

Change tab from code using ubuntu SDK

How to change tab using code in QML in Ubuntu SDK? The answer is: If tabs are defined as follows: Tabs { id: tabs ..... } then using this: tabs.selectedTabIndex = 0 will get ...
1
vote
1answer
68 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() { ...
1
vote
0answers
36 views

Ubuntu's appindicator using QML

Is it possible to create a Unity indicator for my app which is written in QML?
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
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 { ...
4
votes
1answer
177 views
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: ...
5
votes
3answers
3k views

QML: Simplest way to write to a text file?

QML at the moment lacks basic system commands, so I am looking for the most simple template to write to /tmp/text.txt.
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. ...
3
votes
1answer
545 views

How to get QML syntax highlighting in gedit?

QML files opened with gedit don't have syntax highlighting. Is there a package providing a gtksourceview lang.spec file for QML? If not, has anyone written a lang.spec than can be installed locally?
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
0answers
60 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 ...
3
votes
1answer
2k views

How to create charts in QML?

I'd like to add to my application a page with not only raw figures but also eye friendly charts to display data. Is there a native component or a third-party plugin I could use to create such ...
0
votes
0answers
58 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
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) ...
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
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
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 ...
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 ...
1
vote
1answer
116 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 ...
0
votes
1answer
55 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
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 ...