Results 1 to 20 of 21

Thread: About Creating .sis for Nokia

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #15
    Join Date
    Sep 2009
    Location
    Finland
    Posts
    63
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    1
    Thanked 22 Times in 19 Posts

    Default Re: About Creating .sis for Nokia

    First, add few checks to your implementation (if you do not have those already)

    Qt Code:
    1. // Ensure QSQLITE driver is supported
    2. if (!QSqlDatabase::drivers().contains("QSQLITE")) { // Print something ... }
    To copy to clipboard, switch view to plain text mode 
    And then you could try next way to access DB file:
    Qt Code:
    1. mDB.setDatabaseName("databases/juicemania.db");
    To copy to clipboard, switch view to plain text mode 
    Because the default folder is your private folder there is no need to access your files via applicationDirPath -method. And last thing is that after failing to open DB, print information about the error using QSqlDatabase::lastError maybe that will reveal more about what is the problem with the open.

    Also in your case return value from
    Qt Code:
    1. QFile::exists("databases/juicemania.db")
    To copy to clipboard, switch view to plain text mode 
    should be true if the file is in the correct location.

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

    axel07 (8th December 2010)

Similar Threads

  1. Apple vs Nokia
    By high_flyer in forum General Discussion
    Replies: 2
    Last Post: 30th November 2010, 05:35
  2. Qt installation on Nokia N78
    By Alteros in forum Installation and Deployment
    Replies: 3
    Last Post: 8th November 2010, 14:21
  3. Nokia to cut 1,800 jobs
    By TorAn in forum General Discussion
    Replies: 2
    Last Post: 25th October 2010, 22:16
  4. Nokia Open C++ Download
    By Granty in forum Newbie
    Replies: 6
    Last Post: 19th October 2010, 22:33
  5. Nokia N810
    By QTInfinity in forum Installation and Deployment
    Replies: 1
    Last Post: 6th March 2009, 13:12

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.