pm.fromImage(*reinterpret_cast<const QImage *>(pixelsImage));
//pm.convertFromImage(*reinterpret_cast<const QImage *>(pixelsImage));
sudo ln -s /home/mlzboy/QScintilla-gpl-2.6.1/Qt4/libqscintilla2.so.8.0.1 /usr/lib/libqscintilla2.so.8.0
安装路径要没有中文
when you compile example-Qt4 app
you should copy Qsci folder into example-Qt4 folder
use ldconfig clear the cache
安装好后并不会在qt createor的designer上显示,会在单独的那个designer上显示一个input wigdet下有一个图标scatilla
QPixmap | Documentation | Qt Developer Network
QPixmap QPixmap::fromImage ( const QImage & image, Qt::ImageConversionFlags flags = Qt::AutoColor ) [static]
Converts the given image to a pixmap using the specified flags to control the conversion. The flags argument is a bitwise-OR of the Qt::ImageConversionFlags. Passing 0 for flags sets all the default options.
In case of monochrome and 8-bit images, the image is first converted to a 32-bit pixmap and then filled with the colors in the color table. If this is too expensive an operation, you can use QBitmap::fromImage() instead.
See also fromImageReader(), toImage(), and Pixmap Conversion.
Qt 4.7: QPixmap Class Reference
QPixmap QPixmap::fromImage ( const QImage & image, Qt::ImageConversionFlags flags = Qt::AutoColor ) [static]
Converts the given image to a pixmap using the specified flags to control the conversion. The flags argument is a bitwise-OR of the Qt::ImageConversionFlags. Passing 0 for flags sets all the default options.
In case of monochrome and 8-bit images, the image is first converted to a 32-bit pixmap and then filled with the colors in the color table. If this is too expensive an operation, you can use QBitmap::fromImage() instead.
See also fromImageReader(), toImage(), and Pixmap Conversion.