How to use focusInEvent and focusOutEvent [duplicate]
问题 This question already has answers here : How to resize the QToolButton when focus is coming on that QToolButton (2 answers) Closed 6 years ago . I am implementing an application in which i am having 3 QToolButton and when the focus is coming on any QToolButton it should resize . One of my friend has given me answer but i am unable to figure it out as i am inheriting QMainWindow class as well in my mainWindow. He is telling to inherit QToolButton too. But multiple inheritance problem will