pyqt4文档阅读(6):QGridLayout

本系列文章长期更新修改.


QGridLayout,网格布局,是Qt里十分常用的布局,下图即为网格布局示意图.



属性:

Methods

  • __init__ (self, QWidget parent)
  • __init__ (self)
  • addItem (self, QLayoutItem item, int row, int column, int rowSpan = 1, int columnSpan = 1, Qt.Alignment = 0)
  • addItem (self, QLayoutItem)
  • addLayout (self, QLayout, int row, int column, Qt.Alignment = 0)
  • addLayout (self, QLayout, int row, int column, int rowSpan, int columnSpan, Qt.Alignment = 0)
  • addWidget (self, QWidget w)
  • addWidget (self, QWidget, int row, int column, Qt.Alignment = 0)
  • addWidget (self, QWidget, int row, int column, int rowSpan, int columnSpan, Qt.Alignment = 0)
  • QRect cellRect (self, int row, int column)
  • int columnCount (self)
  • int columnMinimumWidth (self, int column)
  • int columnStretch (self, int column)
  • int count (self)
  • Qt.Orientations expandingDirections (self)
  • (int row, int column, int rowSpan, int columnSpan) getItemPosition (self, int idx)
  • bool hasHeightForWidth (self)
  • int heightForWidth (self, int)
  • int horizontalSpacing (self)
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值