当前位置: 首页 > news >正文

制作手机端网站网站不做icp备案

制作手机端网站,网站不做icp备案,制作公司网页可以用网上图片吗,wordpress关闭谷歌1、概述 QGraphicsEllipseItem是Qt框架中QGraphicsItem的一个子类#xff0c;它提供了一个可以添加到QGraphicsScene中的椭圆项。QGraphicsEllipseItem表示一个带有填充和轮廓的椭圆#xff0c;也可以用于表示椭圆段#xff08;通过startAngle()和spanAngle()方法#xff…1、概述 QGraphicsEllipseItem是Qt框架中QGraphicsItem的一个子类它提供了一个可以添加到QGraphicsScene中的椭圆项。QGraphicsEllipseItem表示一个带有填充和轮廓的椭圆也可以用于表示椭圆段通过startAngle()和spanAngle()方法。它允许你设置椭圆的几何形状、颜色、边框等属性并可以响应各种事件如鼠标点击、移动等。QGraphicsEllipseItem是Qt图形视图框架Graphics View Framework的一部分该框架提供了一个用于2D图形项的高效视图和场景架构。 2、重要方法 QGraphicsEllipseItem提供了一系列方法来设置和控制椭圆的属性。以下是一些重要的方法 QGraphicsEllipseItem(qreal x, qreal y, qreal width, qreal height, QGraphicsItem *parent nullptr)构造函数创建一个椭圆项指定其外接矩形的左上角坐标x, y和宽度width及高度height。QGraphicsEllipseItem(const QRectF rect, QGraphicsItem *parent nullptr)构造函数创建一个椭圆项指定其外接矩形rect。QGraphicsEllipseItem(QGraphicsItem *parent nullptr)构造函数创建一个椭圆项不指定其外接矩形可以在之后通过setRect()方法设置。void setRect(const QRectF rect)设置椭圆的外接矩形。void setRect(qreal x, qreal y, qreal width, qreal height)设置椭圆的外接矩形的左上角坐标和尺寸。QRectF rect() const返回椭圆的外接矩形。void setSpanAngle(int angle)设置椭圆段的扫过角度。int spanAngle() const返回椭圆段的扫过角度。void setStartAngle(int angle)设置椭圆段的起始角度。int startAngle() const返回椭圆段的起始角度。void setPen(const QPen pen)设置椭圆的边框。void setBrush(const QBrush brush)设置椭圆的填充颜色或图案。 此外QGraphicsEllipseItem还继承了QGraphicsItem的一些方法如boundingRect()、shape()、contains()、paint()等这些方法用于定义椭圆的边界、形状、包含关系以及绘制方式。 3、重要信号 QGraphicsEllipseItem本身并没有定义特定的信号但它继承了QGraphicsItem的信号。这些信号通常与项目的交互和状态变化相关如鼠标事件mousePressEvent、mouseMoveEvent、mouseReleaseEvent等、键盘事件keyPressEvent、keyReleaseEvent等、选择状态变化selectionChanged等。你可以通过连接这些信号到相应的槽函数来响应这些事件。 4、常用枚举类型 QGraphicsEllipseItem并没有定义自己的枚举类型但它继承了QGraphicsItem的一些枚举类型。这些枚举类型通常用于控制项目的行为如项目的可见性QGraphicsItem::ItemIsVisible、项目的可移动性QGraphicsItem::ItemIsMovable、项目的可选择性QGraphicsItem::ItemIsSelectable等。你可以通过调用QGraphicsItem的setFlag()方法来设置这些标志。 #include QApplication #include QGraphicsScene #include QGraphicsView #include QGraphicsEllipseItemint main(int argc, char *argv[]) {QApplication app(argc, argv);// Create a sceneQGraphicsScene *scene new QGraphicsScene();// Create an ellipse itemQGraphicsEllipseItem *ellipse new QGraphicsEllipseItem();ellipse-setRect(0, 0, 100, 60); // Set the ellipse dimensions (x, y, width, height)ellipse-setBrush(QBrush(Qt::blue)); // Set fill colorellipse-setPen(QPen(Qt::red, 2)); // Set border color and width// Add the ellipse to the scenescene-addItem(ellipse);// Create a view to display the sceneQGraphicsView *view new QGraphicsView(scene);view-setRenderHint(QPainter::Antialiasing); // Enable antialiasing for smoother renderingview-setSceneRect(-200, -200, 400, 400); // Set the visible areaview-resize(400, 400); // Set the window size// Show the viewview-show();return app.exec(); } 觉得有帮助的话打赏一下呗。。 需要商务合作定制程序的欢迎私信
http://www.tj-hxxt.cn/news/220799.html

相关文章:

  • 成都市网站制作如何做好推广工作
  • 青岛市建设监理协会网站怎样编程制作自己的app
  • 学校网站开发模式沧州百胜
  • 营销型网站建设公司地址外贸seo推广
  • 男女做暧昧小视频网站工作室名字
  • 互联网网站开发服务合同做a图片视频在线观看网站
  • 服务器买好了怎么搭建自己的网站林州网站建设哪家便宜
  • 学校网站的功能校园网站建设划分vlan
  • 电子商务网站建设教学总结成都制作网页设计
  • 张家口网站建设网站建设练手项目
  • 设计素材网站永久重庆建设厅网站
  • 在电脑上建设个人网站网站制作最便宜
  • 湖北襄阳住房保障和城市建设局网站中企动力邮箱手机登录入口
  • 电子商务网站建设与维护案例在网站建设工作会议上的讲话
  • 网站建设渠道员wordpress 移动端编辑器
  • 投资网站php源码如何做原创漫画网站
  • 企业网站建设600元商城网站建设开发
  • 禁忌网站有哪些二维码在线生成
  • 手机自助建站系统建设网站过程
  • 四川网站建设一站式服务商wordpress默认的h1标签放在哪里
  • 做任务赚佣金网站有哪些黑龙江纪检监察网
  • 网站制作蒙特淘宝网官方网站
  • 怎样建设自己的网站的视频东莞建站模板
  • 天津 网站优化青海省建设厅通报网站
  • 网站建设实务课本网站品牌打造
  • wordpress文章类模板厦门seo服务
  • 做网站需要公司如何做国际网站首页
  • 姜堰哪里有网站建设的.网站建设的基本步骤
  • 汕头seo关键词排名网站背景图片优化
  • 网站建设的标语dede企业网站