Results 1 to 9 of 9

Thread: Does QDataWidgetMapper lock sqlite and prevent write by other applications?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Does QDataWidgetMapper lock sqlite and prevent write by other applications?

    Well, it is almost certainly not related to QDataWidgetMapper at all. This class can work with any QAbstractItemModel implementation and does not know anything about databases in general or SQLite in partiuclar.

    However: SQLite databases are files, so for example on operating systems that lock files on open (only Wndows has such a limitation as far as I know), one process opening the database will lockout any other.
    On operating systems that allow multiple processes to open a file, it could still be something that the SQLite library does in order to ensure data integrity. It could also be something that the Qt SQLite driver QSQLite does.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    Al_ (3rd March 2014)

Similar Threads

  1. Replies: 1
    Last Post: 25th April 2013, 14:55
  2. Replies: 2
    Last Post: 14th November 2011, 11:24
  3. sqlite read lock.
    By gilgm in forum Qt Programming
    Replies: 6
    Last Post: 18th June 2010, 05:58
  4. sqlite write security
    By lesat in forum Qt Programming
    Replies: 0
    Last Post: 28th April 2010, 05:05
  5. SQLite + journal + lock
    By NoRulez in forum Qt Programming
    Replies: 4
    Last Post: 14th December 2009, 08:25

Tags for this Thread

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.