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

21
votes
1answer
597 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 ...
5
votes
1answer
607 views

How to use Arguments in QML without getting qmlscene arguments

I'm trying to write a QML application to be launched by qmlscene. I want this to accept arguments, so I'm using the Arguments object. However, this gets the arguments passed to qmlscene as well as ...
3
votes
1answer
439 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?
3
votes
1answer
163 views

How to collapse and expand a ListItem.Standard?

For the app I am developing I would like to have a list with sections that I can collapse or expand. The item in the sections can be clicked and open a DefaultSheet. So, for example in the "Ubuntu UI ...
2
votes
1answer
93 views

Ubuntu SDK: How can I use PyQt for developing Ubuntu Touch apps?

I've heard that it's possible, can you give me some pointers on how to do that?
2
votes
1answer
97 views

Ubuntu SDK, Ubuntu touch app: “Error: Error opening shm.”

I am building an app for Ubuntu Touch. It works well on desktop, but when I try to open it on nexus it starts opening a splash screen but immediately crashes. Here's the logs: t_shm() at ...
2
votes
1answer
52 views

Use Pictures for an Image object in QML for Ubuntu Touch

I'm trying to use an image file from the main Pictures directory (/home/phablet/Pictures) for an AnimatedIMage/Image object however it says error reading file. I've tried two paths already but neither ...
6
votes
0answers
112 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 ...
3
votes
0answers
78 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
174 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
700 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
316 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
27 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
82 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
29 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
34 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
150 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
72 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
227 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
20 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
61 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
29 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 ...
1
vote
0answers
49 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
19 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
54 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
91 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
354 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
6 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
14 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 ...
0
votes
0answers
39 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
0answers
31 views

Can't start application in the Emulator

I created in UBUNTU SDK new project ( QML App with C++ plugin ). I can run it as desktop application, but when I want to start it in the emulator I got following error : ...
0
votes
0answers
33 views

How to add ScrollBar to combobox QML

I hav a combobox with 100 ligne in QML ComboBox{ id: id width: 180 Model : liste() } How to add a scrollBar in this ...
0
votes
0answers
31 views

Where can I find the Ubuntu qml components?

I decided to give Ubuntu-SDK a try but it would not work properly, showing app a weird transparent window most of the time that would not go away or at least get out of the foreground. I could not ...
0
votes
0answers
38 views

QML - Tabs - Header layout

the default style of the Tabs is like this: but how to make it look like this? thanks
0
votes
0answers
32 views

Error while installing QML app on ubuntu device using QT creator

I am getting following errors when try to install an application on my Nexus 4 having Latest Ubuntu Touch OS. :-1: error: lint_maintainer_domain: (EMAIL NEEDS HUMAN REVIEW) email domain too long ...
0
votes
0answers
28 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 ...
0
votes
0answers
12 views

What security policy group do I need to give a Click Package to download files?

My app downloads files, ideally to the Music Folder. What security policy groups are needed by app armor to accomplish this?
0
votes
0answers
26 views

Ubuntu SDK - switching to QML design mode crashes application

I'm using the Ubuntu SDK version 'qtcreator-plugin-ubuntu 3.1.1+15.04.20141212.1-0ubuntu1~0utopic1'. When developing an app containing QML code (App with simple UI) I cannot switch to design mode. ...
0
votes
0answers
21 views

html select tag in a pyqt5 oxide app

In a pyqt5 app with an HTML GUI, the "select" tag doesn't work, the control is show correctly, but when I click on it, it doesn't do anything. I'm getting this message from python: "Content ...
0
votes
0answers
33 views

Ubuntu QML App UI problems

I need some help... I am currently building a new QML Ubuntu App and I am struggeling with the UI.. The App sends a request to an external server, gets some JSON back and appends that to a ...
0
votes
0answers
16 views

Ubuntu SDK, Ubuntu Touch: Disable automaticOrientation for one element?

I am building an Ubuntu Touch app. Option "automaticOrientation: true" rotates the whole interface, but I need one element to stay in place and ignore it. Is this possible?
0
votes
0answers
25 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 ...
0
votes
0answers
11 views

Page Stack Component Depth to always remain visible?

Is this possible? Say you have a depth of 5 tabs, They appear and disappear as you click the header. I want them to always remain visible.
0
votes
0answers
82 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.
0
votes
0answers
21 views

(QML) Which components do I want to invoke for notifcations and dialogues on Ubuntu Touch?

Now of course I can make any sort of notification or dialogue I want. However, I want to know what the Ubuntu Style guide recommends for notifications and dialogues. A notifcation could be: Song ...
0
votes
0answers
66 views

Why I can't open qml file?

I try to develop a very simple application in QML for ubuntu-touch ! On desktop, when I press the button "add debpt" it's open a form : When I lunch it into a emulator, I have nothing : This is ...
0
votes
0answers
35 views

Ubuntu App Development: u1db results not as Listview just one special result

I have started with an Ubuntu app (QML) with a U1DB-Database-Integration. I could add new Data and I can show all data with a Listview (over Query and Index). But how can I get just one special ...
0
votes
0answers
39 views

QML: How do I set my icon in the Ubuntu SDK with a CMakeLists based project?

How do I set my icon in the Ubuntu SDK with a CMakeLists based project? Do I need a specific type of image file, or can I use just a png?
0
votes
0answers
129 views

Is it possible to send a return code with the Qt.quit() signal from QML?

I'd like to know if it's possible to send a return code from a pure QML application using the Qt.quit() signal so that qmlscene can exit with the same error code. I don't need a solution using C++, I ...