[Qt-interest] Adding a paint event to a Designer widget
Andreas Pakulat
apaku at gmx.de
Sat Dec 27 12:40:24 CET 2008
On 27.12.08 19:07:10, Phil wrote:
> On Wednesday 24 December 2008 23:41:11 Andreas Pakulat wrote:
> >
> > I can't see any obvious error in the code you posted, so maybe post the
> > complete example so somebody else can try it out...
> >
> > I can't see any obvious error in the code you posted, so maybe post the
> > complete example so somebody else can try it out...
> >
>
> Thanks again Andreas.
>
> It would be really great if someone could take a look at the attached example.
>
> The frame used to be displayed on the main window dialog before I promoted the
> frame and I expect that I've made a simple omission.
>
> MyFrame's paint event is called but nothing is painted which is to expected
> since the frame isn't displayed.
I'm not sure what the exact problem is, but moving the text down and to the
left causes it to appear. Might be that 0,0 is considered part of the
border or something like that. This also happens when using QWidget as base
class so its not the frame from QFrame...
Andreas
--
Your fly might be open (but don't check it just now).
More information about the Qt-interest-old
mailing list