KJanusWidget problem (also with noatun/kopete): showstopper?
Ravikiran Rajagopal
ravi at ee.eng.ohio-state.edu
Fri Nov 8 16:10:59 GMT 2002
Hello,
There seems to be a problem in qSmartMinisize in Qt-copy or kdelibs HEAD
that affects quite a few applications. Specifically this triggers a crash on
exit in noatun & kopete atleast. I cannot verify whether this is KDE-related
or Qt-related. Here is example code that works perfectly with Qt-3.0.5 and
KDE-3.0.3 but crashes & burns on Qt-copy and CVS HEAD:
--------------------------------------------------------------------------------
#include <kapplication.h>
#include <kjanuswidget.h>
#include <qhbox.h>
#include <qstringlist.h>
#include <qtextedit.h>
int main( int argc, char **argv )
{
KApplication app( argc, argv, "Testing" );
KJanusWidget wid(0,0,KJanusWidget::TreeList);
app.setMainWidget( &wid );
QStringList list1, list2;
list1 << "level1" << "page";
list2 << "level2" << "page";
QHBox *box1, *box2;
box1 = wid.addHBoxPage(list1);
new QTextEdit(box1);
box2 = wid.addHBoxPage(list2);
new QTextEdit(box2);
wid.show();
delete box1;
return app.exec();
}
--------------------------------------------------------------------------------
Is there a workaround for this? Or should we bug the trolls?
Ravi
More information about the kde-multimedia
mailing list