Results 1 to 4 of 4

Thread: QFileDialog hidden files

  1. #1
    Join Date
    May 2006
    Posts
    23
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QFileDialog hidden files

    Hi all,

    I'm trying to construct a QFileDialog which shows hidden files by default. Is this possible? There is no reference whatsoever in the help section of QFileDialog wrt. hidden files

  2. #2
    Join Date
    Jan 2006
    Posts
    75
    Thanks
    3
    Thanked 5 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QFileDialog hidden files

    This topic already been discussed:

    http://lists.trolltech.com/qt-intere.../msg00201.html

  3. #3
    Join Date
    Jul 2006
    Posts
    79
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFileDialog hidden files

    it could be possible to get the source of the qfiledialog and fix the problem there (giving the class a new name and adding it to the project).

    regards..
    aman..

  4. #4
    Join Date
    Mar 2006
    Posts
    74
    Thanks
    1
    Qt products
    Qt3
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QFileDialog hidden files

    You can do it like this:

    Qt Code:
    1.  
    2. fd.setShowHiddenFiles(TRUE);
    3. fn = fd.getOpenFileName(Dir,
    4. FileMask,
    5. this,
    6. "",
    7. "Select a file");
    To copy to clipboard, switch view to plain text mode 

    I would like to be able to allow users to turn hidden files and directories on and off interactively in my file dialogs. Does anyone know how to do this in qt3?

Similar Threads

  1. qt3 themes example: missing header files?
    By nikita in forum Qt Programming
    Replies: 3
    Last Post: 9th August 2006, 12:12
  2. copy file/s from QFileDialog
    By raphaelf in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 14:26
  3. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28
  4. Visual Studio 2003 and .vcproj files
    By mbjerkne in forum General Discussion
    Replies: 2
    Last Post: 1st February 2006, 00:51
  5. hidden QListView column suddenly visible
    By edb in forum Qt Programming
    Replies: 10
    Last Post: 27th January 2006, 08:00

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.