Make a module available to other apps
-
Hi
I have a Style singleton developed for a particular application and I would now like to use it other applications in order to get a common look and feel.
How is this achieved?Thanks
-
hi,
@GrahamLa said in Make a module available to other apps:Style singleton
What is your style singleton ? a .js file ?
-
@LeLev
No it is a QML filepragma Singleton import QtQuick 2.0 QtObject { property color subsectionlabelColor: "white" property color appSectionTitleColor: "white" property int fontsize: 18 }
My final goal is to have a file similar to a qt qss file that can be changed 'on the fly' between runs of the application and see the changes immediately.
-
@GrahamLa said in Make a module available to other apps:
I would now like to use it other applications
import the file and use it just like in the first app
@GrahamLa said in Make a module available to other apps:
on the fly
for me this is runtime, but you are saying "between runs of the application"
-
@LeLev
Thanks
With one of our existing Qt Widgets projects we are able to change a qss file and simply re run the application to see our changes.
So far I have been unable to achieve this - but it is early days, I assume that this is possible? -
@GrahamLa I only have a very little experience with Widgets.
In Qt Quick Style Singleton approach allows you to do that.
Even at runtime
7/7