unable to maximize QfileDialog in stackwidget
I try to open a video file with QfileDialog but that dialog pop out with small dimensions in centre of its parent widget.How I can open file dialog maximized as default.
Here is some code:
player::player(QWidget parent) :
video_dialog = new QFileDialog(this);
video_location = video_dialog->getOpenFileName(this,tr("Open File"),"/home/apaul/Videos", tr("Video-Files ()"),0);
if I use :
then it popped up as maximized but how can I get selected filename from that.
I already used it but problem is showing the dialog in maximized mode.
Hi and welcome to devnet,
getOpenFileNames is a static method that uses the native file dialog. So the parameters you are modifying have not incident when allying getOpenFileNames.
selectedFiles will return what you have selected.
Hope it helps
Thanks @SGaist for help;;;;
I tried it and succeeded but there is one problem.I want to show FileDialog as full screen with no buttons on top left and no title bar.How can I do this?
Set the Qt::FramelessWindowHint on your dialog