Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How does QTreeWidget parse SQL tables?

How does QTreeWidget parse SQL tables?

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.3k 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.
  • S Offline
    S Offline
    SatelliteEyes
    wrote on last edited by
    #1

    Hi, I'm debugging some legacy code (PyQt 4.4.4 and Python 2.7, ugh) and I need a QTreeWidget to access an existing mySQL database and display the rows of a certain table as topLevelItems with the columns in the QTreeWidget holding the column entries of the mySQL table.

    So far, I have a situation where the QTreeWidget grabs the correct row, but then displays one letter per column, which is a bit silly.

    This is the first QTreeWidget I've ever written, so I think that the problem may be a case of me not understanding how the widget parses input. Is there a way to control this?

    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