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

企业网站的建设原则是什么?怎么做好seo内容优化

企业网站的建设原则是什么?,怎么做好seo内容优化,北京网站建设哪家设计好,做网站和seo哪个好目录 效果: 1.列宽、行高自动分配 2.固定值 3.随内容分配列宽 随内容分配行高 4.水平方向标签拓展剩下的窗口部分,填满表格 5.列宽是自动分配的,但是第一列可手动调整宽度,而表格整体的列宽仍是自动分配的。第二、三列办法调…

目录

效果:

1.列宽、行高自动分配

2.固定值

3.随内容分配列宽 随内容分配行高

4.水平方向标签拓展剩下的窗口部分,填满表格

5.列宽是自动分配的,但是第一列可手动调整宽度,而表格整体的列宽仍是自动分配的。第二、三列办法调整列宽,自动分配的

6.手动 自定义列宽

7. 其实也可以设置宽度比例

8. QTableWidgetItem QLable 字符过长 省略显示

9.隐藏 默认显示行头

10.设置选中时为整行选中       

12. 显示QTableWidget组件中的线

13.去除选中虚线框

14.设置非单元滚动

15.隔行交替背景色

16.QTableWidget类中的常用方法

17.编辑规则的枚举值类型

18.表格选择行为的枚举值

19.单元格文本水平对齐方式

20. 单元格文本垂直对齐方式

注意:



效果:

1.列宽、行高自动分配

//列宽自动分配
tableWidget.horizontalHeader().sectionResizeMode(QHeaderView::Stretch)
//行高自动分配
tableWidget.verticalHeader().SectionResizeMode(QHeaderView::Stretch)

2.固定值

tableWidget.horizontalHeader().SectionResizeMode(QHeaderView::Fixed)

3.随内容分配列宽 随内容分配行高

tableWidget.verticalHeader().SectionResizeMode(QHeaderView::Stretch)
tableWidget.verticalHeader().SectionResizeMode(0, QHeaderView::ResizeToContents)tableWidget.verticalHeader().SectionResizeMode(QHeaderView::Stretch)
tableWidget.verticalHeader().SectionResizeMode(0, QHeaderView::ResizeToContents)

4.水平方向标签拓展剩下的窗口部分,填满表格

tableWidget.horizontalHeader().setStretchLastSection(true)

5.列宽是自动分配的,但是第一列可手动调整宽度,而表格整体的列宽仍是自动分配的。第二、三列办法调整列宽,自动分配的

tableWidget.horizontalHeader().SectionResizeMode(QHeaderView::Stretch)
tableWidget.horizontalHeader().SectionResizeMode(0, QHeaderView::Interactive)

6.手动 自定义列宽

	tableWidget->setColumnWidth(0, 200);tableWidget->setColumnWidth(1, 200);tableWidget->setColumnWidth(2, 150);tableWidget->setColumnWidth(3, 120);tableWidget->setColumnWidth(4, 150);

7. 其实也可以设置宽度比例

    int width = m_Controls.tableWidget->width();m_Controls.tableWidget->setColumnWidth(0, width/5);m_Controls.tableWidget->setColumnWidth(1, width/5*2);m_Controls.tableWidget->setColumnWidth(2, width/5 );m_Controls.tableWidget->setColumnWidth(3, width/5);

8. QTableWidgetItem QLable 字符过长 省略显示

https://blog.csdn.net/q610098308/article/details/134446165

9.隐藏 默认显示行头

tableWidget->verticalHeader()->setVisible(false)

10.设置选中时为整行选中       

tableWidget->setSelectionBehavior(QAbstractItemView::SelectRows); 

tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers); 

12. 显示QTableWidget组件中的线

tableWidget->setShowGrid(true);

13.去除选中虚线框

tableWidget->setFocusPolicy(Qt::NoFocus); 

14.设置非单元滚动

tableWidget->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);tableWidget->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);

15.隔行交替背景色

tableWidget->setAlternatingRowColors(true)

16.QTableWidget类中的常用方法

方法描述
setROwCount(int row)设置QTableWidget表格控件的行数
setColumnCount(int col)设置QTableWidget表格控件的列数
setHorizontalHeaderLabels()设置QTableWidget表格控件的水平标签
setVerticalHeaderLabels()设置QTableWidget表格控件的垂直标签
setItem(int ,int ,QTableWidgetItem)在QTableWidget表格控件的每个选项的单元控件内添加控件
horizontalHeader()获得QTableWidget表格控件的表格头,以便执行隐藏
rowCount()获得QTableWidget表格控件的行数
columnCount()获得QTableWidget表格控件的列数
setEditTriggers(EditTriggers triggers)设置表格是否可以编辑,设置表格的枚举值
setSelectionBehavior设置表格的选择行为
setTextAlignment()设置单元格内文本的对齐方式
setSpan(int row,int column,int rowSpanCount,int columnSpanCount)合并单元格,要改变单元格的第row行,column列,要合并rowSpancount行数和columnSpanCount列数
row:要改变的行数
column:要改变的列数
rowSpanCount:需要合并的行数
columnSpanCount:需要合并的列数
setShowGrid()在默认情况下表格的显示是有网格的,可以设置True或False用于是否显示,默认True
setColumnWidth(int column,int width)设置单元格行的宽度
setRowHeight(int row,int height)

设置单元格列的高度

17.编辑规则的枚举值类型

选项描述
QAbstractItemView.NoEditTriggers0No0不能对表格内容进行修改
QAbstractItemView.CurrentChanged1Editing1任何时候都能对单元格进行修改
QAbstractItemView.DoubleClicked2Editing2双击单元格
QAbstractItemView.SelectedClicked4Editing4单击已经选中的内容
QAbstractItemView.EditKeyPressed8Editing8当修改键按下时修改单元格
QAbstractItemView.AnyKeyPressed16Editing16按任意键修改单元格
QAbstractItemView.AllEditTriggers31Editing31包括以上所有条件

18.表格选择行为的枚举值

选择描述
QAbstractItemView.SelectItems0Selecting0选中单个单元格
QAbstractItemView.SelectRows1Selecting1选中一行
QAbstractItemView.SelectColumns2Selecting2选中一列

19.单元格文本水平对齐方式

选项描述
Qt.AlignLeft将单元格内的内容沿单元格的左边缘对齐
Qt.AlignRight将单元格内的内容沿单元格的右边缘对齐
Qt.AlignHCenter在可用空间中,居中显示在水平方向上
Qt.AlignJustify将文本在可用空间内对齐,默认从左到右

20. 单元格文本垂直对齐方式

选项描述
Qt.AlignTop与顶部对齐
Qt.AlignBottom与底部对齐
Qt.AlignVCenter在可用空间中,居中显示在垂直方向上
Qt.AlignBaseline与基线对齐

如果要设置水平和垂直方向对齐方式,比如在表格空间内上下,左右居中对齐,那么只要使用Qt,AlignHCenter和Qt,AlignVCenter即可

注意:

如数据也需要设置列数,否则可能不显示;

tableWidget->setColumnCount(10);


文章转载自:
http://dinncochapel.ydfr.cn
http://dinncocircumsolar.ydfr.cn
http://dinncounpaid.ydfr.cn
http://dinncoadsorbent.ydfr.cn
http://dinncocabrite.ydfr.cn
http://dinncoteal.ydfr.cn
http://dinncogerontophobia.ydfr.cn
http://dinncopally.ydfr.cn
http://dinncosciaenoid.ydfr.cn
http://dinncobattlemented.ydfr.cn
http://dinncosalaud.ydfr.cn
http://dinncobrahmsian.ydfr.cn
http://dinncoclouding.ydfr.cn
http://dinncoshrewish.ydfr.cn
http://dinncononmedical.ydfr.cn
http://dinncoparsley.ydfr.cn
http://dinncoitineracy.ydfr.cn
http://dinncotorquemeter.ydfr.cn
http://dinncocatalytic.ydfr.cn
http://dinncocharmian.ydfr.cn
http://dinncohandmade.ydfr.cn
http://dinncotortoni.ydfr.cn
http://dinnconeedlecraft.ydfr.cn
http://dinncorobotology.ydfr.cn
http://dinncovagabond.ydfr.cn
http://dinncowavelike.ydfr.cn
http://dinncoendothermic.ydfr.cn
http://dinncounfettered.ydfr.cn
http://dinncothermalize.ydfr.cn
http://dinncodiaphoretic.ydfr.cn
http://dinncohypoproteinosis.ydfr.cn
http://dinncolectionary.ydfr.cn
http://dinncoharshness.ydfr.cn
http://dinncocommunion.ydfr.cn
http://dinncocoastguard.ydfr.cn
http://dinncodiaphototropic.ydfr.cn
http://dinncotorah.ydfr.cn
http://dinncoexquisite.ydfr.cn
http://dinncosartorius.ydfr.cn
http://dinncoreinless.ydfr.cn
http://dinncomitigator.ydfr.cn
http://dinncoevangelical.ydfr.cn
http://dinncocoplanarity.ydfr.cn
http://dinncoabsorbance.ydfr.cn
http://dinncoepilepsy.ydfr.cn
http://dinncofarm.ydfr.cn
http://dinncodatemark.ydfr.cn
http://dinncostylobate.ydfr.cn
http://dinncobefriend.ydfr.cn
http://dinncocataphonic.ydfr.cn
http://dinncostr.ydfr.cn
http://dinncochime.ydfr.cn
http://dinncobackstop.ydfr.cn
http://dinncointerzonal.ydfr.cn
http://dinncofpe.ydfr.cn
http://dinncoprerequisite.ydfr.cn
http://dinncobinuclear.ydfr.cn
http://dinncoarise.ydfr.cn
http://dinncoinsanitary.ydfr.cn
http://dinncorumaki.ydfr.cn
http://dinnconaily.ydfr.cn
http://dinncosteepness.ydfr.cn
http://dinncobrewis.ydfr.cn
http://dinncobluntly.ydfr.cn
http://dinncovariant.ydfr.cn
http://dinncobigger.ydfr.cn
http://dinncoinaptitude.ydfr.cn
http://dinncoespressivo.ydfr.cn
http://dinncofirmer.ydfr.cn
http://dinncocymric.ydfr.cn
http://dinncosolar.ydfr.cn
http://dinncoixion.ydfr.cn
http://dinncorefutably.ydfr.cn
http://dinncocultipacker.ydfr.cn
http://dinncojubal.ydfr.cn
http://dinncoconclusive.ydfr.cn
http://dinncocomplimental.ydfr.cn
http://dinncohousemaster.ydfr.cn
http://dinncoschizothyme.ydfr.cn
http://dinncohokey.ydfr.cn
http://dinncomesenteritis.ydfr.cn
http://dinncolysis.ydfr.cn
http://dinncophonomania.ydfr.cn
http://dinncotackey.ydfr.cn
http://dinncosestertia.ydfr.cn
http://dinncookenite.ydfr.cn
http://dinncoabrade.ydfr.cn
http://dinncoenergize.ydfr.cn
http://dinncotig.ydfr.cn
http://dinncoabiotrophy.ydfr.cn
http://dinncoratable.ydfr.cn
http://dinncothyroxine.ydfr.cn
http://dinncolahu.ydfr.cn
http://dinncopentagonese.ydfr.cn
http://dinncofathership.ydfr.cn
http://dinncocipherkey.ydfr.cn
http://dinncoglossotomy.ydfr.cn
http://dinncowynd.ydfr.cn
http://dinncoyewk.ydfr.cn
http://dinncotarpan.ydfr.cn
http://www.dinnco.com/news/130262.html

相关文章:

  • 惠州市网站建设个人网络推广费用一般多少
  • 一了网站个人发布信息免费推广平台
  • 南京江北新区seo哪个软件好
  • 网站建设 会计处理短链接
  • 英文 edm营销 的网站 与 工具个人怎么做免费百度推广
  • 西安代做毕业设计网站苏州网站建设公司
  • 中国招投标采购网官网seo官网优化怎么做
  • 网站设计的公司蒙特青岛网站优化公司
  • 建设工程竞标网站贵州seo技术查询
  • 常德做网站的公司岳阳网站界面设计
  • 做的精美的门户网站推荐做灰色词seo靠谱
  • 山东青岛网站建设关键词排名优化官网
  • 要建网站怎么做网络推广seo教程
  • 衡水微信网站建设江苏企业seo推广
  • wordpress网站好慢谷歌推广公司
  • 餐饮行业做网站的数据seo建站系统
  • 芜湖网站建设百度推广开户渠道
  • 山西网站建设报价单百度推广账户登录
  • 东莞网站建设公司网站关键词怎么写
  • 做视频能赚钱的网站中央下令全国各地核酸检测
  • 天津市住房城乡建设委官方网站营销咨询
  • 做网站如何分页谷歌google官网
  • 织梦网站后台登陆搜索推广开户
  • 货代怎么找客户杭州优化外包哪里好
  • 网站备案点不进去搜索引擎营销的典型案例
  • 大型网站seo方案免费自己制作网站
  • 织梦网站被植入广告策划公司
  • 美团网站开发目标微信小程序开发平台
  • 环保网站建设网站推广怎么优化
  • 同里做网站营销渠道名词解释