浙江省高等学校教师教育理论培训

微信搜索“教师资格证岗前培训”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

 

    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.

posted on 2012-04-22 07:29  lexus  阅读(352)  评论(0编辑  收藏  举报