3
votes
0answers
23 views

How to create an Ubuntu Touch app with a C++ backend and a QML interface [on hold]

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 ...
1
vote
1answer
54 views

Execute Javascript Code in Oxide

I'm Looking for an oxide equivalence to this QtWebKit Function: WebView.experimental.evaluateJavaScript() Or WebKitGtk WebView.execute_script() I'm having problems to find documentation about ...
0
votes
1answer
51 views

Problem with QtWebkit and QML in PyQt5 App Ubuntu for Devices (Ubuntu Touch)

I'm having problems with qtwebkit in ubuntu for devices (Nexus 10) when using pyqt5, the webview element doesn't show, and the application closes. But if I test the same .qml file with qmlscene it ...
0
votes
1answer
45 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
1answer
41 views

Ubuntu SDK: QML with C++ recommended App Design Methodology

Are there documented general guidelines for mixing QML with C++ for ubuntu apps? "QML for UI design and C++ for logic" seems to be the trend. Is this the right way forward?
3
votes
1answer
19 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 ...
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 ...
0
votes
0answers
20 views

QML: How do I set my icon in the Ubuntu SDK with a CMakeLists based project?

How do I set my icon in the Ubuntu SDK with a CMakeLists based project? Do I need a specific type of image file, or can I use just a png?
3
votes
1answer
79 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 ...
0
votes
0answers
47 views

Binding loop error when changing mainView background colors [on hold]

The background color change works but the errors below shows and sometimes it lags when triggering the change. This is my code: onActiveChanged: { if (pageGastos.active === true) { ...
3
votes
1answer
49 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
151 views

Unable to start a QML app using qmlviewer/qmlscene

I'd like to start writing QML applications. I followed this tutorial: http://qt-project.org/doc/qt-4.8/qml-tutorial1.html my code is: import QtQuick 1.0 Rectangle { id: page width: 500; ...
2
votes
1answer
30 views

QML WebView.back does not work

In QML I want to use WebView , but the WebView.back does not work. Is there some way how to navigate, or do I have to store all the previous paths and navigate between them manualy using javascript ...
2
votes
1answer
46 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? ...
0
votes
0answers
33 views

Is it possible to send a return code with the Qt.quit() signal from QML?

I'd like to know if it's possible to send a return code from a pure QML application using the Qt.quit() signal so that qmlscene can exit with the same error code. I don't need a solution using C++, I ...
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? [duplicate]

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 ...
0
votes
1answer
43 views

HUD and menu integration for Ubuntu Touch apps

Is there a way to move the Tabs into a menu, or the toolbar options into a menu? It would be nice enough to have the toolbar options display in the menu when on the desktop.. Is there any work to add ...
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 ...
4
votes
1answer
68 views

QML: What is the difference between a Component, Element, Property, Attribute, and Object?

The reason why I ask, is that often languages define the same terms differently, and QML is fairly unique in some regards. A brief explanation or analogy is preferred, where as more extensive and ...
0
votes
1answer
28 views

QML: QChar Booleans are undefined

function myFunction(x) { console.log(x.isLetter) } myFunction("s") When I run this in a .qml file, it tells me that "isLetter" is undefined. Why? ...
2
votes
1answer
26 views

ActionSelectionPopover - populate dynamically

I am trying to populate dynamically an ActionSelectionPopover... Does any one ever got it working? this is the static way to get it work: ActionSelectionPopover { id: popMeUp data: bitrates ...
1
vote
1answer
27 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'> ...
4
votes
1answer
39 views

QML: Will the Ubuntu Phone be theme-able, and do I need to develop with that in mind?

Take a simple example in formatting richtext: The Manual Way someTextBox.insert(0,"<font face='Ubuntu Mono'size='3'color='#f37420'> Blah Blah Blah </font>") The hypothetical Way ...
0
votes
0answers
25 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?
1
vote
1answer
96 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: ...
1
vote
1answer
10 views

Allow OptionSelector to Scroll While Expanded

My QML app uses an OptionSelector to allow users to choose from a list of items. On tablet size, I have it set to keep it expanded. However, I limit the container height, and while it's expanded, it ...
1
vote
1answer
75 views

It is not supported to create click packages for a non UbuntuSDK target

I've just finished a first version of my app port to QML and tried to create a click package but Ubuntu SDK said Wrong kit type It is not supported to create click packages for a non UbuntuSDK ...
1
vote
2answers
88 views

How to set default time for QML DatePicker?

According to the API I should use date property, but with mode: "Hours|Minutes" the picker stays at 00:00. Is it possible somehow?
1
vote
1answer
190 views

Scrolling of ListView within a Column in QML

Below code is working fine ( thanks to Sylvain ), only when scroling, the top row from the ListView overwrite the buttonRow. Any idea ? – import QtQuick 2.0 import Ubuntu.Components 0.1 MainView { ...
2
votes
2answers
68 views

How to get pixel length of a Button text string in QML?

I need to know Button text length in pixels. How to do that ?
4
votes
1answer
98 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....
3
votes
2answers
399 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.
2
votes
1answer
60 views

Ubuntu Touch how to detect If the application is closed

on ubuntu touch. I run an application in terminal and close the application in the Application scope. The application isn't killed. And no event is caught in QQuickView. How do I detect this close ...
1
vote
1answer
93 views

QML PageStack , communication between Pages - return values

I defined PageStack only on master page (a.qml) : import QtQuick 2.0 import Ubuntu.Components 0.1 MainView { width: units.gu(48) height: units.gu(60) PageStack { id: pageStack ...
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 | - ...
1
vote
1answer
53 views

Internationalization of QML application using i18n

Does someone know all the steps needed to have the apps translated in multiple languages? I am using in my QML files i18n.tr() , and such words I need to translate I performed below steps ( ...
2
votes
1answer
168 views

QML ListView is not scrollable ( if included within a row )

Below code is using ListView within a Column and Row. But the ListView is not scrolable. Any idea why ? import QtQuick 2.0 import Ubuntu.Components 0.1 MainView { width: units.gu(60) height: ...
1
vote
1answer
52 views

QML ListView overwriten with buttons - but should be in different rows

In below code I have 2 rows . In first I have buttons and in second a ListView. Why are they overwriten in the display, what's wrong ? import QtQuick 2.0 import Ubuntu.Components 0.1 Page { id: ...
2
votes
1answer
80 views

QML ListView display only 1 row ( if covered in Column and row )

I need to put a ListView ( coded in QML) into a Row, but in this case only first Row of the ListView is displayed . Some idea why ? Here is my example : import QtQuick 2.0 import Ubuntu.Components ...
3
votes
1answer
67 views

What's a good way to mock a remote HTTPS API for unit testing my QML app?

I'm tinkering with a QML app that interacts with a remote REST API over HTTPS. The "client" part of the app is neatly packaged into a component and I'd like to unit test that, but I don't want to ...
1
vote
1answer
129 views

Ubuntu SDK open file dialog

I've started playing with the SDK to start developing an application. The application will be something that will allow me to filter records in an CSV file by a search term. But does a file dialog ...
4
votes
1answer
88 views

How do I make a WebView transparent?

Consider the following QML snippet: Page { WebView { id: webView anchors.fill: parent } } I then attempt to load some HTML in the WebView using the following JavaScript: ...
3
votes
1answer
54 views

How come the contents of Text elements aren't being properly justified?

Consider the following page in a QML application: Page { Text { anchors.fill: parent anchors.margins: units.gu(2) horizontalAlignment: Text.AlignJustify text: ...
2
votes
1answer
46 views

In the CurrencyConverter Ubuntu SDK QML example where does the index variable come from?

In Ubuntu SDK QML tutorial a simple currency converter is build. The complete QML source code can be found here. When working through the example I found the following snippet somewhat confusing, ...
0
votes
1answer
35 views

How can I access an attribute of the selected option in an OptionSelector?

I have an OptionSelector that delegates to an OptionSelectorDelegate, and has a ListModel for the model. How should I access the "sometext" attribute of the ListElements? OptionSelector { id: ...
3
votes
2answers
63 views

How to change the color of *just* the header?

Is there a non-hacky way to change the color of just the header in an app using the Ubuntu SDK? MainView has a headerColor property, but that is used as the first step of gradient. Currently, I'm just ...
1
vote
0answers
39 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 ...
3
votes
2answers
271 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. ...
1
vote
1answer
121 views

Set Application Icon

I'm building a QML application with the Ubuntu SDK. I've figured out how to add an application icon to the .desktop file, but I'm not sure where to add the window icon itself. I've seen code for ...