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

List:       kde-devel
Subject:    QStringList problem
From:       Christian Schaarschmidt <schaarsc () gmx ! de>
Date:       2006-11-17 20:36:32
Message-ID: 200611172136.32393.schaarsc () gmx ! de
[Download RAW message or body]

Hi,

I have a little problem with QStringList from qt-copy.
Has anybody seen such behaviour before and can give me some advice or 
workaround?
Thank you!

Christian

########### small example ################
  QStringList l;
  l << "item";
  QStringList::Iterator iter = l.begin();
  kDebug(0)<<"iter before insert="<<*iter<<endl;
  l.insert( iter, "ins" );
  kDebug(0)<<"iter after insert="<<*iter<<endl;
  ++iter;
  if ( iter == l.end() ) {
    kDebug(0) << "iter at the end"<<endl;
  } else {
    kDebug(0) << "iter not at the end" <<endl;
    kDebug(0) << *iter << endl;
  }
############################
kmail: iter before insert=item
kmail: iter after insert=item
kmail: iter not at the end
*** KMail got signal 11 (Crashing)
 
>> 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