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

1
vote
2answers
232 views

Where are Tutorials and is it QML or QT

Hi there my question is that where can i find any good QML tutorials for Ubuntu phone app developing (I've seen the developer.ubuntu.com site but still thats not enough) and witch of the 2 languages ...
5
votes
1answer
459 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
312 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
141 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
95 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
396 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
332 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
123 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
77 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
490 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
131 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
111 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
31 views

Login on a Webpage via QML-App

I am trying to write an App for Ubuntu Touch on a Nexus 4 using QML and the Ubuntu SDK. The App should do what I usually do via Internetbrowser: Login on a Webpage, and then see the data on the next ...
0
votes
1answer
124 views

Qt sdk for ubuntu development creating 3 Qml2puppet upon design mode

When I create a project in Qt Creator 2.7.1 on Ubuntu 13.04 64bit the project is all fine. But when I enter the design mode on the left side menu, then there are 3 instances of Qml2puppet appearing on ...
0
votes
1answer
256 views

Receiving drag events in a WebView in a QML application

I'm working on an app using QML and the Ubuntu SDK. One of the Pages contains a WebView. While the WebView receives click events just fine, it doesn't receive drag events, as I would like it to. I ...
0
votes
1answer
67 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 ...
0
votes
1answer
98 views

How can I get user/system information in a QML mobile app?

In this specific case, I'd like to use the full name of the currently logged-in user in a QML app (not the logname). As far as I found out, system calls can not yet be used (and would not be an ...
0
votes
1answer
223 views

How to use Ubuntu QML Dialog or other Popup without any buttons?

I am trying to make a modal popup where all there is is a progress bar, and when the progress bar is full it automatically closes, Dialog and the other popups don't seem to even show unless you set ...
0
votes
1answer
38 views

Clickable emails in Label

In my app (ite-missa-est) and in the sudoku-app we are wondering how to make an email clickable as a URL link is. In a label the code for a link is: Label { //TRANSLATORS: here is the ...
9
votes
0answers
167 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 ...
3
votes
0answers
34 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
77 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
554 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
225 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
11 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
30 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
99 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
40 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
52 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
173 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
16 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
29 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
51 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
305 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
8 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
7 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
27 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
18 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
46 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
31 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
58 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
37 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 ...