Results 1 to 3 of 3

Thread: QFileDialog Issue

  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question QFileDialog Issue

    Hi All,

    I am using Qt 4.2.2 on my Intel Mac.
    I m using the following code....

    QString FileName= QFileDialog::getSaveFileName(this,"Creating Media Image to Save","MediaImage","");

    In this I m giving the Default name MediaImage to save but the user can not change the Name from MediaImage to other Name.

    what I want that it shows the name by default but If user want to change the Name then he/she should be able to change the name of the Saved file name.

    If any body knows then plz help me.

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFileDialog Issue

    Either a typo in your post or wrong code... Qt docs will help you more than I could : http://doc.trolltech.com/4.2/qfiledi...etSaveFileName
    Current Qt projects : QCodeEdit, RotiDeCode

  3. #3
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Re: QFileDialog Issue

    Thanks for Reply.

    I already go through the getSaveFileName and if i used the Example given below in the help..

    QString FileName = QFileDialog::getSaveFileName(this, tr("Save File"),
    "/home/jana/untitled.png",tr("Images (*.png *.xpm *.jpg)"));

    I can not change the name from untitled.png.

Similar Threads

  1. QFileDialog Issue
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 14th March 2007, 15:37
  2. QFileDialog hidden files
    By blukske in forum Qt Programming
    Replies: 3
    Last Post: 8th March 2007, 02:11
  3. QFileDialog Issue
    By vishal.chauhan in forum Qt Programming
    Replies: 2
    Last Post: 28th February 2007, 13:47
  4. Replies: 5
    Last Post: 22nd September 2006, 08:04
  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.