I've just started using Qt and I'm creating a simple application that adds a button to the main window app and when I click the button, the application is closed. Even in this simple example I'm getting a weird message everytime I launch my application. I'm using qtsdk-2009.05 sdk in ubuntu 9.10. Could someone help me identify what is wrong with my code?
Here's the error:
** (<unknown>:8326): CRITICAL **: atk_object_set_name: assertion 'name != NULL' failed
Here's the code:
int main(int argc, char *argv)
QApplication app(argc, argv);
QPushButton *button = new QPushButton("Quit");
QObject::connect(button, SIGNAL(clicked()),&app, SLOT(quit()));