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. SQL widgets in QT4-designer?
Forum Updated to NodeBB v4.3 + New Features

SQL widgets in QT4-designer?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.9k 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.
  • L Offline
    L Offline
    Loki9
    wrote on 18 May 2012, 18:39 last edited by
    #1

    Hi-

    I'm new to Qt and I'm trying to build a application (in Python) that will pull data from a MySQL DB. I'm trying to use Qt4 Designer to build a form where I will have a table populated from the DB. Looking at Qt3 docs, it seems that I could have dropped a widget like QDataTable onto my form, but this has changed in Qt4 and I can't figure out how to proceed. Some docs have pointed me to using QDataWidgetMapper, but I can't find this in Qt4 Designer?? When I search for help I find nice tutorials to do what I want, but only using Qt3.

    Note that I'm not using Qt Creator, rather I'm using Qt Designer from within eric4.

    Thanks for any help!

    -Jeff Taylor

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tim.sullivan
      wrote on 18 May 2012, 18:57 last edited by
      #2

      Hi Jeff,

      I'm quite new to Qt as well, but I am currently working on a very similar project.
      It seems the most straightforward approach is to populate a QTableView widget, row by row.

      Take a look at the SQL Browser tutorial included in Qt 4.7 or "here":http://doc.qt.nokia.com/4.7-snapshot/demos-sqlbrowser.html

      Best of luck,

      Tim

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Loki9
        wrote on 21 May 2012, 14:16 last edited by
        #3

        Thanks Tim, I'll try that approach.

        -Jef

        1 Reply Last reply
        0

        1/3

        18 May 2012, 18:39

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved