2018-12-23 13:07:31 +08:00
|
|
|
# QComboBox
|
|
|
|
|
|
|
|
## 1、Data Linkage
|
|
|
|
[View](CityLinkage.py) | [Run](CityLinkage.py)
|
|
|
|
|
|
|
|
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)
|