3
votes
1answer
40 views

How to detect if GPS sources are enabled using QtPositioning in Ubuntu Touch?

I am using PositionSource to get the latitude and longitude of the user's location from the GPS data provided by Ubuntu Touch. However I need to detect if GPS has been enabled by the user. On reading ...
5
votes
0answers
29 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 ...
2
votes
1answer
26 views

Why does the Ubuntu SDK tell me, “do not use comma expression”, and what should I use instead?

So for example: onCurrentlyExpandedChanged: flickable.DragOverBounds, flickable.contentHeight += itemHeight,console.log(itemHeight) The commas will have a yellow underline, and the tooltip will ...
1
vote
1answer
59 views

Why am I getting the error “Cannot assign to non-existent property ”head"?

I'm actually on Trusty, and I want to try new "head" property which comes with API 14.10 of Ubuntu SDK. When I launch qmlscene to test my applicaton, I get this error : Cannot assign to ...
3
votes
0answers
66 views

How to create an Ubuntu Touch app with a C++ backend and a QML interface [closed]

I'm looking forward to the release of Ubuntu Touch and thought it would be nice to contribute a small and free app that I'm also using now on my Android phone. The free and open source app for ...
1
vote
1answer
77 views

Execute Javascript Code in Oxide

I'm Looking for an oxide equivalence to this QtWebKit Function: WebView.experimental.evaluateJavaScript() Or WebKitGtk WebView.execute_script() I'm having problems to find documentation about ...
2
votes
0answers
31 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 ...
1
vote
1answer
78 views

Problem with QtWebkit and QML in PyQt5 App Ubuntu for Devices (Ubuntu Touch)

I'm having problems with qtwebkit in ubuntu for devices (Nexus 10) when using pyqt5, the webview element doesn't show, and the application closes. But if I test the same .qml file with qmlscene it ...
0
votes
1answer
52 views

App for Ubuntu Touch [duplicate]

I've implemented an application for Ubuntu Touch, using QML. How can I create a "package"(something like APK in Android) for the app?
1
vote
1answer
86 views

emit signal with custom type objects array parameter from c++ and receive in qml

I would like to emit a signal from a Qt C++ class which includes a parameter that is an array of custom objects (inherited from QObject) and receive the parameter in its qml slot, but i'm afraid it is ...
0
votes
1answer
29 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 ...
2
votes
1answer
80 views

How to translate ListElement property with Ubuntu SDK

I have my fist Ubuntu Touch QML app running, and I am willing to translate it. Whenever I use a UI string in the qml files, I was careful to use i18n.tr("my text"). So now I need to generate the pot, ...
4
votes
1answer
56 views

How can I change the color of Ubuntu Touch ToolBar?

Here is my situation: Does anyone know how to change colour of the bottom toolbar?
4
votes
1answer
100 views

Ubuntu SDK QML how to change the background color of TextField

I have a situation where the background color of my QML app MainView causes the textfield entry to have grey lettering on equally dark brown background. This makes it almost impossible to read what ...
0
votes
1answer
51 views

HUD and menu integration for Ubuntu Touch apps

Is there a way to move the Tabs into a menu, or the toolbar options into a menu? It would be nice enough to have the toolbar options display in the menu when on the desktop.. Is there any work to add ...
0
votes
1answer
30 views

QML: QChar Booleans are undefined

function myFunction(x) { console.log(x.isLetter) } myFunction("s") When I run this in a .qml file, it tells me that "isLetter" is undefined. Why? ...
0
votes
2answers
46 views

QML: How do you toggle boolean?

In QML, how do you toggle boolean non explicitly? For example: Whenever a button is pressed, a boolean property will simply switch to its other value. If false, it will be come true. If true, it ...
1
vote
1answer
30 views

QML: How to display a “<” character in a richTextBox?

The code in question: description.insert(0,"<tr><td><H1> ---Less-Than-Sign-Here--- </H1></td><td><font face='Ubuntu'size='3'color='#f37420'> ...
2
votes
1answer
23 views

QML: What is the difference between Row and TemplateRow?

TemplateRow is just an example out of several. There is also TemplateSection and I assume TemplateColumn as well as many others. When should I be using Row{} vs TemplateRow{}?
2
votes
2answers
82 views

QML: What does i18n.tr(“blah blah blah”) mean?

Specifically, what is i18n.tr short for?
0
votes
0answers
26 views

Imports for executing system commands? [duplicate]

QML at the moment lacks the ability to execute basic system commands. What libraries or functions can be imported to add this functionality to a .qml file?
1
vote
1answer
114 views

In QML, is there a Conditional Layout that corresponds to the phones orientation?

So instead of guessing it with something like this: ConditionalLayout { name: "column" when: layouts.width > units.gu(50) Column {... It would be something like this: ...
4
votes
1answer
106 views

What does .gu stand for?

What does .gu stand for? For example: ConditionalLayout { name: "row" when: layouts.width > units.gu(50) //right here Row { anchors.fill: parent etc....
3
votes
2answers
572 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.
2
votes
1answer
72 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
0answers
45 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 ...
1
vote
0answers
40 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 | - ...
2
votes
1answer
72 views

How to recieve call to custom URL handler in Ubuntu Touch QML

I have a QML application that needs to react to a custom URL handler call, like "myapp://something". I know I need to register the URL handler in my *.desktop file as: ...
3
votes
1answer
393 views

Embedding C++ Objects into QML with Context Properties

According to Qt5 documentation: exposing methods including qt slots all public slots of C++ classes that inherit from QObject, are accessible from QML Here what I did: C++ class MyClass : public ...
3
votes
1answer
79 views

Install newly developed app on Ubuntu Touch device

Host OS: Ubuntu 12.04.4 LTS Ubuntu Touch Device: Nexus4 Running Ubuntu 13.10 My dev environment is QtCreator with the ubuntu-sdk plugin I'm trying to deploy the QML / C++ sample app (the one ...
1
vote
0answers
39 views

Develop apps for Ubuntu touch: Learning by doing [duplicate]

I really want to develop apps for Ubuntu touch. I have set up the Ubunut sdk and i am currently reading tutorials about qml but one will not learn programming by reading books or tutorials so i am ...
2
votes
1answer
171 views

How do I add a qrc file to my Ubuntu Touch qml project?

My UT QML project makes use of a set of images, and I was planning use them via "qrc:///pathtoimages/myimage.png" style of url. In Ubuntu SDK, I can "add new... Qt / Qt Resource File". The file is ...
1
vote
1answer
63 views

U1DB problems with apparmor

I'm having problem with u1db and apparmor. The application works fine, but when it is packaged apparmor does not allow the app to save data into $HOME/.local/share/.. so I can't actually save my ...
1
vote
0answers
63 views

Is signal handling in QtQuick asynchronous? [closed]

I have the following QML document: Item { id: item MouseArea { onClicked: { /* emit signal */ item.someSignal(); } } ... } When I click the item, ...
2
votes
0answers
165 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 ...
3
votes
0answers
482 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 ...
0
votes
1answer
134 views

Cannot run Ubuntu (touch) Facebook App [closed]

as said in the title, I'm not able to run and try Facebook App, such as it happens in the reported (not by me) bug #1226770 https://bugs.launchpad.net/ubuntu-facebook-app/+bug/1226770 The ...
1
vote
2answers
216 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 ...
3
votes
1answer
75 views

Is there an 'offical' way to store data in uTouch-Apps?

through qml there are several ways to store data. Is there any 'offical' way to store data in Ubuntu-Touch?
2
votes
1answer
47 views

Can you set more than one property when pushing a Pagestack?

I am writing an app for uTouch and I want to deliver more than one property. The code for one property: pageStack.push(folgen,{serie: "himym"}) Is it possible to deliver more than one property?
1
vote
1answer
438 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 ...
3
votes
2answers
3k views

How to use a SQLite database from QML? [duplicate]

I have not been able to find a working example in QT creator or gallery to use SQLite offline storage API for an Ubuntu touch application.
2
votes
2answers
238 views

How To Use i18n.tr in Ubuntu Touch Projects

I have been using i18n.tr for a while in my Ubuntu-Touch projects. I know what this function is about but I don't know how to add a translation to my project. Where do I have to place my translation ...
0
votes
0answers
37 views

How to get audio input from Ubuntu touch device?

How can I get the audio input in a simple touch ui app in ubuntu touch? Thanks in advance, Boaz
3
votes
1answer
197 views

How to access geolocation information on Ubuntu Touch?

It's strangely hard to find any documentation on accessing geolocation information for Ubuntu Touch specifically and even Qt5 more generally. The Qt Mobility APIs provided this in Qt4, and they seem ...
0
votes
1answer
266 views

can use c++ write custom qml plugins in ubuntu sdk [closed]

Recently, I want to develop a app for ubuntu showdown, but I want to use some plugins use c++. So I want to write custom plugins, then I create a project with qml extension library. However, when I ...
3
votes
0answers
200 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, ...
9
votes
2answers
348 views

Can a single Ubuntu SDK target touch and desktop with separate layouts?

I know that touch apps will run on the desktop with the same UI, but I was wondering if it will be possible for a single Ubuntu SDK app to have a multi-window UI with desktop style UI elements when ...
1
vote
1answer
151 views

Change the language of an Ubuntu Touch app

In my Ubuntu Touch app I need to be able to change the language of the app without rebooting the app or the device. Is there a way to do it?
5
votes
3answers
201 views

Sockets in Ubuntu Touch Apps

I am creating an IRC client for the Ubuntu App Showdown. I need a way to be able to access an IRC server in QML (or JavaScript). What is the best way to accomplish this?