Questions tagged [qml]
Questions related to the development of QML applications on the Ubuntu environment.
39
questions
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 ...
5
votes
1
answer
5k
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
2
answers
1k
views
How do I simply run an ubuntu touch app from the terminal?
I've got a qml file and I just want to ssh to the phone and do
qmlscene myfile.qml
Is it possible without doing all that stuff with SDK and packages? Just vim and some simple commands that can fit ...
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 ...
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?
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 ...
7
votes
2
answers
691
views
Ubuntu SDK: How can I see error logs for my ubuntu touch app?
I've built an ubuntu touch app, it works well on desktop, but when I install it on the device and try to launch, it crashes. Where can I find error logs or any other output that the app can give me to ...
6
votes
2
answers
774
views
How do I use OAuth from an Ubuntu Touch app?
I'm writing an Ubuntu Touch application in QML. I'd like to integrate with Trello. There are two ways to log into Trello in the API, one of which is OAuth, which I plan on using. What is the best way ...
5
votes
2
answers
6k
views
kde clock format: how to include the day in a non-tiny font?
I'm using KDE on Kubuntu 15.04.
I want my taskbar clock to look like this:
Sun 19 15:11
(or AM/PM would be ok, main thing is Day / Date in the same font size as the time. I don't need my computer ...
4
votes
2
answers
9k
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.
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.
3
votes
1
answer
2k
views
Ubuntu SDK: Having difficulty getting images to work in 'QML only app' when deploying to armhf device
When I deploy my QML only program to the desktop using the Ubuntu SDK, images that I have placed in the same folder as Main.qml can be accessed and displayed correctly in the application using source: ...
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: ...
8
votes
1
answer
5k
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 ...
6
votes
1
answer
768
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):
(...
5
votes
1
answer
2k
views
Ubuntu Touch: How do I run an ubuntu touch app from the terminal?
How do I run an ubuntu touch app from the terminal?
Where are they stored?
5
votes
2
answers
793
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 ...
5
votes
1
answer
808
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....
5
votes
2
answers
1k
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 ...
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:
...
4
votes
1
answer
2k
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 ...
4
votes
0
answers
1k
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 ...
4
votes
1
answer
696
views
Ubuntu Touch: How can I debug ubuntu touch apps on the device? [duplicate]
My app works well on desktop but I can't figure out why does it crash on my nexus 7.
How can I debug it while it runs on the device?
3
votes
1
answer
6k
views
QtLocation and QtPositioning not installed
I'm trying to develop a KDE widget that should display a map. At the moment I can't get the widget to load, because of the errors module "QtLocation" is not installed and module "QtPositioning" is not ...
3
votes
1
answer
1k
views
Add image files in Ubuntu QML app with C++ plugins (qrc)
I'm writing an Ubuntu QML (phone) App with C++ plugins using ubuntu-sdk. My app includes a png image and in order to include the image in the binary (so it shows on the phone) I have created a qrc ...
3
votes
1
answer
3k
views
How can I create in QML a table of TextInput boxes with background
How can I make a table with 6 rows 5 tables and 25 TextInput boxes, with background.
I've tried almost everything to put an background to the TextInput boxes, but still I could not get it right.
My ...
3
votes
2
answers
303
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 ...
2
votes
1
answer
173
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 ...
2
votes
1
answer
751
views
How to open a browser when the TextEdit::onLinkActivated signal is received
I'd like to open a browser window to display the URL received by a TextEdit onLinkActivated signal.
Is it possible to perform such call from the QML application?
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 ...
1
vote
0
answers
351
views
ubuntu-sdk mkspec
I followed instructions in Ubuntu SDK to install the IDE. No problem. I can write an app and run it in the desktop, but not in my Ubuntu BQ 4.5. The kit is wrong and several errors appear: "Mkspec not ...
1
vote
1
answer
1k
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 ...
1
vote
1
answer
2k
views
Listmodel in QML: How to retain Listmodel values on page switch in page stack
I have an XML file to show list of items(listview), on click of each item i am switching to page which reads the XMLListmodel for each category using pagestack.push.
After pressing back and again ...
1
vote
1
answer
4k
views
Read lines from a text file in QML Qt/Quick
I need open a text file and read it's contents line by line and store each lines in a string list in qt quick 2.2.
Can every one help me?
1
vote
1
answer
61
views
How can I pin the toolbar so that it remains revealed?
An always-revealed toolbar would be more suitable for a pointer-driven interface. How, using the Ubuntu SDK, can I set the toolbar to be (and remain) revealed?
1
vote
1
answer
2k
views
Get Qt WebKit HTML Content in QML
My application is built with QML (Ubuntu SDK), and I need to get the HTML content from a page loaded with a Qt WebView after the page is loaded. Based on some initial research, it would appear that ...
1
vote
1
answer
2k
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 non-...
1
vote
1
answer
7k
views
QML what to use to store int numbers TextInput or TextField
What is good to use on a Ubuntu Phone app that needs 25 variables to get input that are int numbers. Text fields or text input.
Right now I'm using text inputs to create the 25 ids that I'm going to ...
0
votes
1
answer
1k
views
File storage location for ubuntu application
In my application I plan to store files locally ( exported files ) and import files which user copy via USB to the disk. Where to locate such application files ? Is there some recomendation ?