Results 1 to 2 of 2

Thread: QFileDialog create or open existing directory

  1. #1
    Join Date
    Jun 2011
    Location
    Rhode Island
    Posts
    16
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QFileDialog create or open existing directory

    Hey,

    i was wondering if it is possible to make QFileDialog get an existing directory OR allow the user to type in a new directory name an click save (I will handle the mkdir on the fileSelected signal which is emitted on dialog accept).
    SEGMENTATION FAULT: At who the hell knows where.

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

    Default Re: QFileDialog create or open existing directory

    I think the dialog supports creating a directory in itself, but what you could do is to create the dialog with FileMode AnyFiles and hide non-directories with setOption(ShowDirsOnly).

    Cheers,
    _

Similar Threads

  1. Qt Creator open existing .pro file
    By check_in in forum Qt Tools
    Replies: 0
    Last Post: 21st October 2012, 20:11
  2. how select whole directory also in QFileDialog?
    By aurora in forum Qt Programming
    Replies: 4
    Last Post: 19th October 2011, 09:30
  3. Replies: 2
    Last Post: 28th March 2009, 10:11
  4. Replies: 1
    Last Post: 14th October 2007, 23:10
  5. Replies: 42
    Last Post: 30th July 2007, 14:55

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.