Results 1 to 5 of 5

Thread: folder creation using the dialog box .

  1. #1
    Join Date
    May 2012
    Location
    India
    Posts
    51
    Thanks
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows

    Default folder creation using the dialog box .

    How can i ask one user to create a folder through one dialog box in qt .

    So that whatever the name the user has given in the dialog box ( in a specific location,

    for eg. c:/user/...) the folder will be created in that location and if the folder is

    alreday present with the specific name in that location then replacement shall be done

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: folder creation using the dialog box .

    Not sure what you want... QInputDialog::getText() maybe? Or QFileDialog::getSaveFileName()?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2012
    Location
    India
    Posts
    51
    Thanks
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: folder creation using the dialog box .

    here the user action is to create one folder . There is one button in my project , so when the user click that button at that time one dialog box should open where the user may allow to give the folder name , through that dialog box the user allow to select the location , like whether he wants to create the folder in desktop or c drive or d drive . if the folder is already present in that specific location then it will ask for replacement to the user , if the user press yes then it will replace that folder or else the folder is not getting replaced

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: folder creation using the dialog box .

    Then QFileDialog is something for you.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    May 2012
    Location
    India
    Posts
    51
    Thanks
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: folder creation using the dialog box .

    i got it .QFiledialog::getexistingdirectory ()is the right function for it .....i was confused , since its appearance is different in win 7 and XP .Thats why i was unble to mark the newfolder button present in that dialog .

Similar Threads

  1. Replies: 1
    Last Post: 7th June 2011, 17:22
  2. New dialog/windows creation hook
    By gilamran in forum Qt Programming
    Replies: 9
    Last Post: 29th March 2011, 00:01
  3. QfileDialog new folder creation event
    By vjsharma_30 in forum Qt Programming
    Replies: 0
    Last Post: 9th March 2010, 16:04
  4. Replies: 2
    Last Post: 19th September 2009, 06:18
  5. Browse folder dialog
    By StephenR in forum Qt Programming
    Replies: 4
    Last Post: 8th September 2009, 13:16

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.