Or, maybe the name of the slot match the autoconnect rules (i gave you a link in a previous post)
You can rename the slot: something like
void example::openDialog() //and connect with this slot name
{
//use the other class to instantiate the QDialog or the QDialog derived class (with or without ui)
hi *gamatos = new hi(this); //you need to pass 'this' as parent so that you don't get a memory leak
gamatos->show(); //you show the dialog
}
void example::openDialog() //and connect with this slot name
{
//use the other class to instantiate the QDialog or the QDialog derived class (with or without ui)
hi *gamatos = new hi(this); //you need to pass 'this' as parent so that you don't get a memory leak
gamatos->show(); //you show the dialog
}
To copy to clipboard, switch view to plain text mode
Or don't connect manually and let autoconnect do the connection
Bookmarks