Results 1 to 1 of 1

Thread: QFileDialog::getSaveFileName produces GTK warning for non-existent files

  1. #1
    Join Date
    Feb 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QFileDialog::getSaveFileName produces GTK warning for non-existent files

    On my system, the getSaveFileName convenience function in QFileDialog triggers a GTK warning on the console when the name of a non-existent file is entered:
    Qt Code:
    1. (my-binary:30000): Gtk-WARNING **: Unable to retrieve the file info for `file:///home/colinb/test.txt': Error stating file '/home/colinb/test.txt': No such file or directory
    To copy to clipboard, switch view to plain text mode 
    It seems harmless, but I'd like to understand it and prevent it if possible. My system is Qt 4.7.4 and Openbox (no Gnome or KDE) on Ubuntu 11.10. Any ideas?

    EDIT: It looks like this is probably due to Qt using the "native" file dialog on my system, which is probably the GTK dialog. GTK must have debugging statements turned on.

    --Colin
    Last edited by colinb; 20th February 2012 at 13:08.

Similar Threads

  1. QFileDialog::getSaveFileName Save Button
    By penny in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2011, 08:55
  2. QInputDialog like QFileDialog::getSaveFileName
    By BIllNo123 in forum Newbie
    Replies: 5
    Last Post: 23rd September 2010, 14:51
  3. QFileDialog 'Save As' to non-existent directory
    By mclark in forum Qt Programming
    Replies: 2
    Last Post: 9th September 2010, 22:32
  4. problem with QFileDialog::getSaveFileName
    By navi1084 in forum Qt Programming
    Replies: 4
    Last Post: 26th June 2009, 07:38
  5. A question about QFileDialog::getSaveFileName
    By Ali in forum Qt Programming
    Replies: 1
    Last Post: 12th October 2007, 19:46

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.