QFileDialog::getExistingDirectory dialog display in center of widget
-
Hi,
I am using QFileDialog::getExistingDirectory dialog my project. this dialog display in middle of the PC screen. i want display dialog box for my application widget center. how to change?
following code for display from middle of the pc screen
@QString dir = QFileDialog::getExistingDirectory(this, tr("Open Directory"),
" ",
QFileDialog::ShowDirsOnly
| QFileDialog::DontResolveSymlinks);@Regards,
M.Mathi -
It is not clear, what are you trying to do? If you need to display your own windows at the center of the screen you can do something like "this":http://qt-project.org/wiki/Center_and_Resize_MainWindow.