QFileDialog is a class from the Qt toolkit which provides a dialog allowing users to select files or directories.
Questions tagged [qfiledialog]
367 questions
-1
votes
1 answer
How can I find the popped up QFiledialog when I click file input in the QWebView?
QApplication.postEvent(object, press)
I want to simulate the keypress and mousepress in the select file dialog, which is popped up by clicking file input in the QWebView. I don't know what the object is. Any ideas on how to obtain it?

fox
- 36
- 2
-1
votes
1 answer
QFileDialog - need correct
I'm new to "C++ with Qt" programming, so I need help.
#include
#include
#include
#include
#include
#include
#include
#include
#include…

newfag
- 19
- 4
-1
votes
1 answer
qt check if file exists in a directory, if it doesn't prompt the user for its location, then copy the file to the program working directory
I have a program who's working directory is ~/Library/Application Support/MyApp, it looks here for the config.cfg and log files. The program needs a map file called MP512-Map.map. It looks in this directory to load it.
When the program is first run…

Mitchell D
- 465
- 8
- 24
-1
votes
1 answer
QFileDialog filter out paths based on location
I have a QFileDialog and I want to filter out all paths that are not in ~/Documents.
Current have
from PyQt5 import QtCore
import os
...
dialog =…

mingxiao
- 1,712
- 4
- 21
- 33
-2
votes
2 answers
How to save a text file directly without using QfileDialog box?
This is my sample UI, the white box is a textbox which will have some items, my main question is that when i click "Save/Refresh" qpushbutton, i want to save all of the qtextbox text into a textfile/sample_name.xml into a designated folder, but i…

Mr_Workalot
- 37
- 7
-2
votes
2 answers
How to order the files the way it is selecting in pyqt?
i have code which can select multiple files and print their names. But i found that they are not in order in which i am selecting them. say for example if i have file name as file1,file2,file3and if i first select file2 then file3 then file1 while…

Ramakanta Chandra
- 51
- 2
- 11
-2
votes
1 answer
PyQt: return value of QFileDialog.getOpenFileName
file = QtWidgets.QFileDialog.getOpenFileName()
I have used the above to get the path of a file. The output is:
('D:/test images/test13.jpg', '')
What should i do to get the output as: 'D:/test images/test13.jpg'?

Shreya Gaddam
- 33
- 1
- 8