PDA

View Full Version : QPixmapFilter / QPixmapConvolutionFilter missing from Qt 4.5 SDK?



CodeLogic
23rd October 2009, 00:12
This (http://labs.trolltech.com/blogs/2008/12/19/blooming-qpixmaps/) Qt Labs blog entry describes using QPixmapConvolutionFilter for image filtering, however the header files for those classes seem to be absent from Qt SDK (4.5.2). Am I missing something, were these classes deprecated or something?

Thanks.

wysota
23rd October 2009, 00:18
The class is not part of the public API.

CodeLogic
23rd October 2009, 00:32
Thanks, but how is the example code supposed to be compiled in that case:



svn checkout svn://labs.trolltech.com/svn/graphics/dojo/bloomfilter


filters.cpp only #includes QtGui and QtCore in that sample.

EDIT: On a related note, the classes seem to be public in Qt Jambi (http://doc.trolltech.com/qtjambi-4.5.2_01/com/trolltech/qt/gui/QPixmapFilter.html).

wysota
23rd October 2009, 08:58
Thanks, but how is the example code supposed to be compiled in that case

It's not supposed to be compiled. If you want you can probably extract QPixmapConvolutionFilter from Qt's sourcecode. Anyways I asked a question about convolution filter API during DevDays last week and Ariya told me it's not decided whether it will be exposed into public API because there are faster ways of doing such things than convolutions (i.e. you can write a shader program if you have a decent enough graphics card).