KJanusWidget and Model-View (was: Re: KDialog / KDialogBase)

Michael Pyne michael.pyne at kdemail.net
Tue May 9 16:37:26 BST 2006


On Tuesday 09 May 2006 04:16, Tobias Koenig wrote:
> On Mon, May 08, 2006 at 11:41:13PM +0200, Matthias Kretz wrote:
> > On Monday, 8. May 2006 17:28, Tobias Koenig wrote:
>
> Hi Matthias,
>
> > > Passing the icon, name and title through a QVariant is fine, but how to
> > > you want to pass the QWidget pointer?
> >
> > QWidget* test = new QWidget;
> > QVariant testvar = QVariant::fromValue( test );
> > QWidget* test2 = qvariant_cast<QWidget*>( testvar );
> > => test == test2
>
> Hmm, casting to an integer? Is it portable?

No, casting a pointer to an integer is not portable.

Regards,
 - Michael Pyne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060509/7266934b/attachment.sig>


More information about the kde-core-devel mailing list