Results 1 to 2 of 2

Thread: QFileDialog to create folder

  1. #1
    Join Date
    May 2012
    Posts
    99
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question QFileDialog to create folder

    Hi all,

    I use this code to select a folder:

    Qt Code:
    1. QString path = QFileDialog::getExistingDirectory(NULL, tr("Select folder"), m_path);
    To copy to clipboard, switch view to plain text mode 

    This code allows to select a folder, see the below image.



    I need create a folder.

    Is it possible?

    Kind regards.

  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 to create folder

    Most file dialogs have a tool button or a side bar option for creating folders.

    Cheers,
    _

Similar Threads

  1. Replies: 2
    Last Post: 16th November 2012, 02:42
  2. QfileDialog new folder creation event
    By vjsharma_30 in forum Qt Programming
    Replies: 0
    Last Post: 9th March 2010, 16:04
  3. Replies: 1
    Last Post: 7th June 2009, 09:22
  4. Can't create folder if file with same name exists
    By Barry79 in forum Qt Programming
    Replies: 1
    Last Post: 6th May 2009, 16:33
  5. Create folder
    By vishesh in forum Qt Programming
    Replies: 1
    Last Post: 13th March 2007, 21:02

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.