Compare commits
3 Commits
4dfe986111
...
1900100b54
| Author | SHA256 | Date | |
|---|---|---|---|
| 1900100b54 | |||
| 2c9fc6380a | |||
| 17445ff594 |
@@ -2,7 +2,6 @@ import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Controls.Fusion
|
||||
import Gui
|
||||
import "../js/qmldict.js" as JsLib
|
||||
|
||||
ColumnLayout
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import Gui
|
||||
import QtQuick.Dialogs
|
||||
import QtCore
|
||||
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>gui/qmldir</file>
|
||||
<file>gui/TopBar.qml</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
6
main.py
6
main.py
@@ -47,6 +47,8 @@ def publishContext():
|
||||
engine.rootContext().setContextProperty("bm", bm)
|
||||
engine.rootContext().setContextProperty("am", am)
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
#QResource.registerResource("rc_qml.py")
|
||||
app = QGuiApplication(sys.argv)
|
||||
@@ -60,9 +62,9 @@ if __name__ == "__main__":
|
||||
|
||||
|
||||
|
||||
qml_file = Path(__file__).resolve().parent / "Gui/main.qml"
|
||||
# qml_file = Path(__file__).resolve().parent / "Gui/main.qml"
|
||||
|
||||
#qml_file = ":/gui/main.qml"
|
||||
qml_file = "qrc:/Gui/main.qml"
|
||||
|
||||
config = ConfigLoader()
|
||||
|
||||
|
||||
@@ -10,12 +10,10 @@
|
||||
"lib/Vermasseln.py",
|
||||
"Gui/CustomerTables.qml",
|
||||
"Gui/SearchBar.qml",
|
||||
"Gui/test.qml",
|
||||
"lib/DB/BusinessModel.py",
|
||||
"Gui/EmployeTables.qml",
|
||||
"Gui/AddCustomer.qml",
|
||||
"pyqcrm.qrc",
|
||||
"Gui/qmldir",
|
||||
"Gui/TopBar.qml",
|
||||
"qml.qrc",
|
||||
"images/account.svg",
|
||||
|
||||
9
qml.qrc
9
qml.qrc
@@ -1,11 +1,18 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>Gui/TopBar.qml</file>
|
||||
<file>Gui/qmldir</file>
|
||||
<file>Gui/AdminUserConfig.qml</file>
|
||||
<file>Gui/EncryptionKey.qml</file>
|
||||
<file>Gui/DbConfiguration.qml</file>
|
||||
<file>Gui/LoginScreen.qml</file>
|
||||
<file>Gui/AddContact.qml</file>
|
||||
<file>Gui/AddCustomer.qml</file>
|
||||
<file>Gui/CustomerTables.qml</file>
|
||||
<file>Gui/Dashboard.qml</file>
|
||||
<file>Gui/EmployeTables.qml</file>
|
||||
<file>Gui/firststart.qml</file>
|
||||
<file>Gui/main.qml</file>
|
||||
<file>Gui/SearchBar.qml</file>
|
||||
<file>js/qmldict.js</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>../gui/qmldir</file>
|
||||
<file>../gui/TopBar.qml</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
@@ -1,78 +0,0 @@
|
||||
# Resource object code (Python 3)
|
||||
# Created by: object code
|
||||
# Created by: The Resource Compiler for Qt version 6.8.0
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PySide6 import QtCore
|
||||
|
||||
qt_resource_data = b"\
|
||||
\x00\x00\x01\xba\
|
||||
(\
|
||||
\xb5/\xfd`\xdd\x04\x85\x0d\x00\xb6\x13=\x1f0s\x1e\
|
||||
\xb3\xfb\x92H\xd4\xdc\x08\xd0\xcdc\xdb\xa9\xa2\xa0\xc4\xa4\
|
||||
\xbco\x17:w\xe6&\x14T4\x0c\x034\x003\x00\
|
||||
4\x00{5\x07\x9f\x8a\x9d\x83\xa1\xb9\x87UdHh\
|
||||
\xae\x9a\xf1\xedE}\x17W\x7fsTl\x0c\xc4:]\
|
||||
a\x8c~\xed\xcfF\xa8l\xff\xd9\x0c\x89i^\xac\x94\
|
||||
\xa7\xb4\xf7\xbe\xac\x18M(4A\x9b,]>\xbe(\
|
||||
/+\x10M\x90n#\x02\xb8\x85n\x9a{\x0fs\xf5\
|
||||
o\xeeWb(\xdf^@\xba\xd4\xec\xff\xba\x081\xf6\
|
||||
\x18\x96\xd4\x1b\xbe\xb9\xd2O\xf6\x8f}Z\xfe\xb4C\xe2\
|
||||
\xfc\x91'\xdf\x8f\xd6\xe45\x9c\x99\x9a\xb2\x9c\xd6\xe2l\
|
||||
\xf5\xd3\xca\x80L\xa6f\xd5\x84\x22im\xa4\x96h\xfc\
|
||||
\xbc6\x95\x9c\xa9\xed\xc8u9\x8a5\x8c\x19\x8c\x85\x10\
|
||||
\xcd\xcdX\xf9J\x1eV\xd1#\x8a\xdd[\xf6\x8b*\x0e\
|
||||
\x95\xeadk@\xb9Z+\x0e\xdc\xf3M\xd4\xdc\xecG\
|
||||
;\xb3/e\xc4Ho/\x0a-\xfe\x87\xa2\x9au\xc2\
|
||||
N\xa0\x91\x1dB\x8a!\x91))LZ\x03@\x84\x18\
|
||||
\xc6\xec\x1c\x03\x00\xb53i!-\xd8t\x01r\x1e\xc8\
|
||||
R\xc2\x99\x15\xe6\xba7\xf5\xb1\x85]\xd9d4\xe6\x0c\
|
||||
\x07\x95\x88^\xe0\xf7\x96\x0d\xeb\xc7\xa2\xaeQ\xbf\x96\xfd\
|
||||
\x93\x9c\xd3\x1cX\x94L7\x1bB\xb5\xb0\xc2tNJ\
|
||||
\x5c\xf0x\x18\x1d\xd3vQ\x82w\xa5\xf6\x18\xb9\xbb\xaa\
|
||||
\x8d)z\x08\x8f\xf5\xb8\x80\xe7*\xab\xbd\x0f\xd2\x92;\
|
||||
\xc4\xaa@\x8bdyf\xa1\x0d\xc2[\xc6\xa0QD\x18\
|
||||
\x97p\xb1\x85\xf3m3\x04\x05\x95=^\xd8SU\xe5\
|
||||
6\x9e\x93%!~\x0d`\x01_\xdb(\x5c\xa0\xa7\x82\
|
||||
\x03\xf0\xd6\xb8\x0d\x97\xd8n\x056\x87\xb4\xaf%\xb4\x0d\
|
||||
\x83\xfb\x1b\xe6\x8aD\x22w*\
|
||||
\x00\x00\x00$\
|
||||
m\
|
||||
odule TopBar\x0aTop\
|
||||
Bar 1.0 TopBar.q\
|
||||
ml\x0a\
|
||||
"
|
||||
|
||||
qt_resource_name = b"\
|
||||
\x00\x03\
|
||||
\x00\x00n\xb9\
|
||||
\x00g\
|
||||
\x00u\x00i\
|
||||
\x00\x0a\
|
||||
\x08\x8e<\xbc\
|
||||
\x00T\
|
||||
\x00o\x00p\x00B\x00a\x00r\x00.\x00q\x00m\x00l\
|
||||
\x00\x06\
|
||||
\x07\x84+\x02\
|
||||
\x00q\
|
||||
\x00m\x00l\x00d\x00i\x00r\
|
||||
"
|
||||
|
||||
qt_resource_struct = b"\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
|
||||
\x00\x00\x00\x00\x00\x00\x00\x00\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x02\x00\x00\x00\x02\
|
||||
\x00\x00\x00\x00\x00\x00\x00\x00\
|
||||
\x00\x00\x00&\x00\x00\x00\x00\x00\x01\x00\x00\x01\xbe\
|
||||
\x00\x00\x01\x93*\xc9x\xab\
|
||||
\x00\x00\x00\x0c\x00\x04\x00\x00\x00\x01\x00\x00\x00\x00\
|
||||
\x00\x00\x01\x93*\xc9x\xab\
|
||||
"
|
||||
|
||||
def qInitResources():
|
||||
QtCore.qRegisterResourceData(0x03, qt_resource_struct, qt_resource_name, qt_resource_data)
|
||||
|
||||
def qCleanupResources():
|
||||
QtCore.qUnregisterResourceData(0x03, qt_resource_struct, qt_resource_name, qt_resource_data)
|
||||
|
||||
qInitResources()
|
||||
Reference in New Issue
Block a user