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

13
votes
0answers
293 views

How to change index in OptionSelector immediately (without animation)?

In my app, I use an OptionSelector to choose from a list of bike stations. I also have a map component with placemarkers for each station. When I tap a placemarker, it also changes the OptionSelector ...
4
votes
0answers
379 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 + ...
3
votes
0answers
156 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 ...
3
votes
0answers
210 views

Unable to build QtQuick 2 projects

I'm running Xubuntu 14.04, and I have the following packages installed: qt5-default (5.2.1) qtcreator (3.0.1-0ubuntu4) qml (5.2.1-3ubuntu15.1) They were installed from the official repos and are ...
3
votes
0answers
896 views

TypeError: Cannot call method 'hasOwnProperty' of null, while creating a QMLscene window

I am trying to make a simple Ubuntu Touch web application with Qt Creator. I have set up a new project according to the tutorial and committed the files to Bazaar. I have set a url instead of the ...
3
votes
0answers
527 views

QML app icon not effective when called from app.setWindowIcon()

I've a Qt5/QML hybrid app built with Ubuntu Touch SDK. I'm trying to set the app icon for it, but without success. Code looks like this: int main(int argc, char *argv[]) { QApplication app(argc, ...
2
votes
0answers
83 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: ...
2
votes
0answers
76 views

How to force use of “overflow menu” for actions on header bar?

I am using header actions in my Ubuntu SDK app, but I would like to avoid clutter on the header bar. I have noticed that the Android-style "overflow menu" autocreates itself after a certain number of ...
2
votes
0answers
59 views

Ubuntu SDK, QML: how do I create a vertical slider?

I am trying to create a vertical slider: http://developer.ubuntu.com/api/qml/current/Ubuntu.Components.Slider/ How can I do that? Just rotating it doesn't seem like a good idea, it messes up anchors ...
2
votes
0answers
262 views

How can I detect screen rotation with QML

I've been trying to create a Ubuntu QML application, but when I rotate my screen while it is running on my tablet, the header is semitransparent and the content below is exceeding the screen's height ...
2
votes
0answers
34 views

Is there a Bool or Flag you can use in QML to determine whether a phone is running the application?

For example: Text { text: isPhone ? "this application is running on a phone" : "this application is not running on a phone" }
2
votes
0answers
39 views

How do I delete files that my app owns from QML?

My app imports files from ContentHub and saves them into ~/.local/share/applications/${myappid}/Pictures/ and I would like to be able to delete them when the user no longer wants them.
2
votes
0answers
254 views

How does one run QML tests on a Ubuntu Touch Phone?

My application has QML tests using QtTests that I run locally on the desktop via qmltestrunner. I am interested in running these tests on the device to simulate real conditions like the on-screen ...
2
votes
0answers
91 views

Publish a QML/C++ application as a click package

I've written an application which I would like to publish as click package. All the guides and prepared projects mention plain QML applications only. My application furthermore depends on a shared ...
2
votes
0answers
308 views

Puzzle Game QML GridView Animation Problems

I've been working on a puzzle game for Ubuntu Touch and I'm facing some issues with animations. The problem seems to occurs when GridView animations (add, move, remove...) play too fast. Something ...
2
votes
0answers
31 views

How does the Ubuntu SDK handle accessibility?

How do I design an application in the Ubuntu SDK so that it integrates with assistive technology such as screen readers?
1
vote
0answers
38 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 ...
1
vote
0answers
39 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 ...
1
vote
0answers
41 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
0answers
71 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 ...
1
vote
0answers
114 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
85 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
104 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
88 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 ...
1
vote
0answers
50 views

Ubuntu's appindicator using QML

Is it possible to create a Unity indicator for my app which is written in QML?
1
vote
0answers
107 views

How do I bundle a python interpreter in my qml app?

How do I bundle a python interpreter in my qml app? I can not use the system's python interpreter due to the nature of Ubuntu’s new Click Packages, and App-Armour. How do I do this?
1
vote
0answers
110 views

Ubuntu QML Alarm not working properly

I've been trying to create a simple app capable of setting system alarm. But although I can see the set alarm at correct time in the event list under my clock indicator (on desktop), it doesn't notify ...
1
vote
0answers
34 views

Error while trying to import pictures with ContentHub

I followed the Content Hub tutorial and I used the code about importing single pictures I found here: http://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Content.index/ Anyway, when trying to import ...
1
vote
0answers
255 views

Anybody know how to delete a file from QML without resorting to a C++ plugin?

Anybody know how to delete a file from QML without resorting to a C++ plugin? It should be possible to do in the folder that my app uses for data storage.
1
vote
0answers
23 views

In the Ubuntu SDK, is there a way to view all global variables in current project?

In the Ubuntu SDK, is there a way to view all global variables in current project? Working on one of the core apps, and I want to figure out if any global variables have been defined for the current ...
1
vote
0answers
75 views

Qml HUD integration without MainView?

I'm working on an app with Qt Quick Components, I don't want to use any Ubuntu specific components because I want the desktop version of my app to be more portable than that (Qt 5.2 is enough of a ...
1
vote
0answers
254 views

Cannot import directory path to qmlscene

I am trying to import directory in QML as explained, here: http://qt-project.org/doc/qt-5.0/qtqml/qtqml-syntax-directoryimports.html. I have the following ubuntu-app | - extras1 | - extras2 | - ...
1
vote
0answers
380 views

Not getting output for CurrencyConverter standard app

I am running the Ubuntu 12.04.2 LTS version on my system and have also installed the Ubuntu SDK as instructed in: http://developer.ubuntu.com/get-started/gomobile/#step-get-toolkit Also, I have ...
0
votes
0answers
5 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 ...
0
votes
0answers
10 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
0answers
31 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
32 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*). ...
0
votes
0answers
13 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
0answers
25 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 ...
0
votes
0answers
14 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
39 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 ...
0
votes
0answers
96 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.
0
votes
0answers
122 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
0answers
58 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
0answers
40 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
187 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 ...
0
votes
0answers
41 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 ...
0
votes
0answers
38 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
0answers
47 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
122 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. ...