Questions tagged [qml]

Questions related to the development of QML applications on the Ubuntu environment.

Filter by
Sorted by
Tagged with
2 votes
1 answer
5k views

get text from a Website in javascript/qml

I have this Website I would like to copy the text from. I don't know much but it looks like it uses php (here is the site: http://feed.evangelizo.org/reader.php) So I would like to write a fuction ...
londumas's user avatar
  • 197
3 votes
1 answer
607 views

Buttons in ubuntu touch toolbar

What is the code to have a toolbar with buttons when programing in QML with the Ubuntu Components Module. I want to make it so that when I swipe a finger from the bottom of the screen the toolbar ...
wil's user avatar
  • 912
2 votes
1 answer
9k views

How to make a centred, wrapped and padded container of elements in QML?

I am trying to achieve an element which is vertically and horizontally centered on the page, has padded margins, and elements inside it are equally spaced and centered & wrapped (if needed). So in ...
Dima's user avatar
  • 9,857
4 votes
1 answer
657 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 ...
londumas's user avatar
  • 197
0 votes
1 answer
252 views

How to use ActionSelectionPopover QML Component

I'm trying to use the ActionSelectionPopover located here, I can't find any examples on how to actually execute/show it, from looking at the demo QML files this is what I have come up with: /* Popup ...
KoRnKloWn's user avatar
  • 817
6 votes
1 answer
340 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 ...
Iain Lane's user avatar
  • 2,987
2 votes
2 answers
1k views

How to detect whether an app is running on a mobile device or on the desktop

I'm using the Ubuntu SDK to develop a QML app that runs both on the desktop and on mobile devices. Depending on where it's running on the desktop or on a device, certain behaviours should be different....
David Planella's user avatar
5 votes
2 answers
3k 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 ...
David Planella's user avatar
2 votes
1 answer
358 views

Will Ubuntu QML apps be cross-platform?

I am creating a voice-chat app for Ubuntu using the Ubuntu SDK; will it work on windows and mac in the future? If not, I will be switching from using the SDK to plain Qt or GTK.
RamblingMad's user avatar
7 votes
2 answers
6k 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 ...
David Planella's user avatar
3 votes
1 answer
227 views

How can I center an ActivityIndicator within the screen?

How can I center an ActivityIndicator within the screen? My current code is: Column { Row { ActivityIndicator { anchors.leftMargin: units.gu(10) running: true ...
MeinAccount's user avatar
10 votes
1 answer
7k 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: ...
xubuntix's user avatar
  • 5,580
3 votes
1 answer
298 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 ...
Daniel Holm's user avatar
1 vote
1 answer
317 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 ...
titou's user avatar
  • 43
0 votes
2 answers
763 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 ...
Daniel Holm's user avatar
2 votes
1 answer
659 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 ...
Daniel Holm's user avatar
0 votes
1 answer
404 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 ...
xubuntix's user avatar
  • 5,580
1 vote
1 answer
116 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 ...
Daniel Holm's user avatar
19 votes
5 answers
15k 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 ...
Daniel Holm's user avatar
10 votes
1 answer
943 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 ...
Joshua Gleitze's user avatar
0 votes
2 answers
1k 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 Component....
Hairo's user avatar
  • 327
1 vote
2 answers
732 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 ...
KoRnKloWn's user avatar
  • 817
4 votes
1 answer
2k 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.
Robotex's user avatar
  • 263
3 votes
4 answers
2k 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 ...
Espionage724's user avatar
1 vote
1 answer
47 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 { anchors....
Hairo's user avatar
  • 327
5 votes
2 answers
4k views

Saving user settings in QML/JS

I'm working on a small game and i'd like to know how can i write/read a user settings file in ubuntu touch?
Hairo's user avatar
  • 327
1 vote
1 answer
165 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 ...
Michael Bender's user avatar
1 vote
1 answer
1k 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 { id:...
user avatar
4 votes
1 answer
5k 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 ...
gacrux's user avatar
  • 293
3 votes
1 answer
1k 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: ...
Hairo's user avatar
  • 327
5 votes
1 answer
1k 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 ...
Jeff Halverson's user avatar
5 votes
1 answer
1k views

Qt5 Qtcreator using a c++function in main.qml to create a file /tmp/

I want to write an app for Ubuntu Touch based on the QtQuick2ApplicationViewer template and the app needs to write to a file (e.g. '/tmp/test.log'). I tested with using a function/macro Q_INVOKABLE: ...
sUbuPack's user avatar
  • 182
31 votes
4 answers
112k 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 ...
Ralf Hersel's user avatar
  • 2,793
2 votes
1 answer
519 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. ...
Sarah's user avatar
  • 189
3 votes
1 answer
391 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 ...
Savanni D'Gerinel's user avatar
1 vote
0 answers
410 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 ...
Roopa's user avatar
  • 11
4 votes
1 answer
14k 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
Javalsu's user avatar
  • 163
10 votes
2 answers
2k views

How do I dynamically add 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 ...
Morchuboo's user avatar
  • 103
2 votes
1 answer
510 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 ...
Srinivas Gowda's user avatar
4 votes
2 answers
353 views

How to switch from Core Layout to Full Screen Layout? PageStack Header annoying [closed]

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 resembling ...
payload's user avatar
  • 648
2 votes
3 answers
2k 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' '' ...
Sarah's user avatar
  • 189
2 votes
1 answer
382 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 ...
Javalsu's user avatar
  • 163
4 votes
1 answer
3k 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: ...
djfun's user avatar
  • 326
2 votes
1 answer
421 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 ...
Phidelux's user avatar
  • 762
2 votes
2 answers
685 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 ...
Tim's user avatar
  • 29
6 votes
3 answers
3k 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 &&...
user127623's user avatar
2 votes
1 answer
332 views

XmlListModel Syntax Error? Currency Converter

I've followed the currency converter "Hello World" tutorial, as far as I can see exactly how it should. Yet when I try and run it via QMLScene I get a Syntax Error on line 45. Line 45 is: ...
James's user avatar
  • 23
2 votes
1 answer
277 views

Getting QT5 to work with the "Create a currency converter phone app"-tutorial [closed]

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 ...
Lasse Rune Hansen's user avatar
9 votes
2 answers
2k 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 ...
marxjohnson's user avatar
7 votes
3 answers
7k 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 ...
MightyWok's user avatar

1
4 5 6
7
8