Trolltech Home | Qt-jambi-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-jambi-interest Archive, September 2007
delete/replace layout manager


Message 1 in thread

Hi all,

I'm trying to replace a layout manager placed on a widget, but can't get it 
to work.
According to the documentation of the C++ version of Qt, you need to do 
"delete widget->layout()". Naturally, this can't be done in Java this way. I 
tried to use widget.layout().dispose() and even 
widget.layout().nativePointer().dispose(). The latter seems to set the 
layout() to null, but still, it complains an existing layout manager is 
installed if I subsequently call setLayout().

Any ideas?

Thanks in advance,
Sander