0
votes
0answers
2 views

QML: How to do toggles with buttons?

Currently, the proper way to do toggles is via the checkbox and the switch. However, it seems that this does not allow for text overlay, thus making it difficult for compact UI's. Any ideas or ...
1
vote
1answer
10 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
17 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{}?
0
votes
2answers
32 views

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

Specifically, what is i18n.tr short for?
0
votes
0answers
23 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?
0
votes
1answer
44 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
78 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....
2
votes
1answer
49 views
+50

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. Here is a starter: import QtQuick 2.0 import Ubuntu.Components 0.1 import ...
1
vote
0answers
16 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
19 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 | - ...
3
votes
1answer
37 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: ...
1
vote
1answer
73 views

Getting ReferenceError when accessing public C++ slot from QML

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
55 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
36 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
74 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
59 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
39 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
122 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 ...
0
votes
1answer
108 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
159 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
71 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?
1
vote
1answer
36 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
287 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 ...
2
votes
2answers
2k 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.
1
vote
2answers
157 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
32 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
0answers
156 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
0answers
141 views

Access microphone/record sound from QML?

I'm afraid that the answer is to write a plugin in C++, but I'm wondering if there is a way to access the microphone from QML. There is a way to take pictures, record video, and play media all using ...
0
votes
1answer
245 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
156 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, ...
8
votes
2answers
303 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
134 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
186 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?
2
votes
1answer
48 views

How to check battery status with the Ubuntu SDK?

I am developing an app and I need to monitor the battery status, with the SDK how do I obtain the devices (phone) battery status? can this be done with javascript?
1
vote
1answer
121 views

Bad color of backgroundColor in a MainView when fixed to “#F1E1A3”

I have a strange problem. When I fix the backgroundColor in a MainView to "#F1E1A3" it doesn't show me the good color since when I draw a rectangle in the page with the same color, I see a difference ...
0
votes
0answers
213 views

QML Page: Binding loop detected for property “flickable”

On my app (ite-missa-est) I have few tabs. In my ite-missa-est.qml, I call a *.qml file to do my tab like that: Tab { objectName: "Tab3" //TRANSLATORS: Title of a Tab ...
0
votes
1answer
190 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
0answers
70 views

Building Application Package for Ubuntu Touch -> Error

I've written a simple Ubuntu Touch App with the official Ubuntu SDK (Qt Creator). After testing it i wanted to create a Application Package from the menu (Build -> Ubuntu Touch -> Ubuntu Touch ...
0
votes
1answer
36 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 ...
2
votes
0answers
56 views

Design standard for “About” and “Options”

I have seen that in many Ubuntu Touch projects that the way to do "options" (or "settings") and "about" is done with a Tab. Is that good for the design guideline of Ubuntu Touch? Is there a standard? ...
1
vote
1answer
181 views

importing C++/Qt module in QML

I have made a module to execute a shell script from within QML. The problem that I'm having is that I don't know how to import the module into my QML script. This is for a UT application BTW.
4
votes
1answer
84 views

Large amount of scrollable text in Ubuntu touch

Is there a way to make a label scrollable in ubuntu touch sdk. If not what is another way to have a large amount of uneditable text that can scroll.
5
votes
1answer
157 views

How do I get an UbuntuShape to transition (fade) between different images?

I have some QML code using the UI toolkit. When you click on the image, it toggles between two different logos. I've attempted to make the transition use an animation but it doesn't work; after the ...
4
votes
2answers
305 views

How to create a dialog and set title and text dynamically

Looking at the Dialog component example in the Ubuntu SDK documentation, it looks as if dialogs are intended to be defined as static components with fixed title and text. Or at least I cannot figure ...
5
votes
2answers
1k views

How to pass the image preview from the QML Camera component to a C++ plugin

I'm writing an Ubuntu Touch QML app that captures and processes images from a camera device. The processing is done by a C++ plugin to which I'm passing the URL of the image. I can successfully save ...
0
votes
1answer
236 views

Ubuntu Touch SDK problems

I have installed the Ubuntu touch SDK the way it is advised on the Ubuntu dev website (with sudo apt-get install ubuntu). I'm using Ubuntu 13.04. The problems/symptoms are the following : When I ...
0
votes
2answers
215 views

Get $HOME and/or username without using C++

I'm working on the Music app and I need to know how to get the user name and/or home dir of the users. I've googled around for a while but can only find the variables for C++ or BASH. How do I get ...
0
votes
1answer
171 views

Unable to show Popups Dialog in tab with webview

My app uses tabs, and one of them shows a web page using WebView. Now, I have a toolbar with one action button that I want to show a Dialog - but it's no go. Instead I get this error message when ...
0
votes
1answer
90 views

Theme ListView text pulled from XML?

I've been working on my msm touch app and got to a point were I get the needed info from an XML file, but it is unthemed, and not as good looking as other "direct" text is. Its black and further to ...
10
votes
4answers
2k views

Run system commands from QML App

I want to run a system command from inside my application. It's suppose to run a command on a remote server using SSH. But that's not really the point. The point is that I don't know how to run any ...