You can look into a signal mapper.
http://doc.qt.nokia.com/4.7/qsignalmapper.html
By the way, you're leaking memory.
You can look into a signal mapper.
http://doc.qt.nokia.com/4.7/qsignalmapper.html
By the way, you're leaking memory.
Okay, I'm editing my previous response because I'm brain dead tonight...Thanks for the suggestion about the signal mapping -- I was confused about widget mapping...I'll read up on this because I don't like I've coded it...
BTW, this isn't the completed code -- I guess I should have said that from the start, or at least yanked the SQL part out because I actually need to use a QSqlRelationalTableModel and plan to distribute that data to 2 TableViews...I was in the process of removing code from a failed experiment and just left it there for now...I should have yanked everything out of case 0 before posting...Sorry about the confusion...
Last edited by scott_hollen; 28th February 2011 at 01:23. Reason: My brain is mush
Bookmarks