Results 1 to 8 of 8

Thread: Program crash when a signal is emitted

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Program crash when a signal is emitted

    I don't have MySQL installed, so I can't test it. Anyway, you should really do some reading. Instead of your custom classes you should use QSqlTableModel and QDataWidgetMapper. All your wrappers are completely redundant.

    By the way, naming files using mixed case names is a really bad habit, try to avoid it.

    Here is some code for you to play with... Oh... try changing the values in the field - they actaully get stored in the database.
    Attached Files Attached Files

Similar Threads

  1. Replies: 5
    Last Post: 27th April 2009, 23:29
  2. Replies: 2
    Last Post: 16th August 2007, 00:20
  3. creating treeWidgetItem using emitted signal from thread class
    By santosh.kumar in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2007, 08:37
  4. Replies: 5
    Last Post: 9th March 2007, 12:51
  5. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.