Results 1 to 9 of 9

Thread: Nested folders in Qt Creator

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2009
    Posts
    27
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Nested folders in Qt Creator

    Yes, I did as you said:

    - I make 3 additional directories in my current project location: Animal, Animal/Dog, Animal/Cat
    - [File] > [New file or project...] > C++ > C++ class
    - Add Cat class in Animal/Cat; Dog class in Animal/Dog.

    I expect that the Project tree would have Animal node, with 2 subnodes Dog, Cat. Each of them has 2 subnodes: Headers, Sources
    But Qt Creator doesn't support, or I did something wrong: Animal node, with 2 subnodes: Headers, Sources. Each of them has 2 subnodes: Dog, Cat. I don't like this.

    It'd be clear if you take several minutes to try it yourself

    Thanks for your reply!

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Nested folders in Qt Creator

    Quote Originally Posted by rockballad View Post
    I expect that the Project tree would have Animal node, with 2 subnodes Dog, Cat. Each of them has 2 subnodes: Headers, Sources
    But Qt Creator doesn't support, or I did something wrong: Animal node, with 2 subnodes: Headers, Sources. Each of them has 2 subnodes: Dog, Cat. I don't like this.
    Ok, now I get you. With the project tree it is not possible since it parses the files and arrange them in the virtual folders sources/headers... If you want a file system representation you can chage the view to it. But you then will see all other files also. (And also no tree structure.)

    So back to the original question: You can't have it right out of the box. Also I don't know a comftable way to create pri file in creator. But also then, Qt Creator is parsing the pri content in virtual folders. So the only possibility is to write a plugin, that displays the file system in a tree model.

  3. #3
    Join Date
    Aug 2009
    Posts
    27
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Nested folders in Qt Creator

    Thank you. I tried many times but got no success. At least I know it's impossible now. Or I may ask Qt Creator team to think about it :-)

    You have a nice day!

  4. #4
    Join Date
    Aug 2009
    Posts
    27
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Nested folders in Qt Creator

    Dear Moderator,

    Please move my thread to http://www.qtcentre.org/forums/3-Qt-Tools

    Thanks so much.

Similar Threads

  1. Qt Creator doesn't load nested plugin
    By skepticalgeek in forum Qt Tools
    Replies: 0
    Last Post: 9th January 2010, 21:10
  2. Nested Layout
    By starcontrol in forum Qt Programming
    Replies: 2
    Last Post: 9th April 2008, 12:47
  3. nested tables
    By Jeroen van der Waal in forum Qt Programming
    Replies: 1
    Last Post: 6th June 2007, 17:12
  4. Nested signals and slots
    By vishva in forum Qt Programming
    Replies: 2
    Last Post: 18th August 2006, 09:47
  5. Nested Plugins
    By Luis Rodriguez in forum Qt Programming
    Replies: 1
    Last Post: 10th March 2006, 22:00

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.