Results 1 to 6 of 6

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,348
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

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

    Generally true, but one can force non-native dialogs
    Sure, but can you get access to the dialog buttons if you use a built-in Qt one? And what is the look and feel compared to a native dialog? I suppose if you wanted to manually search out the children and find the buttons you could do that, assuming they were implemented as QPushButton in the first place.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

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

    Right, one would have to look for the buttons manually, but I am pretty sure the dialog would be using QDialogButtonBox so that should be trivial.

    Cheers,
    _

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

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

    @anda_skoa & @d_stranz
    Thank you very much for your inputs, I got the possible way from your suggestions and will use them according to my requirement.

    Thanks,

Similar Threads

  1. Replies: 2
    Last Post: 16th November 2012, 03:42
  2. Replies: 2
    Last Post: 11th May 2011, 00:03
  3. QFileDialog::getSaveFileName Cancel Button
    By penny in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2011, 17:46
  4. QFileDialog::getSaveFileName Save Button
    By penny in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2011, 09:55
  5. How to disable a button in a QFileDialog?
    By TeresaML in forum Qt Programming
    Replies: 2
    Last Post: 18th June 2010, 19: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
  •  
Qt is a trademark of The Qt Company.