PDA

View Full Version : getOpenFileName question



pmitas
4th May 2010, 22:41
Hi,

I'm a beginner programmer and I'm trying to learn Qt4 right now. I wrote a simple app that simply displays an image and some basic info about it. There's a line:
QString name = QFileDialog::getOpenFileName(this, "Wybierz plik do otwarcia", "~/", "Obrazki (*.jpg *.png *.bmp)");It doesn't work for files with quotation marks in their names. For example when opening file
/home/piotrek/"foo" bar.png
the content of 'name' QString becomes
/home/piotrek/foo
Why is that and how to come around it?