Qt-interest Archive, March 2002
[no subject]
Message 1 in thread
Hi,
I'm really new to programming with c++ and programming
with Q, so don't so hard to me =)
I have a problem: I have two big classes with their
own paintEvent(). The question is how can I make the
painting of each object sits on the same window?
my attempt: I declared a QWidget object as a container
in my main() and let it be the parent of the objects I
mentioned above.
result: nothing. blank window.
thank you very much.
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
Message 2 in thread
Checkout QWidget::raise(), QWidget::show(), QWidget::setGeometry(), and
QWidget::repaint()
Convince yourself that your widgets are placed somewhere sensible.
Put a qDebug() or printf statement in your implementation of paintEvent() to
see if it is being called.
--
[ signature omitted ]