correction:
the path with QSetting doesnt work
second one with QFileDialog::setHistory - doesnt work, too (as I said before).
As did I placed below:
step1. add public function to QFileDialog (yes, it should edit the Qt source)
Qt Code:
  1. //qfiledialog.h
  2. void clearCurrentHistoryLocation();
To copy to clipboard, switch view to plain text mode 
implementation:
Qt Code:
  1. //qfiledialog.cpp
  2. void QFileDialog::clearCurrentHistoryLocation()
  3. {
  4. this->setHistory(QStringList());
  5. d->clearCurrentHistoryLocation();
  6. }
To copy to clipboard, switch view to plain text mode 
step2. add function to QFileDialogPrivate
Qt Code:
  1. //qfiledialog_p.h
  2. void clearCurrentHistoryLocation();
To copy to clipboard, switch view to plain text mode 
implementation:
Qt Code:
  1. void clearCurrentHistoryLocation()
  2. {
  3. currentHistory.clear();
  4. currentHistoryLocation=-1;
  5. }
To copy to clipboard, switch view to plain text mode 
it works, I garantee that)