I would like to add this as a comment on the accepted post:
If you use python to create your project and process .ui files using pyuic5 , it may happen that pyuic5 leaves an error message stating that QtChart.QChartview not found. This is a workaround:
Go to the site-packages / PyQt5 / uic / widget-plugins directory, it should look something like this:
/widget-plugins/ __pycache__/ qaxcontainer.py qscintilla.py qtcharts.py <- create this file by copying qtquickwidgets.py and renaming qtprintsupport.py qtquickwidgets.py qtwebkit.py
qtcharts.py looks like this (you have to edit the file):
# copyright information pluginType = MODULE def moduleInformation(): return "PyQt5.QtChart", ("QChartView", )
source share