Results 1 to 8 of 8

Thread: Program crash when a signal is emitted

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2008
    Location
    Brasil - São Paulo - Marília
    Posts
    28
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    3
    Thanked 1 Time in 1 Post
    Wiki edits
    3

    Default Re: Program crash when a signal is emitted

    I'm attaching the full source code.

    Caduel if you have a free time, please have a look in it.

    Thanks.
    Attached Files Attached Files

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

    Default Re: Program crash when a signal is emitted

    I just had a brief look at your code. Have you seen a class called QDataWidgetMapper? I think you are trying to do something which is already in Qt.

  3. #3
    Join Date
    Oct 2008
    Location
    Brasil - São Paulo - Marília
    Posts
    28
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    3
    Thanked 1 Time in 1 Post
    Wiki edits
    3

    Default Re: Program crash when a signal is emitted

    I will see if this class has all that I need. But about the error, any ideas?

    Thanks, for you reply!

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    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
  •  
Qt is a trademark of The Qt Company.