On 2/21/2011 3:34 PM, ext Thiago Lacerda wrote: > Hi, > > Why don't you use the "native" import, instead of "symbian" or "meego"? > Would not be more suitable in this case that you want the same example > to run in different platforms?
You're of course right, thanks for the tip. Anyhow, depending on whether I install the meego or the symbian plugin last the 'native' components show up as either meego or symbian. What I would expect is a runtime switch (maybe an environment variable) so that people on the desktop have a way to switch between symbian & meego styles without uninstalling one or the other :) Has anybody looked into this already? Regards Kai > Cheers > > On Mon, Feb 21, 2011 at 10:07 AM, Kai Koehne <kai.koe...@nokia.com > <mailto:kai.koe...@nokia.com>> wrote: > > 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 <mailto:Qt-components@qt.nokia.com> > http://lists.qt.nokia.com/mailman/listinfo/qt-components > > > > > -- > Thiago de Barros Lacerda > OpenBossa - INdT > -- 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