04-09-2025, 02:21 PM
I forgot many things how QM works, so please don't assume that my answers are correct or that it is the best way. You can find all this info in QM Help.
Yes, qml files are sqlite databases.
Yes, when importing, items from the qml file are merged into the main qml file. Unless importing as shared file.
QM has public documented functions to work with the main qml file. Simple: qmitem, str.getmacro/setmacro, SilentImport, SilentExport, maybe more. Advanced:Â SqliteBegin etc (accessing the database). But importing is not so simple. There is no way to correctly import using sqlite functions.
Yes, qml files are sqlite databases.
Yes, when importing, items from the qml file are merged into the main qml file. Unless importing as shared file.
QM has public documented functions to work with the main qml file. Simple: qmitem, str.getmacro/setmacro, SilentImport, SilentExport, maybe more. Advanced:Â SqliteBegin etc (accessing the database). But importing is not so simple. There is no way to correctly import using sqlite functions.
Quote:I need a simple and fast way to replace the code of exported functions into the main.qml file.If I correctly understand, you prefer to export functions as multiple txt files, not as single qml file. Then maybe your posted importFun is the best way.
