Documentation code example does nothing on desktop
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
content-hub |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The documentation example on http://
Code tweaked to look like this:
import QtQuick 2.0
import Ubuntu.Components 0.1
import Ubuntu.Content 0.1
Rectangle {
id: root
width: units.gu(60)
height: units.gu(60)
Column {
Button {
text: "Import from default"
var peer = ContentHub.
}
}
Button {
text: "Import from a selectable list"
}
}
}
ContentImpo
id: importHint
}
property list<ContentItem> importItems
property var activeTransfer
Connections {
target: root.activeTransfer
if (root.activeTra
}
}
}
On startup, this error is thrown in the console:
file://
line 35 is " target: root.activeTran
Pressing the "import from default" button does nothing, visually, and dumps this to the console:
QObject* qml_content_
QmlImportExport
virtual void com::ubuntu:
APP_ID isn't set, the handler can not be registered
ContentPeer* ContentHub:
static const com::ubuntu:
ContentPeer:
ContentTransfer* ContentHub:
static const com::ubuntu:
ContentTransfer
void ContentTransfer
void ContentTransfer
void ContentTransfer
void ContentTransfer
ContentTransfer
ContentTransfer
void ContentTransfer
It is possible that "APP_ID isn't set, the handler can not be registered" is a relevant error message here, but nothing says anywhere what an "APP_ID" is, and the example does not include one.
Pressing the "Import from a selectable list" fills the window with a mostly-opaque black background and an orange spinner, and nothing else. The following is written to the console:
QObject* qml_content_
QmlImportExport
virtual void com::ubuntu:
APP_ID isn't set, the handler can not be registered
ContentTransfer* ContentHub:
static const com::ubuntu:
ContentTransfer
void ContentTransfer
void ContentTransfer
void ContentTransfer
void ContentTransfer
ContentTransfer
ContentTransfer
void ContentTransfer
bool ContentTransfer
void ContentTransfer
void ContentTransfer
void ContentTransfer
ContentTransfer
ContentTransfer
ContentTransfer
file://
file://
file://
Since I do not create any Dialogs, I assume this is a bug in the contenthub's creation of a Dialog?
This example requires the default photo application be installed, in this case installing gallery-app fixed this problem for Stuart.