PDA

View Full Version : [Qt4] need help with QFileDialog



patcito
7th January 2006, 18:45
I wrote this funtion:

void GenerateInvoiceDialog::on_saveandPrintpushButton_c liked(){
QString s = QFileDialog::getSaveFileName(
this,
"Choose a filename to save under",
"/home",
"Images (*.html)");
}


unfortunately nothing happens when I click on my saveandPrintpushButton. Isn't that supposed to start a file dialog? Thanx in advance

Patcito

axeljaeger
7th January 2006, 18:57
try "clicked" instead of "cliked"

patcito
7th January 2006, 19:00
lol thanx, i must be tired.