[Qt-interest] QGraphicsDropShadowEffect with OpenGl

Samuel Rødal samuel.rodal at nokia.com
Wed Feb 10 16:22:27 CET 2010


ext Ivan Lyapunov wrote:
> Hi.
> 
> My program crash with QGraphicsDropShadowEffect and OpenGl viewport, 
> trying to apply it to QGraphicsSimpleTextItem
> 
> it seems because
> Q_ASSERT(img.format() == QImage::Format_ARGB32_Premultiplied  || 
> img.format() == QImage::Format_RGB32);
> in expblur QPixmapFilter.cpp
> 
> since QGLPixmapDropShadowFilter::processGL
> makes image in Format_Indexed8 format
> 
> How can i solve this?
> 
> I'm using qt.4.6.1 under win32 compiled with msvc 2008 sp1
> 
> Ivan
> 

It will be fixed in 4.6.2. In the meantime you can remove the assert (if 
you compile the Qt source yourself), or compile Qt in release mode.

--
Samuel



More information about the Qt-interest-old mailing list