Results 1 to 1 of 1

Thread: getOpenFileName question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default getOpenFileName question

    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:
    Qt Code:
    1. QString name = QFileDialog::getOpenFileName(this, "Wybierz plik do otwarcia", "~/", "Obrazki (*.jpg *.png *.bmp)");
    To copy to clipboard, switch view to plain text mode 
    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?
    Last edited by pmitas; 4th May 2010 at 22:45.

Similar Threads

  1. the problem of getOpenFileName
    By AD in forum Qt Programming
    Replies: 4
    Last Post: 30th July 2008, 11:59
  2. Qt 4.4 getOpenFileName error
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 10th May 2008, 01:09
  3. Replies: 2
    Last Post: 10th January 2008, 12:52
  4. Problem with QFileDialog::getOpenFileName()
    By spud in forum Qt Programming
    Replies: 4
    Last Post: 1st November 2007, 22:31
  5. QFileDialog::getOpenFileName() gets stucked
    By elcuco in forum Qt Programming
    Replies: 5
    Last Post: 28th March 2006, 23:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.