Qt 6.11 is out! See what's new in the release
blog
what is the best way to use QAction? i want to add the same QAction in many different places...make it globally?
General and Desktop
2
Posts
2
Posters
561
Views
2
Watching
-
Would you make a push button or a combobox global, because you are using push buttons and comboboxes all over your application?
That statement might be a bit general. But would you create a global push button for quitting the application, because you might want to do this from anywhere in the app?
IMHO it is not OOP style to have global objects. The only exclusion would be when the object is being really large or its creation requires always the same complex, time consuming procedure.