[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    KJanusWidget problem (also with noatun/kopete): showstopper?
From:       Ravikiran Rajagopal <ravi () ee ! eng ! ohio-state ! edu>
Date:       2002-11-08 16:10:59
[Download RAW message or body]

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

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic