Re: [Qt-jambi-interest] How to restore user informations in a QObject
Hi Gunnar, Thanks. Is there a possibility to *contribute* this from my side to help you providing this (something like repository I can produce a patch against)? Tom Gunnar Sletta schrieb: > Tom Schindl wrote: >>> Or did you mean to store arbitrary data? In which case, you could do >>> this using a custom property, e.g. >>> >>> q.setProperty("MyData", new Integer(0)); >>> >>> Integer i = (Integer) q.property("MyData"); >>> >> >> This is what I need thanks. Just an idea make it more Java 5 like >> QObject#property(String) could be defined like this: >> public V property(String key) >> then the cast is inserted by the compiler and you can simply write: >> Integer i = q.property("MyData"); >> >> Just an idea. >> >> Another one I outlined in one of my last posts is to provide QT-Jambi >> as OSGi-Bundles for automatic use in OSGi-based applications. Is there >> something like a Feature-Tracker where enhancements like this can get >> requested? > > Hi Tom, > > You can track this suggestion here: > > http://trolltech.com/developer/task-tracker/index_html?id=232380&method=entry > > > It will be visible as soon as the task-tracker syncs its database. > > best regards, > Gunnar ___ Qt-jambi-interest mailing list Qt-jambi-interest@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
Re: [Qt-jambi-interest] How to restore user informations in a QObject
Tom Schindl wrote: >> Or did you mean to store arbitrary data? In which case, you could do >> this using a custom property, e.g. >> >> q.setProperty("MyData", new Integer(0)); >> >> Integer i = (Integer) q.property("MyData"); >> > > This is what I need thanks. Just an idea make it more Java 5 like > QObject#property(String) could be defined like this: > public V property(String key) > then the cast is inserted by the compiler and you can simply write: > Integer i = q.property("MyData"); > > Just an idea. > > Another one I outlined in one of my last posts is to provide QT-Jambi as > OSGi-Bundles for automatic use in OSGi-based applications. Is there > something like a Feature-Tracker where enhancements like this can get > requested? Hi Tom, You can track this suggestion here: http://trolltech.com/developer/task-tracker/index_html?id=232380&method=entry It will be visible as soon as the task-tracker syncs its database. best regards, Gunnar ___ Qt-jambi-interest mailing list Qt-jambi-interest@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
Re: [Qt-jambi-interest] How to restore user informations in a QObject
> Or did you mean to store arbitrary data? In which case, you could do > this using a custom property, e.g. > > q.setProperty("MyData", new Integer(0)); > > Integer i = (Integer) q.property("MyData"); > This is what I need thanks. Just an idea make it more Java 5 like QObject#property(String) could be defined like this: public V property(String key) then the cast is inserted by the compiler and you can simply write: Integer i = q.property("MyData"); Just an idea. Another one I outlined in one of my last posts is to provide QT-Jambi as OSGi-Bundles for automatic use in OSGi-based applications. Is there something like a Feature-Tracker where enhancements like this can get requested? Tom ___ Qt-jambi-interest mailing list Qt-jambi-interest@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
Re: [Qt-jambi-interest] How to restore user informations in a QObject
Tom Schindl wrote: > Hi, > > Is there a possibility to restore arbitary data in a QObject or a > QWidget. Something like > > QWidget q > q.setUserData(new Integer(0)); If you want to restore a widgets properties between runs of the application there are things like QWidget::saveGeometry() and QMainWindow::saveState(), like outlined here: http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/gui/QMainWindow.html#storing-state Or did you mean to store arbitrary data? In which case, you could do this using a custom property, e.g. q.setProperty("MyData", new Integer(0)); Integer i = (Integer) q.property("MyData"); best regards, Gunnar ___ Qt-jambi-interest mailing list Qt-jambi-interest@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
[Qt-jambi-interest] How to restore user informations in a QObject
Hi, Is there a possibility to restore arbitary data in a QObject or a QWidget. Something like QWidget q q.setUserData(new Integer(0)); Tom ___ Qt-jambi-interest mailing list Qt-jambi-interest@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest