Has "widget" been instantiated at the point where this slot is connected (not invoked)? If you are passing a bogus pointer into the connect call, the slot is getting called on a bogus instance. What is the value of "this" when you step inside the slot? Does it look reasonable, and does it match the value of "widget" created by MainWindow?this->widget
Bookmarks