Make a module available to other apps
-
wrote on 6 Feb 2019, 10:56 last edited by
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
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
wrote on 6 Feb 2019, 11:22 last edited byhi,
@GrahamLa said in Make a module available to other apps:Style singleton
What is your style singleton ? a .js file ?
-
hi,
@GrahamLa said in Make a module available to other apps:Style singleton
What is your style singleton ? a .js file ?
wrote on 6 Feb 2019, 11:26 last edited by@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.
-
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
wrote on 6 Feb 2019, 13:34 last edited by@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"
-
@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"
wrote on 6 Feb 2019, 13:39 last edited by@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? -
@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?wrote on 6 Feb 2019, 13:44 last edited by@GrahamLa I only have a very little experience with Widgets.
In Qt Quick Style Singleton approach allows you to do that.
Even at runtime -
@GrahamLa I only have a very little experience with Widgets.
In Qt Quick Style Singleton approach allows you to do that.
Even at runtimewrote on 6 Feb 2019, 13:46 last edited by@LeLev
Ok - looks like I need to follow that up
7/7