Results 1 to 15 of 15

Thread: QSqlQueryModel::setQuery - SIGSEGV

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2008
    Posts
    33
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    5

    Default Re: QSqlQueryModel::setQuery - SIGSEGV

    Update:
    The same bug rears its ugly head in this snippet:

    Qt Code:
    1. sourcesTableModel = new QSqlTableModel();
    2. sourcesTableModel->setTable("videosource");
    3. sourcesTableModel->select(); //BANG! SIGSEGV
    To copy to clipboard, switch view to plain text mode 

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

    Default Re: QSqlQueryModel::setQuery - SIGSEGV

    I assure you I'm working with QtSQL almost every day and such statements work just fine Your problem is related strictly to your installation and/or the version of Qt and/or MySQL you are using. If changing the version of Qt doesn't help, try changing the version of MySQL client library you are using.

  3. #3
    Join Date
    Nov 2008
    Posts
    33
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    5

    Default Re: QSqlQueryModel::setQuery - SIGSEGV

    Thanks wysota - I had similar feedback from QT support regarding my bug report yesterday so I tried the latest snapshot; it works perfectly.

    There had been several developments in qsql_mysql.cpp since the Beta1 release which were directly concerned with my problem.

Similar Threads

  1. QAbstractSocket::abort() with SIGSEGV
    By mtrpoland in forum Qt Programming
    Replies: 1
    Last Post: 24th February 2008, 18:05
  2. Program crashes (SIGSEGV)
    By Voldemort in forum Qt Programming
    Replies: 47
    Last Post: 21st May 2007, 21:09
  3. QUrlOperator doesn't emit finished signal
    By hayati in forum Qt Programming
    Replies: 16
    Last Post: 26th March 2007, 21:25

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.