Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Java by paste ( 14 years ago )
protected void Guardar(){ 

String fileName = QFileDialog.getSaveFileName(this); 

if (!fileName.isEmpty()) { 

QFile file = new QFile(fileName); 

if (!file.open(new QFile.OpenMode(QFile.OpenModeFlag.WriteOnly, 

QFile.OpenModeFlag.Text))) { 

QMessageBox.warning(this, tr("Guardar Documento"), 

String.format(tr("El fichero %1$s no pudo ser escrito:n%2$s."), 

fileName, file.errorString())); 

return; 

}

 

Revise this Paste

Your Name: Code Language: