Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Merging splitted lines of a stringlist in a single string
Forum Updated to NodeBB v4.3 + New Features

Merging splitted lines of a stringlist in a single string

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 638 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    Manfredi
    wrote on last edited by
    #1

    Hello, thanks in advise for help, i would have liked to know if its possible to do something like this

    QStringList mylist = this->ui.plaintextedit->toPlainText().split("\n")

    QString allthelines = (line1 + "/" + line2 + "/" + linen + ...)

    thanks

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dbzhang800
      wrote on last edited by
      #2

      QStringList::join()

      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 Extensions
      • Unsolved