[Qt-qml] Any one knows how to write a qmldesigner plugin?
Chen, Zhang Z
zhang.z.chen at intel.com
Thu Jul 22 09:36:09 CEST 2010
I'm investigating the possibility of a libmeegotouch UI designer. Libmeegotouch is based on QGraphicsWidget, which is not a subclass of Qwidget, so we can't use QtDesigner to do the work. Also QmlDesigner can't be used as QGraphicsWidget is not a sub class of QDeclarativeItem. Would you please roughly describe how to make qmldesigner support QGraphicsWidget? What components need to be changed?
Best regards,
John Chen
-----Original Message-----
From: qt-qml-bounces at trolltech.com [mailto:qt-qml-bounces at trolltech.com] On Behalf Of Kai Koehne
Sent: Thursday, July 22, 2010 3:10 PM
To: qt-qml at trolltech.com
Subject: Re: [Qt-qml] Any one knows how to write a qmldesigner plugin?
On 7/22/2010 3:28 AM, ext Chen, Zhang Z wrote:
> Kai,
>
> Yes, it works now:) Thanks!
>
> Now my only concern is that how far is it for qmldesigner to support widgets other than QDeclarativeItem, for example libmeegotouch(libdui) widgets?
I haven't had a look at the libmeegotouch yet, but based on experience
with the standard Qml items, you shouldn't underestimate the work required.
Actually we are right now exploring other ways to ease the design of qml
apps in QtCreator, outside of the Design mode. In the master branch of
QtCreator we implemented a kind of property editor inside the text
editor, which makes a lot of tasks easier (say changing Text element
properties). We also have a version of qmlviewer that allows you to move
stuff around inside the viewer itself, and to apply small changes in
text directly to the running program.
I don't know what your requirements are, but you might want to take a
look, since these are somewhat more lightweight approaches. Feedback is
warmly welcome!
Kai
> Actually I can afford some time to do so if needed.
>
> Best regards,
>
> John Chen
>
> -----Original Message-----
> From: qt-qml-bounces at trolltech.com [mailto:qt-qml-bounces at trolltech.com] On Behalf Of Kai Koehne
> Sent: Wednesday, July 21, 2010 6:19 PM
> To: qt-qml at trolltech.com
> Subject: Re: [Qt-qml] Any one knows how to write a qmldesigner plugin?
>
> On 7/21/2010 11:41 AM, ext Chen, Zhang Z wrote:
>> The qtCreator version is 2.0.0-beta1.
>
> That's quite old :) IIRC, the import path wasn't automatically added to
> the text file back then. You can easily check this by adding a 'import
> test_mtf_plugin 1.0' to the file _before_ dragging the item. Does it
> work then?
>
> 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-qml mailing list
> Qt-qml at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml
>
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml
--
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-qml mailing list
Qt-qml at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml
More information about the Qt-qml
mailing list