On Sun, Aug 13, 2006 at 04:08:43PM +0200, Edwin Leuven wrote:
> well...
> 
> 1. widget() returns a qwidget and i need qlistwidget
> 2. http://doc.trolltech.com/4.1/qobject.html#qobject_cast
> 
> wrt 2. i never know which cast to use, so guidance is appreciated 
> (probably should do some reading...)

I personally prefer qobject_cast<> for dynamic downcasts in all Qt code.
It is not exactly snappy but as robust as it can get.

Andre'

Reply via email to