表格与树
1.1 QTableView
1.2 QListView
1.3 QListWidget
1.4 QTableWidget
表根据界面宽度自动伸缩
禁止编辑
单击某单元,使之默认选中整行
设置宽高度与内容相匹配..., QMessageBox, QApplication
class ListWidgetDemo(QListWidget):
def clicked(self, item):...on_tree_clicked(self):
item = self.tree.currentItem()
print(item.text(0), item.text(1))
系统定制模式
使用..., QStackedWidget, QHBoxLayout, QApplication, QLabel, QCheckBox, \
QLineEdit, QRadioButton, QFormLayout...())
layout.addRow("地址", QLineEdit())
self.stack1.setLayout(layout)
def stack2UI(