QFileDialog::getExistingDirectory dialog display in center of widget
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"),
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.
i want display dialog box in center of parent widget(main window)
[quote author="mathi77in" date="1336551528"]i want display dialog box in center of parent widget(main window)[/quote]
It could be an OS specific behavior.