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
16 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
432 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
128 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
51 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
41 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
26 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
15 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
38 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
96 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
29 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
239 views
0
votes
0answers
27 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
59 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
33 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
34 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
7 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
142 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
29 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
529 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
41 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
55 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
49 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
39 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
41 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
35 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
32 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
16 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
48 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
62 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
115 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
80 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
34 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
44 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
24 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
22 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
1answer
42 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
0answers
22 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
351 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
101 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: ...
22
votes
1answer
665 views

How to lock ubuntu device orientation in portrait or landscape from user input?

I am working on a reader app to be used on Ubuntu-Touch. When reading books from the app it would be a helpful feature to lock the orientation in either portrait or landscape. This would be useful ...
1
vote
1answer
81 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
98 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
124 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, ...
0
votes
1answer
41 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
2answers
119 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 ...
1
vote
1answer
121 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 ...