How to redefinition QT function?
-
wrote on 31 Jul 2020, 06:03 last edited by TomNow99
Hello,
I know that is strange, but I would like to learn how to redefinition ( or add new ) function of another QT class.
For example class QScreen and function grabWindow(WId window, int x = 0, int y = 0, int width = -1, int height = -1). I would like to write new my grabWindow(WId window, int x = 0, int y = 0, int width = -1, int height = -1) or create grabWindow2(WId window, int x = 0, int y = 0, int width = -1, int height = -1).
How I should that?
-
wrote on 31 Jul 2020, 06:12 last edited by
In C++ you can't redefinition or add new function to any class defined in the libraries.
You can only subclass it.
1/2