Results 1 to 2 of 2

Thread: QSqlTableModel showing view

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Posts
    201
    Thanks
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QSqlTableModel showing view

    Dear All

    I have a QSqlTableModel, showing a view in a SQL.

    This is the story.

    Users opens a widget see the table (like id=1),
    Users opens the new widget see table with different search (like id=2)
    Sorts the table with id = 2
    Sorts the table with id = 1
    both table becomes the same model. This is because we use create and replace view, Is there a way to solve this?

  2. #2
    Join Date
    Jan 2007
    Posts
    201
    Thanks
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QSqlTableModel showing view

    any solution?

Similar Threads

  1. Replies: 4
    Last Post: 7th August 2009, 21:09
  2. Showing GUID keys in Standart View Classes
    By Rus in forum Qt Programming
    Replies: 7
    Last Post: 18th April 2008, 15:35
  3. Replies: 5
    Last Post: 21st November 2007, 20:38
  4. Model-view: Creating a custom view
    By taboom in forum Qt Programming
    Replies: 5
    Last Post: 17th August 2007, 20:36
  5. Showing QMainWindow without showing a child QWidget
    By discostu in forum Qt Programming
    Replies: 3
    Last Post: 4th March 2007, 09:03

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.