Hi All,
I have developed an application witch use QMainWIndow, QWizard and other graphical elements.

I determine layout direction of my application in the main method:
Qt Code:
  1. QApplication app(argc, argv);
  2. app.setLayoutDirection(Qt::RightToLeft);
  3. MainWindow *mainWin = new MainWindow;
  4. mainWin->show();
  5. return app.exec();
To copy to clipboard, switch view to plain text mode 
when I run application, at first all things is correct and layout direction of all dialogs and wizards is correct.
When I open a QDialogFile in my application, all layout directions change to "left to right"!
I dont know why layout direction change?
I open a file chooser with static methods of QFileDialog class:
Qt Code:
  1. QFileDialog::getExistingDirectory(this, tr("Select Directory"), QDir::home().path());
To copy to clipboard, switch view to plain text mode 

Any solution to this.

Thanks in advance.

My Qt version: 4.7
My OS: OpenSUSE 11.4