腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(5670)
视频
沙龙
1
回答
使用xvfb-通过ssh连接使用正式的qt5安装程序安装无头时安装.run挂起。
、
、
、
Painter
not active[115] Warning: QPainter::setPen:
Painter
not active[115] Warning: QPainter::pen:
Painter
not active [115] Warning: QPainter::setPen: <
浏览 0
提问于2017-08-02
得票数 1
1
回答
QPainter::begin():返回false
、
、
(&pdf);
painter
.setPen(Qt::blue);
painter
.drawText(1100,1200,"List of teachers");
painter
浏览 4
提问于2020-12-21
得票数 0
回答已采纳
3
回答
如何使用海龟将图形放入圆圈内?
、
代码:
painter
.pencolor("blue")
painter
.forward(100)turtle.done()
浏览 0
提问于2018-09-11
得票数 0
回答已采纳
1
回答
如何在drawPixmap和SourceOver上应用alpha通道
、
、
让我们看看下面的示例:
painter
.setCompositionMode(QPainter::CompositioMode_SourceOver);
painter
.drawPixmap(rect(), QPixmap(":/Background_1.png"));
painter
.drawPixm
浏览 2
提问于2015-03-31
得票数 2
回答已采纳
4
回答
如何为drawText旋转文本?
、
、
、
、
QFont font;for(int i = 0; i < 10; i++){ str = QString::number((double)9 - i, 'd', 1);
painter
->dr
浏览 6
提问于2013-07-24
得票数 7
回答已采纳
1
回答
如何在QMainWindow中作画?
、
、
在我的'MainWindow::paintEvent()‘中,它可以正常工作:qDebug() << "
painter
adress in paintEvent: " << (&
painter
);
painter
.drawRect(100, 100, 100, 100); 到现在为止还好。paintEvent: " <<
浏览 27
提问于2014-03-14
得票数 2
1
回答
如何创建具有可更改颜色的覆盖的缓和曲线
painter
= trtl.Turtle()
painter
.penup()
painter
.pensize(2))
painter
.forward(50+(spiral_space*1))
painter
.circle(10)
paint
浏览 1
提问于2020-10-12
得票数 0
3
回答
模棱两可
、
我有一个带有
Painter
模板函数的paint()模板类。我使用标记来专门化模板类中的模板函数。我将模板函数paint()的定义放在
Painter
.h中,重载函数放在
Painter
.cpp中。main(){
painter
.paint(ColorTag<Color::RED>());}g++Main.cpp
Painter
.cpp -std=c+
浏览 3
提问于2016-04-29
得票数 1
1
回答
QGraphicsItem::how ():如何检查是否打印了QGraphicsScene
、
、
下面是项目的paint()方法:{ else
painter
->setPen(blackPen);=0)
painter
->setBrush(redBrush); else
painter
-&
浏览 8
提问于2017-07-03
得票数 1
回答已采纳
1
回答
我如何防止障碍和门的重叠?
、
、
、
Configuration and Screen ConfigurationdistanceForward = 20
painter
.forward(initialWallDistance)
painter
.pendown()
painter
.forward(30)
painter
.bac
浏览 0
提问于2022-03-20
得票数 0
2
回答
如何使用QPainter创建一侧圆形和另一侧平面矩形?
、
QPainter
painter
(this); QRectF leftRect= QRectF("black");
painter
.setPen(QPen("white"));
painter
.setPen(QPen("black")
浏览 1
提问于2018-06-28
得票数 1
回答已采纳
4
回答
如何在具有XY轴的Qt图上绘制矩形
、
我想用Qt在带XY轴的图形上画一个矩形。我已经找到了小部件,但这不是我所需要的(或者我不知道如何应用它来解决我的问题)。 请给我一些建议,如何使它工作?
浏览 6
提问于2016-04-07
得票数 1
回答已采纳
1
回答
如何使用QPainter绘制焦点图标
、
const qreal y2 = rect.y() + rect.height() / 2.0;const qreal y3 = y2 + 8;
painter
->setRenderHint(QPainter::
浏览 13
提问于2017-02-02
得票数 0
回答已采纳
0
回答
QGraphicsView::drawForeground上的drawText
、
、
、
void MyView::drawForeground(QPainter *
painter
, const QRectF &rect) Q_UNUSED(rect);
painter
->setWorldMatrixEnabled(false);
painter
-&g
浏览 20
提问于2018-07-09
得票数 0
1
回答
QPainter::setPen函数昂贵吗?
、
、
、
);
painter
->setOpacity(m_opacity);
painter
->drawEllipse(line[0], CircleRadius, CircleRadius); { <em
浏览 21
提问于2019-11-07
得票数 0
2
回答
用于写入路径数据的C++ SVG库
、
、
有没有人知道好的C++库可以为我生成SVG path数据?我的想法是,我应该使用简单的MoveTo,LineTo,CurveTo命令等,并应该得到一个最终的路径字符串。虽然这不是那么困难,我可以写我自己的,但从时间上讲,如果有这样的东西就更好了。
浏览 2
提问于2011-12-14
得票数 3
1
回答
我能让PyQt5完全透明吗?
、
、
、
、
= QPainter(self)
painter
.setBrush(Qt.black) #ACTUAL BACKGROUDN
painter
.setPen(QPen(Qt.white)) #BORDER OF THE RECTANGLE
painter
.drawPixmap(QPoint(), self
浏览 7
提问于2022-01-17
得票数 1
回答已采纳
1
回答
缩放项目和渲染
、
我正在用Qt用C++11做一个小游戏。然而,我在缩放方面遇到了一些问题。为了设置磁贴的大小,我像这样计算最大值(其中imageRows & imageCols是背景图像x轴和y轴上的像素数):int maxRows = rec.height() / imageRows;if(maxRo
浏览 0
提问于2014-12-21
得票数 3
2
回答
QPainter初始化管理器并使用它
、
、
#define
PAINTER
_H#include <QtGui> { QPainter*
painter
;
Painter
(QMainWindow* m);}; #endif //
PAINTER</em
浏览 0
提问于2012-07-20
得票数 2
回答已采纳
2
回答
Java枚举类
、
、
. private
Painter
<Component> _
painter
; * Constructor will initialize the object. Painters(
Painter
<Component>
painter
){ } *Will ret
浏览 0
提问于2012-04-29
得票数 3
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
安装教程|Painter
Adobe推出Substance 3D Painter 7.4
Snap在伦敦发布大型多人LBS AR滤镜:City Painter
奔跑吧彩笔《Path Painter》描绘属于自己的世界
谷歌完成Chimera Painter开发,一步生成怪物,人人都是画家
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券