qfiledialog Questions

2

Solved

I need to display QLineEdit with "Browse" button at my form. When user clicks button, QFileDialog should be opened, and so on. This is pretty common thing, but I can't find ready-made solution for...
Splayfoot asked 27/12, 2013 at 4:32

2

I am writing a simple code using pyqt In the code, I invoke a QFileDialog, however when I invoke it using the static functions all works fine, but with the normal method i.e. using dialog.exec_(),...
Mucilaginous asked 31/8, 2012 at 5:46

2

Solved

When using a QFileDialog to save a file and to specify the extension (like *.pdf) and the user types in a name without this extension, also the saved file hasn't this extension. Example-Code: QFil...
Collotype asked 23/12, 2009 at 16:1

2

Solved

Why "\" and "/" are mixed? os.getcwd() emits backslash string. On the other hand, QFileDialog emits forward slash string. Why? Example Please execute this sample code. from PySide import QtGu...
Hierology asked 22/8, 2018 at 1:12

4

1)I want to get the name of the folder for a folder monitoring Application.. Is there a way that i can filter out specific folders from being displayed using QFileDialog (For example i don't want t...
Presentable asked 20/1, 2010 at 11:57

3

Solved

Is there an equivalent of the lpstrDefExt member of OPENFILENAME struct used in the Win32 function GetSaveFileName? Here's description from MSDN: LPCTSTR lpstrDefExt The default extension. G...
Relinquish asked 29/8, 2011 at 18:41

4

Solved

Is it possible to show a QFileDialog where the user can select a file or a directory, either one? QFileDialog::getOpenFileName() accepts only files, while QFileDialog::getExistingDirectory() is d...
Southerland asked 17/12, 2014 at 7:29

5

Solved

Is there any way to directly browse to a folder using QFileDialog? Meaning, instead of double clicking on each folder while navigating to the destination folder, simply enter the path somewhere or...
Holusbolus asked 3/8, 2016 at 14:9

3

Solved

We're building a Qt Quick app, that must be able to save a file under a given name. In the FileDialog component you can only set a directory. This is not very user-friendly, since you don't want t...
Mondrian asked 30/11, 2013 at 16:45

3

Solved

I want to make a QT4 (using QT designer) dialog, that contains a part where a file has to be selected. Now, I know QFileDialog exists, and I can program something that does what I want. But can I ...
Sharkskin asked 7/7, 2010 at 15:36

4

I try to create "Save as..." dialog in Mac OS X. But I don't want to use QFileDialog::getSaveFileName() function, because dialog that created by this function is NOT truly-native in Mac O...
Pily asked 14/3, 2013 at 17:36

3

I have been working my way through Summerfields book on Rapid GUI programming with Python and QT (PyQt to be more precise), but the book from 2007 uses version 4.x and I am trying to get going with...
Israelisraeli asked 19/6, 2015 at 5:53

2

Solved

I am using pyQt4 and want to have a Browse button in my GUI which opens up a Dialog box allowing user to select multiple files AND folders. I have researched quite a bit but din't find any way to b...
Ossification asked 26/6, 2011 at 15:19

3

Solved

I would like to filter the files that are shown in a QFileDialog more specifically than just by file extensions. The examples I found in the Qt documentation only show filters like Images (*.png *....
Hypocorism asked 3/2, 2011 at 23:52

1

Solved

I'm creating my own custom file dialog using the following code: file_dialog = QtGui.QFileDialog() file_dialog.setFileMode(QtGui.QFileDialog.Directory) file_dialog.setViewMode(QtGui.QFileDialog.De...
Favus asked 27/7, 2016 at 22:29

2

Solved

(Windows 7 64 Bit, PyCharm 3.4.1 Pro, Python 3.4.0, PySide 1.2.2) I want to make a file dialog with filters and preselect one filter. If i use the static method, it works, i can use filters and p...
Confutation asked 16/1, 2015 at 22:48

1

Solved

I'm new to QT. Currently in my project I implemented QFileDialog. In my usecase : whenever user choose a text file, it executes functionA. However, I found that if I click cancel in the fileDialo...
Pros asked 26/5, 2015 at 2:59

1

Solved

I am trying to show a dialog box to open multiple files but seems like it is not working. The following is a function defined in my Class: def loadFiles(self): filter = "TXT (*.txt);;PDF (*.p...
Mandate asked 7/3, 2015 at 14:39

1

Solved

This question already exists here, but the answer appears outdated or no longer works as of Python 2.7. When I use this code to subclass my QFileDialog, the FileDialog class init is called, but th...
Hedonism asked 18/11, 2014 at 23:6

1

Solved

I'm just writing a small app in which I have function which looks like: QString askForDir() { return QFileDialog::getExistingDirectory(this, "Choose directory", QString("")); }...
Septarium asked 1/7, 2014 at 14:20

1

Solved

According to getOpenFileName instructions: QString fileName = QFileDialog.getOpenFileName(this, tr("Open File"), "/home", tr("Images (*.png *.xpm *.jpg)")); How can I make the dialog remember...
Sideband asked 11/4, 2014 at 3:10

1

Solved

I'm not sure if it is possible, but currently, when I show an open file dialog: QString file = QFileDialog::getOpenFileName(this); The dialog shown is not the native dialog for Android. Instead...
Prostyle asked 12/1, 2014 at 12:10

2

I'm trying to use a QFileDialog to prompt a user to provide a filename and location to save a text file at. I played around with the QtGui.QFileDialog.getSaveFileName, but I was interested in using...
Gosnell asked 4/1, 2014 at 23:28

3

Solved

I want the user to be able to enter a name for a file that will be saved as an xml file. Currently on Windows and Mac if you enter "test" as the file name it will automatically add ".xml" which is ...
Dubitation asked 22/3, 2012 at 12:21

1

Solved

I have a QDialog that opens a QFileDialog like so: QFileDialog fd(this); fd.setFileMode(QFileDialog::AnyFile); if (fd.exec()) { // save data to a file } Unfortunately, the default behavior doe...
Paiz asked 14/2, 2012 at 23:7

© 2022 - 2025 — McMap. All rights reserved.