-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am Freitag, 20. Februar 2004 10:59 schrieb Ulrich Berning: > Roland Schulz schrieb: > >On Do, 2004-02-19 at 11:55, Ulrich Berning wrote: > >>Phil Thompson schrieb: > >>>On Wednesday 18 February 2004 19:04, Eron Lloyd wrote: > >> > >>Nevertheless it makes sense to implement QMetaObject and > >>QMetaProperty, just in case someone plans to build a kind of dialog > >>editor with PyQt (in the future, we want to give our customers the > >>facility to create or modify dialogs or dialog components inside the > >>application). > > > >I have done a lib to insert PyQt Widget as Plugin in QtDesinger with > >editable properties (if you interested in this search for qtdesinger or > >qwidgetplugin in the mail archive or just ask me). Jim, David and Phil > >helped me to see that there is no point in implementing QMetaObject in > >PyQt but do a Proxy in C++. The main reason were: > >There is little use for those MetaObjects functions from Python space. > >Even if you write a dialog editor in PyQt you would use the Qt functions > >and they would query the MetaObjects. So even in this case those queries > >would come from C++ space. > > > >>From C++ space it looks like every class is a object of one of the > > > >wrapper class even if it only indirectly subclass of a wrapper class. So > >from C++ space it seams that e.g. a python object of a QWidget class has > >the same class as a object of a python class derived from QWidget. Since > >most of the MetaObject stuff is done with statics this would complicate > >it further. > >Like I said, just ask or look at the archives for more information.
> I'm not talking about Designer plugins or about creating new widget > classes with PyQt, that can be used in a dialog editor. I'm talking > about querying the properties of the existing Qt widget classes. I understood this, but I thought incorretly that there are classes more apropriate to use then directly using QMetaObject. But I was wrong and you're right QMetaObject should be implemented if someone wants to write something like designer in pyqt. But why not just using desinger like eric or kdevelop do? I think I read that something like kpart is also planned for qt, so one could integrate designer in the app. regards Roland -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQFANgG1V/hlvQgMogsRAjtCAJ0Wx2+tMoznNFQ1+P0GDMu/ZuaQugCcDaxc f8Dugm+4VwA6jxdzHgIxK4k= =Of1Q -----END PGP SIGNATURE----- _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
