The Following 5 Users Say Thank You to qwazix For This Useful Post: | ||
|
2013-01-20
, 15:26
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#22
|
The same appears on device too.Code:(/opt/QtSDK/Simulator/Qt/gcc/imports/org/hildon/components/libhildonplugin.so: undefined symbol: _ZTV12HildonPlugin)
EDIT:
It worked
I just needed to move the declaration of the plugin class to a header file instead of a source file.
EditBar { titleText: qsTr("Select items to edit") EditButton { text: qsTr("Edit") onClicked: doStuff() } }
The Following 3 Users Say Thank You to marxian For This Useful Post: | ||
|
2013-01-20
, 20:44
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#23
|
The Following 7 Users Say Thank You to marxian For This Useful Post: | ||
|
2013-01-20
, 22:55
|
|
Moderator |
Posts: 2,622 |
Thanked: 5,447 times |
Joined on Jan 2010
|
#24
|
X Error: BadMatch (invalid parameter attributes) 8 Major opcode: 42 (X_SetInputFocus) Resource id: 0x6200002
|
2013-01-20
, 23:42
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#25
|
Finally some thoughts...
- Minimizing the application with screen.minimize() didn't work for me, I had to resort to using dbus 'exit-app-view'
- PageStackWindow crashes on device with
Code:X Error: BadMatch (invalid parameter attributes) 8 Major opcode: 42 (X_SetInputFocus) Resource id: 0x6200002- We need all the icons in the status area, maybe using the pixmap from gtk as freemangordon suggested is the way to go. Other ideas?
- Or is it possible to use the system status bar and have qt menus bound into qml or some other such contraption? I know qml is supposed to be fullscreen and implement everything from scratch, but getting the icons might be harder than this.
- Maybe the Status Bar could be exposed so that it can be used in more creative ways. In my implementation I copied the code and modified it so that it can be used standalone, outside a pageStack, you may want to have a look at it
|
2013-01-22
, 23:14
|
|
Moderator |
Posts: 2,622 |
Thanked: 5,447 times |
Joined on Jan 2010
|
#26
|
|
2013-01-23
, 18:53
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#27
|
ApplicationWindow { id: appWindow StatusBar { id: statusBar property string backPressedState: backButtonPressed ? "Pressed" : "" anchors { top: parent.top left: parent.left right: parent.right } titleText: pageStack.currentPage === null ? "" : pageStack.currentPage.title showMenuIndicator: (pageStack.currentPage !== null) && (pageStack.currentPage.tools !== null) backButtonIconSource: (pageStack === null) || (pageStack.depth === 1) ? "image://theme/wmCloseIcon" + backPressedState : "image://theme/wmBackIcon" + backPressedState onTitleAreaClicked: menu.open() onBackClicked: (pageStack === null) || (pageStack.depth === 1) ? Qt.quit() : pageStack.pop() onBackPressAndHold: if ((pageStack !== null) && (pageStack.depth > 1)) pageStack.pop(null); } PageStack { id: pageStack anchors { top: statusBar.bottom left: parent.left right: parent.right bottom: parent.bottom } Component.onCompleted: push(Qt.resolvedUrl("HomePage.qml"), null, true) } Menu { id: menu tools: pageStack.currentPage === null ? null : pageStack.currentPage.tools } }
The Following 4 Users Say Thank You to marxian For This Useful Post: | ||
|
2013-01-24
, 14:55
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#28
|
import QtQuick 1.0 import org.hildon.components 1.0 Page { id: root title: qsTr("Process page") Process { id: process processEnvironment: { "PATH": "/usr/bin:/usr/local/bin", "USER": "stuart" } workingDirectory: "/home/stuart/Development/QtProjects" onError: resultLabel.text = "<font color='red'>" + qsTr("Error") + "</font>" onFinished: resultLabel.text = process.readAllStandardOutput() } Column { id: column spacing: 10 anchors { left: parent.left right: parent.right top: parent.top margins: platformStyle.paddingNormal } Label { text: qsTr("Working directory") + ": " + process.workingDirectory } Label { text: "PATH: " + process.processEnvironment.PATH + ", USER: " + process.processEnvironment.USER } Label { text: qsTr("Command") + ":" } Row { spacing: platformStyle.paddingNormal TextField { id: commandEdit width: 300 text: "echo hello world" onTextChanged: process.command = text } Button { id: startButton text: qsTr("Start") enabled: process.state === Processes.NotRunning onClicked: process.start() } Button { id: stopButton text: qsTr("Cancel") enabled: process.state === Processes.Running onClicked: process.terminate() } } Label { text: qsTr("Result") + ":" } } Flickable { id: flicker anchors { top: column.bottom left: parent.left right: parent.right bottom: parent.bottom margins: platformStyle.paddingNormal } clip: true contentHeight: resultLabel.height + platformStyle.paddingNormal Label { id: resultLabel width: parent.width wrapMode: Text.WordWrap color: "green" } } ScrollDecorator { flickableItem: flicker } }
|
2013-01-25
, 21:27
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#29
|
The Following 13 Users Say Thank You to marxian For This Useful Post: | ||
|
2013-01-25
, 22:23
|
Posts: 3,074 |
Thanked: 12,960 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#30
|
Tags |
hildon, qml components |
|
EDIT:
It worked
I just needed to move the declaration of the plugin class to a header file instead of a source file.
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jolla 末 contactlaunch 末 timenow
Nemo UX blog: Grog
My website: qwazix.com
My job: oob
Last edited by qwazix; 2013-01-20 at 01:53.