[Qt-interest] use property / replacement for Q3SqlPropertyMap
Benjamin Meyer
benjamin.meyer at torchmobile.com
Thu Mar 5 18:48:03 CET 2009
Yes, see the User property
http://doc.trolltech.com/4.5/qmetaobject.html#userProperty
An example of it can be seen in qabstractbutton.h
Q_PROPERTY(bool checked READ isChecked WRITE setChecked
DESIGNABLE isCheckable NOTIFY toggled USER true)
-Benjamin Meyer
On Mar 5, 2009, at 10:53 AM, Adolf Markus Berthold wrote:
> Hello all !
>
> Does Qt provide a means to determine the "user property" of a widget,
> that is the property that holds the user input ?
> In Qt3 there was the class QSqlPropertyMap which knew that a QLineEdit
> has it's text in the property "text" (an so on) so one could easily
> ask
> for the user input of a widget whose class is not known until runtime.
> Now the docs for Qt4 point to the Module QtSql for a list of current
> SQL-Classes, but I did not find a replacement for QSqlPropertyMap
> there.
> Maybe there is another way to ask Qt which is the user property for
> a given widget ?
>
>
> --
>
> Mit freundlichen Grüssen
>
> Adolf Berthold
>
> ===========================================
> OrgaNet Gesellschaft für EDV-basierte
> Informations- und Kommunikationssysteme mbH
> Bonner Strasse 31
> 50389 Wesseling
>
> Tel.: +49 2236 94335 13
> Fax.: +49 2236 94335 23
> Mail: berthold at organet.com
> Http://www.organet.com
>
> Registergericht: Amtsgericht Köln, HR B 44230
> Geschäftsführer: Stefan Lang, Randolf Rautenberg
> ===========================================
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list