On Tuesday 30 December 2008 03:49:57 Shintaro Fujiwara wrote:
> Hi, I ported qt3 code to qt4, but this error happens when I make the code.
>
> ####code
> setIcon(QPixmap::fromMimeSource("document.png"));
> ####
> and it returns...
>
> editor.cpp: In constructor 'Editor::Editor(QWidget*, const char*)':
> editor.cpp:38: error: 'qPixmapFromMimeSource' is not a member of 'QPixmap'

There is no QPixmap::fromMimeSource in anymore in Qt4
But there is the compat function qPixmapFromMimeSource declared in the 
Q3MimeSourceFactory header file.

Code should look like something like this:

#include <Q3MimeSourceFactory>
setIcon(qPixmapFromMimeSource("document.png"));


_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to