Hi,

i want to connect a QPushButton to a slot create(QSqlDatabase *database), but i get the following:
Qt Code:
  1. QObject::connect: Incompatible sender/receiver arguments
  2. QPushButton::clicked() --> CreateCupDialog::create(QSqlDatabase*)
To copy to clipboard, switch view to plain text mode 
Do i have to change my slot to create() because the button cant send a QSqlDatabase* type? how do i get my pointer passed to the functions executed in create()?

thanks for your help.