Results 1 to 2 of 2

Thread: QCoreApplication And QSqlDatabase

  1. #1
    Join Date
    Jan 2006
    Posts
    75
    Thanks
    3
    Thanked 5 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default QCoreApplication And QSqlDatabase

    When I make a QCoreApplication console based application I want to use the QtSql modules for my work to do database access. Everything works fine for this, however when I press the 'X' button in the top-right corner of the console window to close the console program, it prompt for 'Access Violation'. From debug mode in Visual Studio, it shows that the problem is from the 'close()' function in 'QSqlDatabase' source file.

    Anyway can help me solve this? Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: QCoreApplication And QSqlDatabase

    Can we look in your code ?
    a life without programming is like an empty bottle

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.