[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main
 parent


foreach()
by standsolid on Thursday 08/Jul/2004, @13:27
has qt always had 'foreach' iterators or is this new in qt4?


I can't wait for qt4
/me drools
  Related Links
 ·   Articles on Qt
 ·   Also by standsolid
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Re: foreach()
by Andre Somers on Thursday 08/Jul/2004, @13:57
It's new in qt4.
[ Reply To This | View ]
  • Re: foreach()
    by MandrakeUser on Friday 09/Jul/2004, @07:32
    They really feel like python looks right ? Cool!


    #### Python:

    for s in a_list:
    sum += len(s)

    #### Qt4:
    (http://doc.trolltech.com/qq/qq09-qt4.html)

    foreach (QString s, list)
    sum += s.length();
    [ Reply To This | View ]
    • Re: foreach()
      by MandrakeUser on Friday 09/Jul/2004, @08:40
      Errata: I meant so say "python loops". Oh, and the indentation got eaten by the text formatting ;-)
      [ Reply To This | View ]

 
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "Karate is the ideal counterpart to programming and really great to get your head cleared." -- Michael Brade
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]