Reply
Thread Tools
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#1
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's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#2
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.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 

The Following 4 Users Say Thank You to marxian For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 11:24.