Results 1 to 3 of 3

Thread: Creator 2.0 problem

  1. #1
    Join Date
    May 2009
    Location
    USA
    Posts
    300
    Thanks
    82
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Creator 2.0 problem

    Just installed Creator 2.0 and found that it is creating the sqlite files in the <project> directory instead of <project>/debug where the old version used to.

    Can't seem to find any settings to change this behavior.
    Any suggestions?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Creator 2.0 problem

    add an absolute file path to your source code where you create/load your sqlite file. See [WIKI]Current working directory[/WIKI]

  3. #3
    Join Date
    May 2009
    Location
    USA
    Posts
    300
    Thanks
    82
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Creator 2.0 problem

    I don't see any method to implement your first suggestion Lykurg, however adding the following

    QDir dir(QCoreApplication::applicationDirPath());
    QDir::setCurrent(dir.absolutePath();

    fixed the problem:

Similar Threads

  1. Problem with Qt Creator
    By Qt Coder in forum Qt Programming
    Replies: 1
    Last Post: 8th June 2010, 13:48
  2. problem with qt creator
    By mmm286 in forum Newbie
    Replies: 1
    Last Post: 24th May 2010, 16:12
  3. qt creator debugging problem
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 16th December 2009, 22:10
  4. QT Creator problem with examples
    By maccabees in forum Newbie
    Replies: 6
    Last Post: 27th July 2009, 19:19
  5. A build problem in Qt creator 1
    By Dante in forum Qt Programming
    Replies: 6
    Last Post: 13th March 2009, 18:37

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.