[Qt-jambi-interest] Strange behavior of QFileDialog
José Arcángel Salazar Delgado
arcangel.salazar at gmail.com
Thu Aug 6 00:49:01 CEST 2009
Hello,
in the previous version of jambi (4.5.0_1) a was using this code to give a
default filename:
String file = QFileDialog.getSaveFileName(null, "guardar archivo",
Gerente.last().getNombreCompleto() + "-"
+
calendar.get(Calendar.DAY_OF_MONTH) + "-"
+ calendar.get(Calendar.MONTH)
+ "-"
+ calendar.get(Calendar.YEAR)
+ ".zip",
new QFileDialog.Filter("Archivos Zip
(*.zip)"));
but now, this code does not work in jambi 4.5.2_1.
Instead of giving a default filename, the line edit appears empty.
Currently, im using this workaround:
File file1 = new File(Gerente.last().getNombreCompleto() + "-" +
calendar.get(Calendar.DAY_OF_MONTH) + "-"+ calendar.get(Calendar.MONTH) + "-"+
calendar.get(Calendar.YEAR) + ".zip");
String file = QFileDialog.getSaveFileName(this, "Guardar
archivo",
file1.getAbsolutePath(),
new QFileDialog.Filter("Archivos Zip
(*.zip)"));
i dont know if this is intentional or a bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-jambi-interest/attachments/20090805/49e8203f/attachment.html
More information about the Qt-jambi-interest
mailing list