Results 1 to 3 of 3

Thread: Empty QSqlTableModel object

  1. #1
    Join Date
    Feb 2008
    Posts
    16
    Thanks
    3

    Default Empty QSqlTableModel object

    hello,

    I have this little nasty need to show a QSqlTableModel object in an application of a table that has data in it, but not to show that data. So, I only need to be able to insert new data without showing the data inserted before.

    thanks :/

    EDIT: Ah ah, didn't see that setRowHidden is there, I thought that there is only setColumnHidden. If you have better idea, propose, sure, thanks
    Last edited by gemidjy; 13th March 2008 at 23:47. Reason: updated contents

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Empty QSqlTableModel object

    A nice option could be to use QSortFilterProxyModel or its custom subclass.

  3. #3
    Join Date
    Feb 2008
    Posts
    16
    Thanks
    3

    Default Re: Empty QSqlTableModel object

    thanks wysota.

    cheers

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.