KJanusWidget and Model-View (was: Re: KDialog / KDialogBase)
michael.pyne at kdemail.net
Thu May 11 14:48:34 BST 2006
On Wednesday 10 May 2006 13:00, Matthias Kretz wrote:
> On Tuesday, 9. May 2006 17:37, Michael Pyne wrote:
> > 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.
> I don't see where a cast to an integer involved in the above code. The code
> above should be no problem.
Judging by the docs it should be no problem.
- 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