Dear Friends,
I want to reduce the size of QFileDialog , i tried using setFixedsize(x,y) function but the dialog size is not changing. the code is given below.
Code:
file->setFixedSize(320,240);
thanks
Regards Askar
Printable View
Dear Friends,
I want to reduce the size of QFileDialog , i tried using setFixedsize(x,y) function but the dialog size is not changing. the code is given below.
Code:
file->setFixedSize(320,240);
thanks
Regards Askar
getOpenFileName is a static function. It will call the native dialog. So am afraid you might not be able to resize it. Am not sure though.
Us the below code and try it
Code:
QFileDialog dlg; dlg.setWindowTitle("Open"); dlg.setDirectory("/"); dlg.resize(320,240); dlg.exec();