what is the best way to use QAction? i want to add the same QAction in many different places...make it globally?



  • what is the best way to use QAction? i want to add the same QAction in many different places...make it globally?
    thank you



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.