Organizing Pyside2 Code
Solved
Qt for Python
-
Hi All,
I need to organize files in subdirectories. but when i try to add new directory to main.pyproject file, it doesn't give access to its sub qml files.
So how can i make subfolders containing components that can be used in main.qml ?? -
Need to organize main.qml file that imports nested files of subdirectories. If you have in main.qml:
import "qmlFiles" as Uqmls
then inside qmlFiles/ directory you have some.qml file and qmlDir, then there inside this file:
import "qmlDir" as UDir
Is better to organize by this way:- dir/ of your main.qml file.
- dir/subdir/ for import from main.qml file
- dir/subdir/subdir/ for import from files that are in the dir/subdir/