Qt 3 Support Members for QFileDialogThe following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code. Public Functions
Static Public Members
Member Function DocumentationQStringList QFileDialog::filters () constUse nameFilters() instead. See also setFilters(). QString QFileDialog::getExistingDirectory ( const QString & dir, QWidget * parent = 0, const char * name = 0, const QString & caption = QString(), bool dirOnly = true, bool resolveSymlinks = true ) [static]This is an overloaded member function, provided for convenience. Use the getExistingDirectory() overload that takes parent as the first argument instead. QString QFileDialog::getOpenFileName ( const QString & dir, const QString & filter = QString(), QWidget * parent = 0, const char * name = 0, const QString & caption = QString(), QString * selectedFilter = 0, bool resolveSymlinks = true ) [static]This is an overloaded member function, provided for convenience. Use the getOpenFileName() overload that takes parent as the first argument instead. QStringList QFileDialog::getOpenFileNames ( const QString & filter, const QString & dir = QString(), QWidget * parent = 0, const char * name = 0, const QString & caption = QString(), QString * selectedFilter = 0, bool resolveSymlinks = true ) [static]This is an overloaded member function, provided for convenience. Use the getOpenFileNames() overload that takes parent as the first argument instead. QString QFileDialog::getSaveFileName ( const QString & dir, const QString & filter = QString(), QWidget * parent = 0, const char * name = 0, const QString & caption = QString(), QString * selectedFilter = 0, bool resolveSymlinks = true ) [static]This is an overloaded member function, provided for convenience. Use the getSaveFileName() overload that takes parent as the first argument instead. FileMode QFileDialog::mode () constUse fileMode() instead. See also setMode(). void QFileDialog::selectFilter ( const QString & filter )Use selectNameFilter() instead. QString QFileDialog::selectedFile () constUse selectedFiles() instead. For example, if you have code like QString selected = dialog->selectedFile(); you can rewrite it as QStringList files = dialog->selectedFiles(); QString selected; if (!files.isEmpty()) selected = files[0]; QString QFileDialog::selectedFilter () constUse selectedNameFilter() instead. void QFileDialog::setDir ( const QString & directory )Use setDirectory() instead. void QFileDialog::setDir ( const QDir & directory )This is an overloaded member function, provided for convenience. Use setDirectory() instead. void QFileDialog::setFilter ( const QString & filter )This is an overloaded member function, provided for convenience. Use setNameFilter() instead. void QFileDialog::setFilters ( const QStringList & filters )Use setNameFilters() instead. See also filters(). void QFileDialog::setMode ( FileMode m )Use setFileMode() instead. See also mode().
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |