Qt 6.11 is out! See what's new in the release
blog
Basic Python "import" question
-
Voluntary removed
Posted in wrong forum -
Voluntary removed
Posted in wrong forum@AnneRanch, this is for sure not Qt but pure python question so first of all you need to go to relevant community.
Im not a python expert but in generalimportstatement defines a scope that you import.
I.e. if you haveModule1withClassA,ClassBwithing then:- If you have
import Module1
you get access to all its content with dot-notation. You may useModule1.ClassAandModule1.ClassBin your code. - if you have
from Module1 import ClassB
Then you limit your import scope and can useClassBonly whileClassAwon't be available for you.
How to do it depends on your project and architecture.
- If you have