All questions related to the QML programming language. QML (Qt Markup Language) is a declarative, JavaScript-like language to create intuitive and responsive user interfaces for applications that can run in multiple devices, platforms and form factors. Learn more about it ...
2
votes
1answer
23 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
0answers
12 views
Error: Cannot assign QObject* to QQuickItem*
I'm trying to show a dialog in a tab but it just won't go.
I don't understand why it isn't working. Same kind of dialog in another app I'm writing is showing it. Only difference is that the working ...
0
votes
1answer
49 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
42 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
32 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
32 views
How to make an ubuntu SDK dialog not stretch over the full mainview?
When I create a dialog with the Ubuntu SDK, like in the example below, the dialog covers the full mainview:
import QtQuick 2.0
import Ubuntu.Components 0.1
import Ubuntu.Components.Popups 0.1
...
0
votes
1answer
20 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 ...
1
vote
1answer
50 views
Run system commands from QML App
I'm creating a QML app for Ubuntu Touch to easily manager your Minecraft server. Just for fun and to learn QML. However, I got somewhat stuck on a step on my app.
I'm more of a web developer, never ...
-1
votes
0answers
43 views
Is QML-Python a good UI-backend combination? [closed]
I wanted to try out a few desktop applications whose GUI is written in QML alone and the backend in python. Is this a good choice for writing desktop applications? I'l be using PyQt. What are the ...
3
votes
0answers
43 views
How to use theming in QML for Ubuntu Phone
The Ubuntu Interface Toolkit Documentations documents Theming for QML Elements with a syntax that is quite similar to CSS. It sounds amazing to me, but I am unable to get started with it. I have tried ...
0
votes
2answers
59 views
How to display popup dialog after app start?
If i use the PopupUtils.open() command in the Component.onCompleted property of the any item it does nothing, example:
Rectangle {
id: rect
height: 600
width: height
...
1
vote
2answers
36 views
Connecting QML with C instead of C++?
I've been working on an app in Ubuntu, using C and GTK, I want to switch from GTK to QML, however I can not find anywhere on the internet info on linking QML to C functions, just C++. Is it even ...
0
votes
2answers
96 views
Qt Creator won't find “qmake”
I installed the Qt Creator 5.0 to develop Apps for Ubuntu for Phones from here:
http://developer.ubuntu.com/get-started/gomobile/#step-get-toolkit
But I can't run any programs and in Tools -> Options ...
1
vote
2answers
144 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.
0
votes
1answer
88 views
Can I develop a 2D game with just QML?
I have a bit of interest in developing for Ubuntu Touch (I have little to no real coding experience also), but my main interest is trying to develop a 2D game.
From my understanding, I would either ...
1
vote
0answers
43 views
Ubuntu Touch QML Tab Component body going under the Tab header
When I first installed the Ubuntu Touch SDK and started working on my app the body of a tab would start below the 'Header' of the Tab. Now it starts behind/under it. So if it is a static layout the ...
1
vote
1answer
19 views
ListItem.ValueSelector has some sort of onselectedIndexchange?
I'm writing a small game and in the settings it uses a ListItem.ValueSelector in the settings, i'd like to if it's possible attach some event on it like with a mouse area, ie:
MouseArea {
...
0
votes
1answer
39 views
Unable to assign QString to QQuickItem* with Qt.resolvedUrl
I have the following code:
Tabs {
Tab {
id: financialDetailsTab
title: i18n.tr("Financial Details")
page: Qt.resolvedUrl("FinancialDetails.qml")
}
Tab {
...
4
votes
1answer
338 views
QQmlComponent: Component is not ready
I'm following through the Create a currency converter app tutorial. I'm on a fresh raring install and have installed the ubuntu-sdk. I created a new project (QT Quick 2 UI) and copied in the ...
1
vote
0answers
68 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
0answers
140 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 ...
1
vote
1answer
112 views
Qt5 Qtcreator using a c++function in main.qml to create a file /tmp/
I want to write an app for ubuntu-phone / ubuntutouch based on QtQuick2ApplicationViewer-template and
the app needs to write in a file (ex. /tmp/test.log)
I tested with using a function/makro ...
1
vote
0answers
41 views
12.04 /opt/qt5 don't exist
I installed Qt5 using official PPA and also I followed instructions how to setup ubuntu components. But also I noticed that /opt/qt5 folder don't exist, therefore I can't use qmlscene. How to fix ...
3
votes
1answer
2k 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 ...
1
vote
1answer
85 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
0answers
85 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 ...
1
vote
0answers
109 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
1answer
162 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
6
votes
2answers
192 views
dynamically adding tab to tabs
I am trying to add a new tab to the tabs component with the code below.
When running there is no error reported but no additional tabs are show.
I have tried using both tabs and tabs.__tabsModel as ...
2
votes
0answers
157 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
74 views
How to switch from Core Layout to Full Screen Layout? PageStack Header annoying
I want switch from a Core Layout to a Full Screen Layout when clicking somewhere in the Core Layout.
I use
PageStack to get the switching with back button and stuff
Tabs to have something ...
0
votes
2answers
207 views
Mobile app development issues with qmlviewer not being found?
I am trying to follow the Mobile app development tutorial found here. When I try to run the currency converter in QT Creator I get this error:
Starting external tool '/usr/bin/qmlviewer' ''
...
1
vote
0answers
50 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 ...
2
votes
1answer
210 views
Problem with SVG image in QML
I use the QT5 from ppa:canonical-qt5-edgers/qt5-proper. When trying to use a SVG as ab image source like
Image {
source: "sample.svg"
height: 100
width: 100
}
I get the following error:
...
2
votes
1answer
214 views
Further information on the Ubuntu Phone SDK [closed]
We saw many threads on the Ubuntu User Interface Toolkit that will be available for the Ubuntu Phone application development (see this thread for example). But there seems to be no information about ...
1
vote
2answers
150 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 ...
5
votes
3answers
848 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 ...
0
votes
0answers
193 views
QML Toolkit Not Working on Ubuntu 12.10
I am learning QML to make apps for the Ubuntu Phone and tried to install the toolkit using the instructions at this site. But when I try importing Ubuntu.Components 0.1, Qt Creator reports that it ...
1
vote
1answer
136 views
Getting QT5 to work with the “Create a currency converter phone app”-tutorial
I'm trying to get into developing for the ubuntu phone, and I'm following the Create a currency converter phone app tutorial by the letter.
Problem is that when I try to preview the app, I get a ...
1
vote
1answer
222 views
Playing Sound with Ubuntu QML Toolkit preview
I've installed the Ubuntu QML Toolkit Preview as per the instructions on http://developer.ubuntu.com/get-started/gomobile/ (with a minor fiddle to get it working on 12.04). I'm trying to write an app ...
6
votes
3answers
2k views
Can't install qt-components-ubuntu because I'm using full release of QT 5.0.0
It appears that since I didn't install the beta1 version of QT5 from the ppa, I'm unable to use the Ubuntu components package. I have the released version QT5 already and not interested in installing ...
10
votes
4answers
2k views
Why Ubuntu.Components 0.1 missing from QTCreator?
First of all i need to create a "hello world" app using QML & QT Creator as described here
http://developer.ubuntu.com/get-started/gomobile/
Second, when i was trying to install QML platform and ...
2
votes
1answer
130 views
What is the best practice for saving data in Ubuntu one db from mobile?
I'm doing a simple todo-list with QML for Ubuntu phone OS. Is there any standard way for accessing Ubuntu One Database to sync data?
7
votes
3answers
2k views
How do I install the QML toolkit on 12.04? [closed]
I'm trying to install the Ubuntu QML toolkit. I've installed Qt5 successfully, but I'm failing on the QML toolkit.
Below is the error information:
W: Failed to fetch ...
7
votes
1answer
191 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 ...


