maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Qt "getOpenFileName" caption not working? (https://talk.maemo.org/showthread.php?t=93044)

Copernicus 2014-04-17 20:49

Qt "getOpenFileName" caption not working?
 
Here's an obscure Qt question (this is Qt 4.8 with the Maemo toolchain) -- I'm making a call to QFileDialog::getOpenFileName(), and while the call works just fine, I cannot for the life of me get it to change the caption of the dialog box. (This is the second parameter to the call.) All I ever get is the default "Open File" caption. Anybody have an idea why this would be?

Here's the call itself:

Code:

  QString filename = QFileDialog::getOpenFileName(
    0,
    tr("Select Macro XML File"));


marxian 2014-04-17 23:29

Re: Qt "getOpenFileName" caption not working?
 
I don't think the Hildon FileChooserDialog (which is what is created when using the static QFileDialog methods) has an option to set the caption/title, so that paramater will not be used in QtMaemo5.

When opening an existing file, the Hildon FileChooserDialog is constructed like this:

Code:

Hildon::FileChooserDialog dialog(*this, Gtk::FILE_CHOOSER_ACTION_OPEN);
See http://maemomm.garage.maemo.org/docs...serDialog.html.


All times are GMT. The time now is 12:22.

vBulletin® Version 3.8.8