Results 1 to 3 of 3

Thread: Dialog with a QFILEDIALOG prompt

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Location
    Richmond, VA
    Posts
    94
    Thanks
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Dialog with a QFILEDIALOG prompt

    Evening all --

    So as not to re-invent the wheel I thought I'd throw this question out to the masses before I create a dialog.

    I have several places in my app where I use QInputDialog to get text from a user but now I have a need of asking them for a working directory, so I'd also like to be able to use a QFileDialog within this to allow them to "browse" for the directory. Obviously there isn't an option for this with QInputDialog but I was wondering if there was a dialog already defined somewhere that did that...Basically a pop-up for directory path LE with Browse pushbutton option...

    I can write this on my own but as always if something exists, or if there's already a working example somewhere, I'd rather start there...

    thanks!


    scott

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Dialog with a QFILEDIALOG prompt

    I don't see options other than writing your own dialog to do so or to directly use QFileDialog::getExistingDirectory()

  3. #3
    Join Date
    Jan 2011
    Location
    Richmond, VA
    Posts
    94
    Thanks
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Dialog with a QFILEDIALOG prompt

    Yea, that's what I thought -- thanks for your input...I use QFileDialog elsewhere but not as a pop-up...


    scott

Similar Threads

  1. Invoking a QFileDialog from another dialog
    By skimpax in forum Qt Programming
    Replies: 2
    Last Post: 24th March 2010, 17:16
  2. Replies: 6
    Last Post: 17th April 2009, 10:09
  3. Replies: 7
    Last Post: 3rd July 2008, 08:02
  4. why QFileDialog does not display the default winxp dialog?
    By mismael85 in forum Qt Programming
    Replies: 5
    Last Post: 21st March 2008, 13:39
  5. Replies: 4
    Last Post: 13th June 2007, 15:37

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
  •  
Qt is a trademark of The Qt Company.