I’m wor开发者_JAVA技巧king on a Linux desktop application that needs to open a USB serial port, typically /dev/ttyUSB0 or /dev/ttyUSB1. I’m using QFileDialog to let the user select the file:
Is there an equivalent of t开发者_如何学Che lpstrDefExt member of OPENFILENAME struct used in the Win32 function GetSaveFileName?
I\'m trying to use a QFileDialog::getOpenFileName with an xml filter defined tr(\"XML Files (*.xml)\") to ask the user to select an XML file.
About pyQt4 I prefer to use the static method for the getSaveFilename in the QFileDialog so that the user sees the Windows/Mac native dialog.
This seems a known problem but I have not found a good workaround. I like the style of the non-native QFileDialog, especially the feature that allows the user to input the path directly
I want to make a QT4 (using QT designer) dialog, that contains a part where a file has to be selected.
Well I\'m using the following code to get the filename for a file that needs to be stored .. QString fileName = QFileDialog::getSaveFileName(this, tr(\"Save File\"),\"/home/user/MyDocs/\",tr(\"JPG fi
I want the filter in a QFileDialog to match all audio file types supported by Phonon on the platform in question.