View Full Version : problem with layout direction and QFileDialog

10th May 2011, 17:44
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:

QApplication app(argc, argv);
MainWindow *mainWin = new MainWindow;
return app.exec();

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:

QFileDialog::getExistingDirectory(this, tr("Select Directory"), QDir::home().path());

Any solution to this.

Thanks in advance.

My Qt version: 4.7
My OS: OpenSUSE 11.4