Results 1 to 4 of 4

Thread: Which path should I use?

  1. #1
    Join Date
    Jan 2006
    Posts
    105
    Thanks
    38
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question Which path should I use?

    Hi all, I'm newbie creating Gui applications and I will be very thankfull if you could suggest me about this: I have a QListWidget where I show as icons all the images of a specified directory.I have a QComboBox where the user can write the path of this directory and a button connected to QFileDialog:getExistingDirectory to let choose manually from the file system. One of the functionalities of the app is move the selected items (files) in the list to another directory that can be chosen with another "getExistingDirectory" dialog. And here's my question: Which path do you think that should be more elegant/comfortable for the user to start both dialogs? One option could be start with the
    current text of the combobox in the case that the user wants to select a new directory to see its contents, and the last directory selected in the case that the user wants to move the current selection. Another solution could be setting as the current application path the path the user choses in any of both dialogs, and start both dialog with the current path. But I'm a little scared of modify the current application path...
    What do you think that should be better? Should I modify the current application path to do it?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Posts
    105
    Thanks
    38
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Which path should I use?

    Any suggestions, plz?

  3. #3
    Join Date
    Jan 2006
    Location
    Ukraine, L'viv
    Posts
    57
    Thanks
    3
    Thanked 4 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Which path should I use?

    One option could be start with the
    current text of the combobox in the case that the user wants to select a new directory to see its contents, and the last directory selected in the case that the user wants to move the current selection.
    Quite good.
    ...setting as the current application path the path the user choses in any of both dialogs, and start both dialog with the current path
    What for? Each dialog must be with its own dir. Source with sourcePath and destination with destPath.
    Or maybe I don't understand something?

  4. The following user says thank you to L.Marvell for this useful post:

    Dark_Tower (8th April 2006)

  5. #4
    Join Date
    Jan 2006
    Posts
    105
    Thanks
    38
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Which path should I use?

    The question is if I should use an auxiliar QString to save the destination path (only used to start the dialog) or setting it as the current path? What do you think that should be more "elegant" and better? Please someone suggest me something.
    Last edited by Dark_Tower; 8th April 2006 at 14:01.

Similar Threads

  1. File path issue...
    By kaushal_gaurav in forum Qt Programming
    Replies: 9
    Last Post: 1st October 2008, 15:36
  2. QFileDialog disable Dir Path
    By user_mail07 in forum Qt Programming
    Replies: 2
    Last Post: 15th April 2008, 19:57
  3. Problems with korean symbols in file path
    By Raistlin in forum Qt Programming
    Replies: 5
    Last Post: 6th April 2008, 13:59
  4. how do I get the default picture path of qtopia 2.2
    By pencilren in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 17th September 2007, 09:01
  5. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15

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.