I have a strange behaviour here.
I have made a custom widget (qt3). It uses double buffer: a timer event fills a pixmap and then calls repaint(). Then a paintEvent copies the pixmap into the visible area.
The widget works if used standalone without problems.
I'm trying to make a bettere interface using a QVBoxLayout.
I have used q3-designer and I vave made a simple form with a QVBoxLayout and two widgets inside.
Then I modified the code adding manually the code for my widget.. I created an instance and added in the middle.
The problem is that I cannot see this widget. I can see both the labels up and down (they are much big... like they have stretched to fill all the space).
Nothing in the middle.
I have added some debug messages inside the timer event and it is correctly called. I have added the same messages on the paintEvent and I discovered that it is never called!!
It's like the two labels fill all the space and nothing needs to be painted for my widget.
More... I have given an implementation to sizeHint e minimumSizeHint in order to return a 640,400 Qsize.
I have lost a day with this problem
Can you give me a solution?
Thanks a lot!
Bookmarks