Results 1 to 4 of 4

Thread: help in tableview

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2007
    Location
    Munich, Bavaria
    Posts
    144
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 19 Times in 19 Posts

    Default Re: help in tableview

    What look a bit strange for me is that you have two instances of QTableView and two instances of QSqlTableModel.

    Most likely the returned instance of QTableView of the method QTableView *database::initializeModel(QSqlTableModel *model) is senceless.

    Use the instance in the ui-class instead.

    Good luck

  2. #2
    Join Date
    Nov 2007
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1

    Default Re: help in tableview

    thanks for ur suggestion.
    please give me a sample code,
    as i am new to Qt and C++,
    i don't how to write for this instance.

    thanks a lot

  3. #3
    Join Date
    Oct 2007
    Location
    Munich, Bavaria
    Posts
    144
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 19 Times in 19 Posts

    Default Re: help in tableview

    Definition of instance: http://en.wikipedia.org/wiki/Instant...ter_science%29

    One thing shall be clear: this forum is here for teaching software development or programming. There a lot of good books out there:
    http://www.qtcentre.org/forum/f-gene...-books-29.html

Similar Threads

  1. Drag an item from QTreeWidget and drop in TableView
    By steg90 in forum Qt Programming
    Replies: 8
    Last Post: 18th May 2007, 11:42
  2. Replies: 15
    Last Post: 8th May 2007, 11:46
  3. tableview and layouts
    By zorro68 in forum Qt Programming
    Replies: 1
    Last Post: 10th February 2007, 17:21
  4. TreeView, TableView
    By rbrand in forum Qt Programming
    Replies: 1
    Last Post: 4th July 2006, 08:54
  5. Modified tableview
    By dkite in forum Qt Programming
    Replies: 2
    Last Post: 14th March 2006, 01:58

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.