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.
My goal is: user can choose file (only *mp3) and after clicking twice on it it should play (so the QString to file should be send to play() function)
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开发者_运维技巧s there a way of doing this without using a QItemDelegate? I\'ve been having a lot of trouble with it. For example, if I use a Delegate:
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 am making a Qt applica开发者_JS百科tion and I have a button to open a file, which is connected to a custom slot. This is the slot code so far: