Results 1 to 6 of 6

Thread: QFileDialog::getSaveFileName - would like to disable save button for read only folder

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2012
    Location
    India.
    Posts
    88
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default QFileDialog::getSaveFileName - would like to disable save button for read only folder

    Dear All,

    I would like to disable file save dialog's save button if the current selected folder is read only folder, I mean I want read only folder indication the moment user selects folder on file save dialog.

    Here is the code, I have written to show file save dialog...

    Qt Code:
    1. // Show the SaveAs dialog
    2. QString sessionNameStr = QFileDialog::getSaveFileName(
    3. pParent,
    4. ("Save Session File"),
    5. primarySessionPath,
    6. ("Sessions (*.sess)") );
    To copy to clipboard, switch view to plain text mode 

    This problem is on Mac OS (El Capitan)
    I am using Qt 4.7.3.

    Please suggest me a solution, if any one has any idea about it.

    Overriding QFileDialog or writing some other custom class is the last option I would like to choose.

    Thanks,
    Last edited by Rajesh.Rathod; 28th December 2016 at 11:47.

Similar Threads

  1. Replies: 2
    Last Post: 16th November 2012, 02:42
  2. Replies: 2
    Last Post: 10th May 2011, 23:03
  3. QFileDialog::getSaveFileName Cancel Button
    By penny in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2011, 16:46
  4. QFileDialog::getSaveFileName Save Button
    By penny in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2011, 08:55
  5. How to disable a button in a QFileDialog?
    By TeresaML in forum Qt Programming
    Replies: 2
    Last Post: 18th June 2010, 18:41

Tags for this Thread

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.