How to make overloaded constructors?
-
wrote on 15 Mar 2014, 23:27 last edited by
Hey there,
How can I make a subclass of QAction with overloaded constructors. I would like to make a few different versions of my QAction subclass all with different arguments. How do I do this?
Thanks!
-
wrote on 16 Mar 2014, 04:47 last edited by
You overload constructors exactly the same way you overload any other function. There are plenty of such examples in the Qt API docs, including QAction itself.
2/2