Tag Info

New answers tagged

0

What I ended up doing was creating a Column and inserting a Rectangle before the content I wanted to appear in the footer: Rectangle { color: "transparent" width: parent.width height: units.gu(3) }


1

Do you really need to statically link to all of Qt5? I would imagine that most modern Linuxes already have it in their repositories. It may just be that all you need to do is include Ubuntu.Components in your binary. If I were doing this, I'd just copy the Ubuntu.Components source into my project directory, as if it were another module. I've never ...


1

import QtQuick 2.3 import QtQuick.Controls 1.2 Button { id: myButton text: text ? text : "default text" } This answer throws a warning for me. QML Button: Binding loop detected for property "text" Changing text to modelText instead throws an error. ReferenceError: modelText is not defined This stops the Javascript execution for me; i.e. the ...


3

I'm no expert on JSONListModel so I may be mistaken, but it seems to be expecting to iterate over a list of Objects. What you get from rad.io is a list of strings, which seems to be causing your problems. But since you don't need to do any fancy processing of the result, it's easy to roll this by hand. What you want to do is parse the response into a list ...


3

Actually no data is stored in your ListModel. I suppose you are using this, from GitHub. JSONListModel is filled by using the method append(jsobject dict) from QtQuick ListModel. This method requires a role and a value to be specified, but the json data you get from rad.io contains only the values. For that reason, ListElements are added in your model, ...


0

First, you need to make your system partition writable by doing 1: touch /userdata/.writable_image and rebooting your phone/tablet. Be aware that you cannot install over-the-air (OTA) updates after doing this. Then you need to install gdb: apt-get install gdb Finally, when launching the app from Qt Creator like shown here, instead of pressing the "Run" ...


1

I'm using the ContactModel.qml available in the SDK example. To add some spacing between your footer and the last list element you can create a dedicated component for your footer and modify the layout the way you want inside it: import QtQuick 2.0 import Ubuntu.Components 0.1 Item { width: 200 height: 350 ListView { width: 180; ...


0

Not an answer, but I can't comment yet. Can you share any more code? Curious as to why there are so many focus changes. What image are you using on your Nex7?


1

A convenient way for developers to do app testing is by starting them through adb. To make that convenient we are providing a cli tool, called ubuntu-app-launch. So create a remote connection with phablet-shell and start your applications using their desktop filename: ubuntu-app-launch com.ubuntu.calculator_calculator_1.3.316 ubuntu-app-launch ...


4

You can also install the LogViewer app from the store to see the logs with a graphical interface. The application provides the following features, Graphical interface for viewing logs Exporting logs to pastebin


3

Logs for your application can be found in the ~/.cache/upstart/ folder on your device. I'd recommend to open/cat them using a remote connection (with phablet-shell)


1

This has nothing to do with the Dialog, you would get the same problem no matter where in what context is used. From the code I see you are using a circular Picker, which uses a PathView to visualise the model. PathView stretches the delegates based on the amount of the data in the model, thus the behaviour you see. Try to set circular to false, I'm sure ...


2

The ubuntu UI Toolkit has no dedicated treeview component, neither the upstream QtQuick controls have. But here are few interesting writing about the topic: http://www.codeproject.com/Articles/632795/QML-TreeModel-and-TreeView http://qt-project.org/forums/viewthread/30521


5

After having a chat with designers and SDK developers, it seems that the plan moving forward is to deprecate OptionSelector, and in general embedding UbuntuShapes in controls. I understand that there is no particular reason for having both components, as they have overlapping functionality. So the recommendation is to use ItemSelector for now.


0

I fixed it with this code: import QtQuick 2.0 import Ubuntu.Components 1.1 Page { id: gamePage objectName: "gamePage" title: i18n.tr("Salty Bird") width: parent.width height: parent.height Component.onCompleted: { header.visible = false } MouseArea { id: playArea objectName: "playArea" ...


5

You can do it using some Javascript code in QML: import QtQuick 2.0 import Ubuntu.Components 0.1 Item { width: 200 height: 150 ListModel { id: model } ListView { id: listview anchors.fill: parent model: model delegate: Text { text: jsondata } } function getData() { ...



Top 50 recent answers are included