Why not derive QFrame it self?
It is of course possible the way you are doing it too.
But other then that, that is the way to go, yes.
Why not derive QFrame it self?
It is of course possible the way you are doing it too.
But other then that, that is the way to go, yes.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
The same way you where doing it with subclassing QWidget - by overloading the paintEvent().
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
look at QWidget::setContentsMargins ( )
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks