Results 1 to 2 of 2

Thread: QFileDialog

  1. #1
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default QFileDialog

    Hi all

    Working on Qt4.2 on intel MAC machine.

    I had used
    Qt Code:
    1. QFileDialog::getSaveFileName()
    To copy to clipboard, switch view to plain text mode 
    for saving the files, but if the filename already exists then it wont show the message that

    "This file with this name already exixts do you wish to replace it with the existing one."

    It simply save the file with the name that is already existing and itself replace that file.

    Actually I want , that the message should display If the filename already exists.

    What to do?

    Regards
    Merry
    Always Believe in Urself
    Merry

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFileDialog

    It looks like a bug. Try the newest Qt version to see if it still doesn't work.

    For a temporary workaround you can use QFileInfo::exists() and QMessageBox::question().

Similar Threads

  1. QFileDialog and file extension
    By calhal in forum Qt Programming
    Replies: 3
    Last Post: 9th March 2010, 12:54
  2. QFileDialog and file sequences
    By peterhillman in forum Qt Programming
    Replies: 5
    Last Post: 24th November 2007, 10:16
  3. QFileDialog in Qt designer
    By tpf80 in forum Qt Tools
    Replies: 1
    Last Post: 17th May 2007, 00:41
  4. QFileDialog Mac / PC
    By hey in forum Qt Programming
    Replies: 3
    Last Post: 26th April 2007, 18:23
  5. copy file/s from QFileDialog
    By raphaelf in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 14:26

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.