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

网站开发的毕设开题报告深圳网站建设好不好

网站开发的毕设开题报告,深圳网站建设好不好,wordpress 万网搬家,title 网站建设公司实力一、概述 QGraphicsGridLayout是Qt框架中用于在QGraphicsScene中布置图形项的一个布局管理器。它类似于QWidget中的QGridLayout#xff0c;但主要处理的是QGraphicsItem和QGraphicsWidget等图形项。通过合理设置网格位置、伸缩因子和尺寸#xff0c;可以实现复杂而灵活的布局…一、概述 QGraphicsGridLayout是Qt框架中用于在QGraphicsScene中布置图形项的一个布局管理器。它类似于QWidget中的QGridLayout但主要处理的是QGraphicsItem和QGraphicsWidget等图形项。通过合理设置网格位置、伸缩因子和尺寸可以实现复杂而灵活的布局管理。它允许开发者在指定的行和列中放置图形项并通过激活布局来自动计算每个图形项的位置和大小。 二、QGraphicsGridLayout类介绍 1、构造函数 QGraphicsGridLayout(): 默认构造函数创建一个空的网格布局。 2、主要方法 void addItem(QGraphicsLayoutItem *item, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment Qt::Alignment())将指定的图形项添加到指定的行和列并可以选择跨越多行或多列以及指定对齐方式。void addItem(QGraphicsLayoutItem *item, int row, int column, Qt::Alignment alignment Qt::Alignment())将指定的图形项添加到指定的行和列并可以指定对齐方式。QGraphicsLayoutItem *itemAt(int row, int column) const返回指定位置的图形项。void removeItem(QGraphicsLayoutItem *item)移除指定的 图形项。void setColumnMinimumWidth(int column, qreal width)指定列的最小宽度。void setRowMinimumHeight(int row, qreal height)指定行的最小高度。void setColumnStretchFactor(int column, int stretch)指定列的拉伸因子。void setRowStretchFactor(int row, int stretch)指定行的拉伸因子。void setVerticalSpacing(qreal spacing)设置行与行之间的垂直间距。void setHorizontalSpacing(qreal spacing)设置行与行之间的水平间距。int rowCount() const返回行的数量。int columnCount() const返回列的数量。 QGraphicsView *view new QGraphicsView; QGraphicsScene *scene new QGraphicsScene; QGraphicsWidget *container new QGraphicsWidget; QGraphicsGridLayout *gridLayout new QGraphicsGridLayout;scene-setSceneRect(0, 0, 500, 500); view-setScene(scene);// 创建一些按钮并添加到网格布局中 QPushButton *button1 new QPushButton(Button 1); QPushButton *button2 new QPushButton(Button 2); QPushButton *button3 new QPushButton(Button 3); QPushButton *button4 new QPushButton(Button 4);// 使用 QGraphicsProxyWidget 将按钮添加到场景中 QGraphicsProxyWidget *proxy1 scene-addWidget(button1); QGraphicsProxyWidget *proxy2 scene-addWidget(button2); QGraphicsProxyWidget *proxy3 scene-addWidget(button3); QGraphicsProxyWidget *proxy4 scene-addWidget(button4);// 将按钮添加到网格布局中 gridLayout-addItem(proxy1, 0, 0); gridLayout-addItem(proxy2, 0, 1); gridLayout-addItem(proxy3, 1, 0); gridLayout-addItem(proxy4, 1, 1);// 设置网格布局的行和列伸缩因子 gridLayout-setRowStretchFactor(0, 1); gridLayout-setRowStretchFactor(1, 1); gridLayout-setColumnStretchFactor(0, 1); gridLayout-setColumnStretchFactor(1, 1);// 将网格布局设置为容器的布局 container-setLayout(gridLayout);// 将容器添加到场景 scene-addItem(container); view-show(); 觉得有帮助的话打赏一下呗。。
http://www.laogonggong.com/news/105800.html

相关文章:

  • 自己创免费网站wordpress 手机模版
  • 绍兴专业网站建设哪些网站可以做视频收费
  • 网页制作与网站建设宝典 pdfapp创意设计方案
  • 工信部个人网站备案营销推广手段有什么
  • 什么是网站降权处理个人网页在线制作app
  • 威海网站优化做免费的视频网站可以赚钱吗
  • 青海省城乡建设信息官官方网站建站售后服务
  • 企业建站要多少钱网站开发的项目实战
  • flash网站导航怎么做企业网站建设服务内容
  • 网站开发学习视频网络营销的广告形式
  • 廊坊网站关键词排名网络培训班心得体会800字
  • 网站开发的编程语言有哪些网站空间服务
  • 网站开发入门教程北京h5网站建设
  • 做网站通常又什么开发完成网站后台栏目管理
  • 芒市网站建设公司wordpress表格内容如何修改
  • 网站框架设计好后怎么做如何做淘客推广网站
  • 深圳做微信网站制作通信网站模板
  • 虚拟机做网站做网页链接
  • 保定网站开发商业网站域名
  • 纸箱 技术支持 东莞网站建设wordpress文字采集
  • 怎么做网站注册系统阿里云心选建站
  • 做网站需要规划好什么网站建设和维护工作内容
  • 外贸 网站外链交换旅游网站系统哪个好
  • 在线做拓扑图的网站百度浏览器在线打开
  • seo网站分析php网站开发软件编程
  • 小叮当网站建设安徽省建设厅八大员报名网站
  • 娄底网站建设的公司男科
  • 建设广告联盟网站朔州做网站公司
  • 做网站数据库多少钱建筑网站制作
  • 文化网站策划书内容网站的动态图怎么做的