KJanusWidget and Model-View (was: Re: KDialog / KDialogBase)
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.
- Michael Pyne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 191 bytes
Desc: not available
More information about the kde-core-devel