Re: SaveFile-Dialog
Sybren Stüvel <[email protected]>
| Newsgroups | gmane.comp.handhelds.opie.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Dec 04, 2006 at 05:49:19AM +0100, Florian Erfurth wrote:
> I did try with QFileDialog (#include <qfiledialog.h>:
Ok, _Q_FileDialog
> QString fileName = OFileDialog::getSaveFileName( this , , "newfile.txt", );
Here you use _O_FileDialog.
> speech2textImpl.cpp:16: error: `OFileDialog' undeclared (first use this
> function)
And once you've seen that, this error message seems to make sense ;-)
> void speech2textImpl::SaveText_slot()
> {
> QMessageBox::information( this, "Speech2Text Info", "Under Construction", QMessageBox::Ok );
>
> QString fileName = OFileDialog::getSaveFileName( this , , "newfile.txt", );
>
> /*
> QString fileName = OFileDialog::getSaveFileName( "newfile.txt", "Textfiles (*.txt)", this );
>
> QString fileName = QFileDialog::getSaveFileName( "newfile.txt", "Textfiles (*.txt)", this );
> if ( !fileName.isNull() )
> {
> //file saved
> } else {
> //file not saved
> }
> */
> }
There you go. You used to write QFileDialog, then moved to
OFileDialog. Quite easy to miss, especially late at nigh ;-)
Greetings,
--
Sybren Stüvel, B.Sc.
Stüvel IT
http://www.stuvel.eu/
_______________________________________________
http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex
Opie-devel mailing list
[email protected]
https://handhelds.org/mailman/listinfo/opie-devel
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFFc9kqNIPvGICzDyQRAiGhAKDQNyVS2zn95u+Me0jCulA+alAa3gCcDeDf Lpr0M6XpINWBQIAx4thLdZ0= =ZkJZ -----END PGP SIGNATURE-----