-2
votes
0answers
19 views

change property of qml file in c++

in qt quick 2.2, I have a simple rectangle in qml and i have a qt code with a button. When the button were clicked index property of rectangle in qml increased. How can i do change index property from ...
1
vote
1answer
34 views

QML How can i store the value an user enters in a variable?

How can i store the value an user enters in a variable? For example i have this code TextField {width: 37; height: 19 var id: q1 ...
1
vote
1answer
20 views

how to resolve “TypeError: Cannot call method 'push' of null”

I'm a new qml programmer and I found my self in this problem that when I want to call a new page when clicked on a button it says: TypeError: Cannot call method 'push' of null I've tried everything ...
1
vote
1answer
53 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 ...
1
vote
1answer
38 views

Ubuntu SDK: How do I implement a “onClick” for an image in QML?

I have a background image for my page, and I want to implement a sort of page refresh when the background is clicked. However, I didn't find any actions for the image element in QT quick. What's the ...
1
vote
1answer
54 views

QML: Overriding a signal handler from other element

Is it possible to override an elements action (eg onTriggered() of a Timer) from within the onClick() of a button? Something like so-> Button { id: centerBtn ...
0
votes
0answers
19 views

QML: TextField horizontalAlignment not working for entered text in Ubuntu SDK

I'm a complete newbie to QML and QT, forgive me if this is a trivial question. I'm using the following code to center-align the text in a TextField. This does work for the placeholder text, but the ...
3
votes
1answer
17 views

Unable to access i18n in QML app's JS file

I'm having trouble importing the i18n library included in Ubuntu.Components 0.1 for use in a JS file. I initially ran into my question/problem while hacking on the 'Clock' Ubuntu Touch core app, but ...
1
vote
0answers
19 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
1answer
53 views

Qt Audio Engine not in Ubuntu SDK

I am using Ubuntu 14.04. I installed Ubuntu SDK with no problems using the instructions on Ubuntu website. I created a new QML project. I want to create an app that uses Qt Audio Engine. Here is my ...
3
votes
2answers
28 views

How to go back from a PageStack's Page to the parent tab in the UI Toolkit

So in a previous question I tried to use the Ubuntu UI Toolkit to nest a PageStack within the Tabs component. It seemed to work, but it had its quirks, so I'm now trying another option, which in ...
4
votes
2answers
82 views

How to hide the header of the Tabs component

I'm writing an app using the Ubuntu SDK, and I've got a PageStack component inside aTabs component. When I load one of the pages inside the PageStack, it all works well, and in the header the name of ...
3
votes
1answer
45 views

QML: How to do variables?

In QML, I am just looking for a way to do fairly simple variables: Bool String Integer
2
votes
1answer
45 views

QML: QtQuick Extension Plugin - What is URI?

When starting a new Qt Quick Extension Plugin, it asks me to specify Object Class Name (Easy enough), but also something called URI. What does URI stand for? What does this project need URI for? ...
1
vote
0answers
29 views

What are the steps needed to implement a Qt class or member function into a QML project for Ubuntu-Touch?

Qt contains many classes and functions that are useful for a QML project, but not readily available. The existing solutions do not employ a method that is platform independent, thus it is unclear ...
3
votes
1answer
37 views

What is the difference between Ubuntu.Components and QtQuick?

QtQuick 2.0 Ubuntu.Components 0.1 Are two common imports when developing applications for Ubuntu. Are these classes? Can you import member functions this way? If yes, how can tell what member ...
3
votes
2answers
391 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.
1
vote
0answers
36 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 | - ...
0
votes
0answers
31 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 ...
3
votes
2answers
266 views

Appmenu with QML App

I'm developing an Ubuntu SDK meant to be used on both the desktop and touch interfaces. Obviously the menu that slides up from the bottom of the window is not a great interface for the desktop. ...
2
votes
1answer
137 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
0answers
56 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, ...
1
vote
1answer
270 views

Qt QML modules, how to import them and know what to import & QtMultimediaKit 1.0

In the last question, (How to insert Video element in my Ubuntu application?) I thought that I could create the Video element with the QtMultimediaKit1 . But I tried to import QtMultimediaKit 1.0 and ...
5
votes
1answer
169 views

How to insert Video element in my Ubuntu application?

I saw on some sites that you can insert videos with the Video element by importing Qt 4.7 and QtMultimediaKit 1.1 . But I have an error by compiling the project (it's a tabbed touch UI project): ...
0
votes
0answers
32 views

QML Ubuntu SDK : How to insert Video element [duplicate]

Hello everybody! I am learning Qml and using the Ubuntu SDK tool in addition to QML elements. I saw on some sites that you can insert videos with the Video element by importing Qt 4.7 and ...
2
votes
0answers
162 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 ...
1
vote
1answer
196 views

How to put MainView into maximized

[using ubuntu sdk to write an application for the desktop] Is there a way to change the window state of the MainView? MainView { ... width: units.gu(100) height: units.gu(75) Page ...
5
votes
1answer
1k views

Are Qt Quick Controls available on Ubuntu 13.10?

I was looking to do UI development in QML, and I really want it to look native. I found the QtQuick.Controls (http://qt-project.org/doc/qt-5.1/qtquickcontrols/qtquickcontrols-index.html), but when I ...
1
vote
2answers
202 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 ...
4
votes
0answers
364 views

QtCreator creates unwanted windows [closed]

This issue occurs on raring with the build "qtcreator 2.8.1-0ubuntu1~raring1~test1", the latest from the software center. It works fine in general, but if you click on "Welcome" and than on "Develop", ...
2
votes
2answers
212 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
1answer
122 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
62 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 ...
2
votes
1answer
1k views

QtQuick not found (Lubuntu)

On a fresh Lubuntu 13.04 installation, I installed Qt5 from the official ubuntu repositories. But this installation of Qt5 can't find the QtQuick module. What am I missing? qmlscene test.qml ...
6
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 ...
3
votes
1answer
1k views

How to emit onDropped in QML drag n drop example?

In the qml documentation there is a drag'n'drop example: import QtQuick 2.0 Item { width: 200; height: 200 DropArea { x: 75; y: 75 width: 50; height: 50 onDropped: ...
3
votes
1answer
164 views

Re-use toolbar code for each tab

I'm creating a music app using QML and it uses around five tabs, each using a toolbar. The toolbar should look the same, so instead of having the exact same code for each tab, I wanted to re-use the ...
0
votes
1answer
238 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 ...
2
votes
2answers
1k views

Ubuntu Touch app with c++ core and QML interface. How to create?

How to create Ubuntu Touch application with c++ core? In examples I see only pure QML apps.
5
votes
1answer
647 views

QML/Qt Development path verses “Quickly” and Gtk

It seems like recently the path Ubuntu is moving towards is to have code developed with QML and Qt, and that appears to sync with their move to be able to target tablets, phones, TV devices and the ...
12
votes
4answers
21k views

How to use Qt Creator with Python?

I want to use Qt for developing Ubuntu desktop, phone and tablet applications but I don't want to learn a new programming language (C++, JavaScript). Is it possible to write Qt application in Python ...
2
votes
1answer
286 views

How to parse text messages on Ubuntu Touch

Hi I want to be able to parse text messages on Ubuntu Touch for a specific key word. I understand how to do it on Android, but it is looking like this is very different than on Ubuntu Touch. ...
3
votes
1answer
190 views

What is the fundamental GUI library for Ubuntu starting with 12.04?

I have started exploring deeply into doing development for the Ubuntu phone. In the past, and having used stock Ubuntu, I always found that GTK was the standard GUI library. But now, with the phone ...
2
votes
1answer
2k views

How do I install the QtWebKit 3.0 module for Qt Creator?

I'm trying to add a webview to my project, but the module isn't installed. I'm new to qml and qt and I'm not sure how to install the module. Thanks
1
vote
1answer
152 views

ListView Subtitled delegate, icon size and title word wrapping?

I'm working on an ubuntu mobile app and I have a few questions about customizing a listview. The listitem may contain an icon, but will have a title and subtitle. What I'm having trouble with is ...
1
vote
2answers
259 views

Does a company writing C++ apps have to share its source code if it calls unmodified QT or Ubuntu libraries?

What is the relationship between Ubuntu and QT and Canonical? The coming Ubuntu phone looks interesting. Ubuntu seems to be interwoven with QT. If my company wants to write commercial C++ apps ...
6
votes
3answers
2k views

Problems with QML Tool Kit Installation: “unmet dependencies: qt-components-ubuntu: … ”

I am following the directions on the page for Ubuntu App Development: http://developer.ubuntu.com/get-started/gomobile/ Command 1: sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-beta1 ...
9
votes
2answers
494 views

How to use gettext to make QML files translatable

I'd like to write a QtQuick app based on Python (PySide) and QML. I know Qt apps have got their own translation technology, but I would like to stick to gettext for this one. I'd like to know if it's ...