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

5
votes
1answer
503 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
352 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
143 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
107 views

Ubuntu Touch how to detect If the application is closed

on ubuntu touch. I run an application in terminal and close the application in the Application scope. The application isn't killed. And no event is caught in QQuickView. How do I detect this close ...
2
votes
1answer
432 views

(QML) Scroll multiple listviews

Is possible to scroll multiple Listviews together in qml?? this was my attempt: Flickable { id: scoreflick anchors.top: namesrow.bottom anchors.left: ...
2
votes
1answer
347 views

Update grayed out (Xorg X server — QXL display driver)

I've been ignoring this issue for a while since it didn't effect anything on my system. But its annoying to watch this one little update graded out while the rest of the updates get installed. Any ...
1
vote
1answer
33 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 ...
1
vote
1answer
143 views

QML PageStack , communication between Pages - return values

I defined PageStack only on master page (a.qml) : import QtQuick 2.0 import Ubuntu.Components 0.1 MainView { width: units.gu(48) height: units.gu(60) PageStack { id: pageStack ...
1
vote
1answer
85 views

Internationalization of QML application using i18n

Does someone know all the steps needed to have the apps translated in multiple languages? I am using in my QML files i18n.tr() , and such words I need to translate I performed below steps ( ...
1
vote
1answer
545 views

Extend existing QML Component from C++ plugin

First of all, I would like to say that I'm not very experienced in Qt, but I would like to include a new feature in existing QML WebView component to set a list of header values, included User Agent ...
1
vote
1answer
148 views

How do I install QtTest for the Ubuntu SDK?

When I select "Build -> Ubuntu Touch -> Create Application Package" in the Ubuntu SDK, the build fails with the error "FAIL! : qmltestrunner::tst_hellocomponent::compile() module "QtTest" is not ...
1
vote
1answer
114 views

Qt Quick 2.0 UI Application Not Displaying on Touch Device

I'm trying to run a tiny (very tiny) Qt Quick 2.0 UI application on my Ubuntu Touch device (Galaxy Nexus Phone). Qt Creator successfully pushes to the device (copies via ADB and runs QMLScene) but I'm ...
0
votes
1answer
11 views

Why does my QQuick application crash on Ubuntu 14.04?

Basically I have (The Game class just wraps QGuiApplication): int Game::run() { QQuickView * mMainView = new QQuickView; mMainView->setResizeMode(QQuickView::SizeRootObjectToView); ...
0
votes
1answer
17 views

Weird bug in qml and oxyde

I have made an app with this source code: http://pastebin.com/zMwtusZJ However when I try to run the app the webview instead becomes black and does not load the web page. Here is the crash output: ...
0
votes
1answer
18 views

Combine a falling animation with a going up animation on click

I am trying to make a moving sprite fall down from the upper left corner to the left down corner. That function is working properly with the SequentialAnimation component. Apart from that, when you ...
15
votes
0answers
310 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
0answers
84 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
56 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
107 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
611 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
257 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
16 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
55 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
25 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
32 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
118 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
44 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 ...
2
votes
0answers
59 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
192 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
28 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
24 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
26 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?
1
vote
0answers
17 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
40 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
58 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
68 views

How can I populate ListItem.ValueSelector with values from model

could you tell me How can I populate ListItem.ValueSelector with values from a ListModel? I can populate a list with fixed values ("X 1", "X 2", "X 3"), like this: ListModel { id: contactmodel ...
1
vote
0answers
318 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
4 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 ...
0
votes
0answers
5 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
0answers
15 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
36 views

Ubuntu Touch Qt3D 2.0 crashes on start

I've been trying to develop something in QML3D and while my app is running well on desktop, I can't get it working on my tablet (even thought for example Qt3D cylinder from the software center - ...
0
votes
0answers
18 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
10 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
40 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
20 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
55 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
23 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
33 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
85 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 ...
0
votes
0answers
45 views

Import libraries in Ubuntu SDK

I am very new to QML, Qt and the like. I want to add a library (e.g. http://sourceforge.net/p/qzxing/wiki/Home/) for a "Ubuntu -> Simple UI" project. However, I cannot figure out how. The instructions ...