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. [solved]QStringlist & Qtablewidget
Forum Updated to NodeBB v4.3 + New Features

[solved]QStringlist & Qtablewidget

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.4k 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.
  • D Offline
    D Offline
    devfeel
    wrote on last edited by
    #1

    Can I populate a qtablewidget or qtable view with a qstringlist...?
    thanks

    used this link
    http://www.qtforum.org/article/34154/qtablewidget-filling-itself-reading-from-csv-files.html?s=98cc4783457c9c0d2298e75069fd5694555f2ed8#post109574

    1 Reply Last reply
    0
    • H Offline
      H Offline
      henryxuv
      wrote on last edited by
      #2

      what do you want to do? You can see the QStringListModel class.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giesbert
        wrote on last edited by
        #3

        Can you please specify this a bit more?
        a string list is a list, not a table
        so, if you use a "QStringListModel":http://qt-project.org/doc/qt-4.8/qstringlistmodel.html you can use that in a view, is that what you are looking for? But then I would use a QListView for displaying it.

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        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