Tag Info

New answers tagged

0

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 ...


3

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


2

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() { ...


1

As far as I know, no such API exists to call libnotify from a QML component. To avoid creating a C++ plugin just to get notifications for a desktop application, I would use pyotherside to call a small python module to do the job: Prerequisite: Install pyotherside: sudo ap-get install pyotherside First the QML: import QtQuick 2.0 import ...


0

To view QtQuick 2.0 you have to use qmlscene



Top 50 recent answers are included