From 167d5ff3fe66dcf33a2167ddb5961138d5512c9e0981675da886b23e427c85aa Mon Sep 17 00:00:00 2001 From: Daniel Stoppek Date: Fri, 15 Nov 2024 15:26:49 +0100 Subject: [PATCH] Hopefully it works --- main.py | 1 + pyqcrm.pyproject | 4 +-- qml.qrc | 6 ++++ rc_qml.py | 78 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 qml.qrc create mode 100644 rc_qml.py diff --git a/main.py b/main.py index 60f28bd..5d7e917 100644 --- a/main.py +++ b/main.py @@ -7,6 +7,7 @@ from PySide6.QtCore import QResource from lib.ConfigLoader import ConfigLoader from lib.DataBase import DataBase import rc_pyqcrm +import rc_qml import sqlite3 # [pyqcrm] diff --git a/pyqcrm.pyproject b/pyqcrm.pyproject index 8974769..bdf08f1 100644 --- a/pyqcrm.pyproject +++ b/pyqcrm.pyproject @@ -15,8 +15,8 @@ "gui/EmployeTables.qml", "gui/AddCustomer.qml", "pyqcrm.qrc", - "qml.qrc", "gui/qmldir", - "gui/TopBar.qml" + "gui/TopBar.qml", + "qml.qrc" ] } diff --git a/qml.qrc b/qml.qrc new file mode 100644 index 0000000..1d8dc5b --- /dev/null +++ b/qml.qrc @@ -0,0 +1,6 @@ + + + gui/TopBar.qml + gui/qmldir + + diff --git a/rc_qml.py b/rc_qml.py new file mode 100644 index 0000000..5185fd6 --- /dev/null +++ b/rc_qml.py @@ -0,0 +1,78 @@ +# 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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\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 gui\x0aTopBar\ + 1.0 TopBar.qml\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\x930& \x0f\ +\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()