fruzzo
19th October 2009, 13:41
Hi,
I want create a new widget like a QFrame but with a customized frame, something like this one:
http://www.verdeblu.gr/italian/top_right_frame_np.jpg
My idea is to inherit from QWidget, insert a QFrame in its vertical layout and overide the QWidget::printEvent and draw my custom frame around the QFrame but I've some problems with the the right size of the QFrame.
Is there a better way to do my task?
Obsviously, than I want to be enabled to insert other widgets inside the white space like in a standard QFrame...
I want create a new widget like a QFrame but with a customized frame, something like this one:
http://www.verdeblu.gr/italian/top_right_frame_np.jpg
My idea is to inherit from QWidget, insert a QFrame in its vertical layout and overide the QWidget::printEvent and draw my custom frame around the QFrame but I've some problems with the the right size of the QFrame.
Is there a better way to do my task?
Obsviously, than I want to be enabled to insert other widgets inside the white space like in a standard QFrame...