Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Italian
  4. Estrarre serie da una lista
Qt 6.12 LTS is out! See what's new in the release blog

Estrarre serie da una lista

Scheduled Pinned Locked Moved Solved Italian
2 Posts 2 Posters 1.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • PollyP Offline
    PollyP Offline
    Polly
    wrote on last edited by
    #1

    Per un esercizio che sto facendo vorrei creare questa sequenza
    Ho un file txt estraggo i numeri di questo file e creo un grafico
    Sono riuscito ad aprire ed estrarre i numeri memorizzandoli in una lista di string con QlistString
    Solo che adesso vorrei poter estrarre i numeri di questa lista per creare la serie.
    Come posso fare?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2
      QVector<double> numeri;
      for(const QString& val : list)
      numeri << val.toDouble();
      

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved