Hi, I'm trying to come up with a common application template for a Qt Creator wizard. That is, a minimal 'hello world' app that runs on both Symbian, Meego, and future desktop components. I thought about having an ApplicationWindow with 'Exit' as a menu option, and a sole Page on the main PageStack saying 'hello world'.
Right now I have the following: main.qml: -- import QtQuick 1.0 import com.meego 1.0 //import com.nokia.symbian 1.0 ApplicationWindow { id: appWindow PageStack { id: pageStack anchors.fill:parent } MainPage { id: mainPage } Component.onCompleted: { pageStack.push(mainPage); } } -- MainPage.qml: -- import QtQuick 1.0 import com.meego 1.0 //import com.nokia.symbian 1.0 Page { id: mainPage Button { anchors.centerIn: parent text: qsTr("Exit") onClicked: { Qt.quit(); } } } -- The aim is clearly that the same code is generated for the different target component sets. And here are the issues I couldn't solve so far: - com.nokia.symbian by default already shows an 'Exit' button in the bottom menu, but Meego does not. I can create a Menu/MenuItem in Meego, but these elements seem not to be available on Symbian so far. - Is there an easy way to have a 'hello world' label with a decent font? I tried Text { text: "Hello World" }, but this one doesn't pick up the font size / color for either Symbian (black on black) or Meego (font too small). - While the ApplicationWindow root window on Meego has a decent default size when displayed in the qmlviewer, the Symbian example does not: It starts with the minimal size enforced by qmlviewer. - The custom style branch right now seems not to feature any of the 'high-level' elements I've used (ApplicationWindow, PageStack, Page). I guess it is planned to add these, too? I'm happy to file each of these as individual tasks if that helps. Anyway, feedback on the individual issues + the skeleton itself is highly appreciated :) Regards Kai -- Kai Koehne Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori _______________________________________________ Qt-components mailing list Qt-components@qt.nokia.com http://lists.qt.nokia.com/mailman/listinfo/qt-components