https://github.com/yjg30737/pyside-database-chart-example
Example of using database and chart with PySide6
https://github.com/yjg30737/pyside-database-chart-example
pyside pyside-example pyside-tutorial pyside6 qchart qsortfilterproxymodel qsqldatabase qsqlquery qsqltablemodel qtsql
Last synced: about 2 months ago
JSON representation
Example of using database and chart with PySide6
- Host: GitHub
- URL: https://github.com/yjg30737/pyside-database-chart-example
- Owner: yjg30737
- License: mit
- Created: 2022-08-13T01:11:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-26T12:24:56.000Z (over 2 years ago)
- Last Synced: 2025-04-07T04:07:27.289Z (2 months ago)
- Topics: pyside, pyside-example, pyside-tutorial, pyside6, qchart, qsortfilterproxymodel, qsqldatabase, qsqlquery, qsqltablemodel, qtsql
- Language: Python
- Homepage:
- Size: 54.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyside-database-chart-example
Example of using database and chart with PySide6I used PySide6 unlike the others because PyQt5 or PyQt6 is very finicky to import QChart for some reasons.
You can see the basic description to use the database GUI here - pyqt-database-example.
Yes, it is PyQt database but PySide and PyQt are almost identical so there is not a bit of a problem to understand.
## Requirements
* PySide6## Setup
`python -m pip install git+https://github.com/yjg30737/pyside-database-chart-example.git --upgrade`## Example
```python
from PySide6.QtWidgets import QApplication
from pyside_database_chart_example.main import Windowif __name__ == "__main__":
import sysapp = QApplication(sys.argv)
window = Window()
window.show()
sys.exit(app.exec())
```Result

## See Also
* pyside-db-chart-mapping-example - map the db table view and chart with using `QVBarModelMapper`