QFileDialog is a class from the Qt toolkit which provides a dialog allowing users to select files or directories.
Questions tagged [qfiledialog]
322 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?
![](../../users/profiles/5024688.webp)
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…
![](../../users/profiles/4984792.webp)
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…
![](../../users/profiles/4613431.webp)
Mitchell D
- 415
- 7
- 22
-1
votes
1 answer
How to set filter for directories in qfiledialog
I would like to know is there any way to select only some directories and some files at a time using QFileDialog class. Here I set filesfilter but I also need to set folder filter. I have folders which have sort of "extension" in their name (e.g.…
![](../../users/profiles/329734.webp)
sneha
- 1
- 1
-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 =…
![](../../users/profiles/1445618.webp)
mingxiao
- 1,414
- 3
- 17
- 31
-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…
![](../../users/profiles/12935104.webp)
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…
![](../../users/profiles/3564141.webp)
Ramakanta Chandra
- 29
- 1
- 10