c++ - Can I map lists in QT? -


It's already quite a bit, but it would be great if I could map the list of La Rouby. Say I have a Castrestrialist, Mystlist List, in which there are things like "12.3", "-213.0", "9.24". I just want to map everything without duplicating. Does QT have any way to do this?

  // e. The following Nob Qt Advantage QList & lt; Double & gt; MyDoubleList; FurHeach (Qestring S, Mystigilist) {myDoubleList.append (s.toDouble ()); }  

As far as I can tell, an interface with standard in QT containers Container, then you should be able to use standard algorithms on them. In this case,

  std :: convergence (myStringList.begin (), myStringList.end (), std :: back_inserter (myDoubleList), std :: mem_fun (& amp; QString:: to double));  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -