[Development] Help debugging "impossible condition"

Thiago Macieira thiago.macieira at intel.com
Sun May 6 16:47:44 CEST 2012


On sábado, 5 de maio de 2012 23.18.18, Giuseppe D'Angelo wrote:
> qgraphicsview.cpp-2790-        d->useLastMouseEvent = false;
> qgraphicsview.cpp-2791-        // a hack to pass a viewport pointer to
> the scene inside the leave event
> qgraphicsview.cpp:2792:        Q_ASSERT(event->d == 0);
> qgraphicsview.cpp:2793:        event->d =
> reinterpret_cast<QEventPrivate *>(viewport());
> qgraphicsview.cpp-2794-        QApplication::sendEvent(d->scene, event);
> qgraphicsview.cpp-2795-        break;

Argh!

Does anyone have a clean suggestion on how to fix this hack? 

I can reset the pointer to zero now to fix the crash, but it's still a hack and 
the d pointer might be used in the future.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120506/0d14d072/attachment.sig>


More information about the Development mailing list