腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
在
linux
中,QFontMetrics.width()没有返回正确的值
c++
、
qt
、
qt4
QString folderPath = "/home/Users"Q_UNUSED(widget);
painter
->setBrus
浏览 2
提问于2017-10-26
得票数 0
1
回答
QTreeView复选框颜色
qt5
、
qtreeview
、
qcheckbox
painter
->setPen(aRandomColor);coloredOption.backgroundBrush.setColor(aRandomColor);我知道我可以在不调用QItemDelegate::drawCheck的情况下在自己的
浏览 50
提问于2019-07-18
得票数 0
回答已采纳
2
回答
PyQt4 -图像水印
python
、
pyqt4
、
qimage
、
qpainter
代码在
Linux
上100%有效,但当我在Windows XP上运行它时(没有在任何其他版本的Windows上测试过),文本永远不会写入到图像中。image = QtGui.QImage('demo.png')
painter
.begin(image)
painter
.setPen(QtCore.Qt.blue)
painter
.setFont(QtGui.QFont
浏览 2
提问于2009-09-16
得票数 2
1
回答
QBackingStore::endPaint()在backingstore油漆设备上与活动画家一起调用
qt
、
qml
、
embedded-linux
、
yocto
、
beagleboneblack
/QmlProject“时,出现了一个错误: QBackingStore::endPaint() called with active
painter
on backingstore paint device
浏览 1
提问于2018-09-11
得票数 10
1
回答
linux
上的Qt打印具有错误的坐标
c++
、
linux
、
qt
我尝试使用Qt 5.12.2在
Linux
上打印,但结果超出了页面限制,超出了页面。DevicePixel);
painter
.drawRect(recHeader);
painter</
浏览 15
提问于2019-03-27
得票数 0
回答已采纳
1
回答
QPainter无法正确绘制文本
c++
、
qt
、
qt4
我无法使用QPainter drawText()方法绘制路径QPainter *
painter
painter
->drawText(centerRect,Path,QTextOption(Qt::AlignCenter | Qt::AlignHCenter
浏览 6
提问于2017-10-26
得票数 0
1
回答
为什么QFontMetrics::lineSpacing()比字符边界框的高度小?
c++
、
qt
、
fonts
、
kubuntu
这发生在
Linux
上。在执行此代码时(我在小部件的paint事件中绘制)会出现问题:qDebug() << "bounding box height" << charBoundingBox.height(); qDebug() << "lineSpacing" <<
painter
.f
浏览 2
提问于2012-11-18
得票数 3
1
回答
QPainter.drawText() SIGSEGV分段故障
c++
、
printing
、
qt5
、
segmentation-fault
{ QPainter
painter
;
painter
.setFont(QFont("Tahoma",8)); retur
浏览 4
提问于2014-10-05
得票数 6
回答已采纳
1
回答
PoDoFo c++ PDF库,cyrilic字符
c++
、
pdf
、
encoding
、
utf-8
、
podofo
我在Windows和
Linux
中使用带有字体配置的PoDoFo库版本0.9.7。document.CreateFont("Arial", false, false, PdfEncodingFactory::GlobalIdentityEncodingInstance());
painter
.SetPage(document.GetPage(0));PdfString str(reinterpret_cast<const pdf_utf8*&g
浏览 121
提问于2021-11-20
得票数 2
2
回答
QPainter::drawText在
Linux
上的不良性能
linux
、
performance
、
qt
、
text
、
transformation
我注意到QPainter::drawText在
Linux
上使用缩放窗口映射时速度非常慢。我能做些什么吗?我已经检查过禁用反混叠或启用光栅渲染器是否有区别,但没有。在
Linux
上的秒--在OpenSuse和Ubuntu上。 QFont font;
painter
.setFont(font); // Set
浏览 2
提问于2014-02-07
得票数 5
回答已采纳
2
回答
使用QImage (qt)生成文本图像
c++
、
qt
、
qimage
我正在尝试使用QImage从文本中创建图像。我们不能将QImage::Format_Indexed8与QImage结合使用。我不能使用QImage::Format_Mono或QImage::Format_MonoLSB,因为它的质量低。是创建文本图像(批处理)的最佳方法,这样我们就可以以最小的文件大小获得良好的质量了吗?有什么方法可以在创建图像后通过QT进行图像压缩以减少文件大小?
浏览 2
提问于2011-09-24
得票数 5
1
回答
QThread和QPainter::drawText()的Qt/C++内存泄漏
c++
、
multithreading
、
qt
、
memory-leaks
我使用的是Qt4.6,在64位
Linux
下编译的32位,我有一个令人费解的内存问题,我无法解决。我有一个包含QLabel的QWidget。on the image
painter
.setRenderHint(QPainter::Antialiasing, true);QFont font("Helvetica", m_textSize);
painter</e
浏览 2
提问于2011-08-10
得票数 2
回答已采纳
1
回答
使用xvfb-通过ssh连接使用正式的qt5安装程序安装无头时安装.run挂起。
software-installation
、
ssh
、
qt
、
qt5
qt-installer.run \[115] Warning: QPainter::setPen:
Painter
not active [115] Warning: QPainter::setPen:
Painter
not act
浏览 0
提问于2017-08-02
得票数 1
1
回答
Qt自定义小部件背景透明,但我希望我们可以使用小部件后面的对象。
qt
、
qt5
、
qpainter
、
qtwidgets
void CustomWidget::paintEvent(QPaintEvent* event) if (this->isActiveWindow()) QPainter
painter
(this);
painter
.setBrush(QBrush(QColor(69, 232, 32, 100))); }当我在
Linux
(KDE N
浏览 1
提问于2019-10-08
得票数 1
1
回答
QStyledItemDelegate::paint -为什么文本没有正确对齐?
c++
、
qt
在下面的示例中,我调用了QStyledDelegate::paint,然后继续使用
painter
->drawText绘制相同文本的另一个红色副本。const QStyleOptionViewItem &option, const QModelIndex &index) const QStyledItemDelegate::paint(
painter
, option, index);
paint
浏览 0
提问于2013-04-03
得票数 4
回答已采纳
1
回答
为什么在QPainter上使用drawText时,QImage似乎会不期而至地缩放字体呢?
pyqt4
、
qpainter
、
qimage
我正在使用QImages (
Linux
,PyQt4 )将两个单独的映像,一个png一个jpg加载到单独的PyQt4中(这并不重要)。图像都是640x480。16) self.fontheight = metrics.ascent();
painter
.begin(img)
浏览 1
提问于2016-01-16
得票数 0
回答已采纳
3
回答
如何在QWidget上使用透明的蒙版?
qt5
、
mask
、
qwidget
QImage alpha_mask(QSize(50, 50), QImage::Format_ARGB32);
painter
.setBrush(Qt::black);
painter
.drawEllipse我知道
Linux
版本的Skype确实使用Qt,所以它应该可
浏览 14
提问于2015-07-01
得票数 3
1
回答
Qt QPrinter setPaperSize不能正常工作。
c++
、
qt
、
printing
我正在尝试创建一个Windows应用程序(但最终也会将它移植到
linux
上,因此,如果可能的话,交叉兼容性是很重要的),它将从摄像头上拍摄一张照片,并且可以在不使用printDialog框的情况下打印,
painter
.begin(printer)) { return;
painter
.fillRect(QRectF(QPointF(108,118),QPointF(110+352, 120+35
浏览 5
提问于2013-02-14
得票数 1
回答已采纳
2
回答
将QWidget显示为焦点
c++
、
qt
、
focus
、
qpainter
、
qlineedit
Linux
,它应该是圆的。有没有办法解决这个问题,或者,如果可能的话,让它在焦点不集中的情况下把自己画成专注的样子?if (childHasFocus) {
painter
.setPen(color);rect.setWidth(this->width()
浏览 8
提问于2022-07-19
得票数 1
回答已采纳
1
回答
如何在qt中创建自定义TreeView,并将分支放在ItemView的右侧?
c++
、
qt
、
qtreeview
、
qtreewidgetitem
、
qstyle
, widget);或者使用一个代表:或者重新实现TreeView::DrawBranches。->drawImage(_branch, QImage("/home/fisher/Pictures/Download.p
浏览 7
提问于2019-12-06
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
安装教程|Painter
Adobe推出Substance 3D Painter 7.4
Snap在伦敦发布大型多人LBS AR滤镜:City Painter
奔跑吧彩笔《Path Painter》描绘属于自己的世界
谷歌完成Chimera Painter开发,一步生成怪物,人人都是画家
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券