from PyQt5 import QtCore, QtGui, QtWidgets,QtPrintSupport
from PyQt5 import QPrinter
import sqlite3
when running this error shows: ImportError: cannot import name 'QPrinter' from 'PyQt5' any help please
QPrinter
is a class inside QtPrintSupport
, instead import like this:
from PyQt5.QtPrintSupport import QPrinter