码迷,mamicode.com
首页 >  
搜索关键字:qpixmap    ( 89个结果
论qt图片编辑。没有用户,只能复制粘贴了(原文地址:http://www.cnblogs.com/s_agapo/archive/2012/03/14/2395603.html)
(一)QPixmap和QImage的区别http://www.thisisqt.com/forum/viewthread.php?tid=267QPixmap是专门为绘图而生,当需要绘制图片时你需要使用QPixmap。QImage则是为I/O,为图片像素访问以及修改而设计的。如果你 想访问图片的像素...
分类:Web程序   时间:2014-11-26 14:15:24    阅读次数:212
QT如何在QTableWidge显示图片
QTableWidget *table = new QTableWidget(1,num); QPixmap pix("00/"+picnum+".jpg"); //图片路径 QLabel *label1 = new QLabel; label1->setScaledContents(true);//设置图片适应label ...
分类:其他好文   时间:2014-10-31 12:06:25    阅读次数:218
Qt MainWindow 背景图片
void MainWindow::paintEvent(QPaintEvent *) { qDebug() << "paintEvent"; QPainter painter(this); //上半部分背景 QPixmap banner(":/login/banner_5"); banner.setDevicePixelRatio(2...
分类:Windows程序   时间:2014-09-22 19:42:33    阅读次数:377
Qt的QPixmap半透明
QPixmap pix1(":/PixmapTest/Resources/Chrysanthemum.jpg"); QPixmap temp(pix1.size()); temp.fill(Qt::transparent); QPainter p1(&temp); p1.setComposition...
分类:其他好文   时间:2014-08-22 12:19:06    阅读次数:651
qt坐标系统
#说明:坐标系统是由 QPainter控制的QPaintDevice是那些能够让 QPainter 进行绘制的“东西”(准确的术语叫做,二维空间)# 的抽象层(其子类有QWidget、 QPixmap、 QPicture、 QImage 和 QPrinter 等); QPaintEngine 提供供...
分类:其他好文   时间:2014-08-10 18:04:00    阅读次数:560
Qt给按钮添加图标
ui.btnTest2->setIcon(QIcon(QPixmap(":/DlgGUO/icon/qd.ico")));不知道是Qt帮助上面说的不清楚,还是怎么的,看不明白,好不容易找到用法,记着留用
分类:其他好文   时间:2014-08-04 20:45:47    阅读次数:243
Qt编程之转换成8,16bit的灰度图
其实我目前还没有实现。references:http://qt-project.org/faq/answer/how_can_i_convert_a_colored_qpixmap_into_a_grayscaled_qpixmaphttp://www.qtcentre.org/threads/46...
分类:其他好文   时间:2014-08-04 13:53:57    阅读次数:632
qpixmap不能加载jpg图片
qt5.1.1,加载jpg图片失败,需要加载插件库...
分类:其他好文   时间:2014-06-16 21:15:30    阅读次数:769
QPixmap 和 HBITMAP互转
Q_GUI_EXPORT HBITMAP qt_pixmapToWinHBITMAP(const QPixmap &p, int hbitmapFormat = 0);声明这一句后, 就可以使用了HBITMAP hBmp = qt_pixmapToWinHBITMAP(pix, 2);该函数定义在q...
分类:其他好文   时间:2014-05-09 05:06:39    阅读次数:802
89条   上一页 1 ... 7 8 9
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!