PyQt/QComboBox/README.en.md

15 lines
362 B
Markdown
Raw Permalink Normal View History

2018-12-23 13:07:31 +08:00
# QComboBox
2019-03-12 12:47:56 +08:00
- Catalog
2019-05-22 11:07:42 +08:00
- [Data Linkage](#1data-linkage)
2019-03-12 12:47:56 +08:00
2018-12-23 13:07:31 +08:00
## 1、Data Linkage
2018-12-25 21:55:38 +08:00
[Run CityLinkage.py](CityLinkage.py)
2018-12-23 13:07:31 +08:00
Three level linkage, data file is data.json
1. use `QComboBox`,`setModel` and `QSortFilterProxyModel` to filter
2. the filter role is `Qt::ToolTipRole`
3. can use `QColumnView` maybe like this example
![CityLinkage](ScreenShot/CityLinkage.gif)