>>>>> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
>>>>> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc> Now, I know what happens, but I do not know why. I fear Jean-Marc> this may be a compiler bug, and anyworkaround would be Jean-Marc> welcome. Basically the problem is in Jean-Marc> QWorkArea::QWorkArea(int, int, int, int) : WorkArea(), Jean-Marc> QWidget(qApp->mainWidget()), painter_(*this) { scrollbar_ = Jean-Marc> new QScrollBar(QScrollBar::Vertical, this); content_ = new Jean-Marc> QContentPane(this); [...] Jean-Marc> gdb says: Jean-Marc> (gdb) p scrollbar_ $1 = (QScrollBar *) 0xf Jean-Marc> which is obviously bogus. Then in QContentPane constructor, Jean-Marc> the code tries to access *(wa_->scrollbar_) and dies. Jean-Marc> I tried to recompile QWorkArea.C with no optimization, but Jean-Marc> it did not help. I tried to debug this further and did not come to any useful result. I have a question though: is it reasonable to make QWorkArea a QWidget as well as a Workarea? Why doesn't it have a widget_ member that would point to the Qt widget? I wonder whether there could be a clash between methods from both objects, although I failed to see common methods/members names between the two classes. JMarc