QtCore is not accessed in vs code

Question:

I’m trying to use QtCore in one of my projects, but vs code says "QtCore is not accessed". This is my code:

from PyQt5 import QtWidgets, QtCore

I’ve been searching around, and I know this question has been asked before but when I try to get libqt4-core and qt4-dev-tools as a solution given from This stack overflow Question but it doesn’t work. What should I do?

Asked By: Formula1Fan43

||

Answers:

I think you might misunderstand that warning from VSCode. You normaly get this warning when you import something you don’t use in the code.
You can ignore that warning or remove QtCore from your imports while you are not using it.

Answered By: wambo
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.