[Qt-creator] Suggestion

Yves Bailly yves.bailly at sescoi.fr
Mon Jan 26 14:44:32 CET 2009


Hello all,

Here's a feedback after having completed a small project using
QtCreator (assuming a project is ever finished, of course).
General feeling: very, very (very, very) positive.

But... because there's always a "but"...
This project contains 7 forms, 28 headers, 29 source files. On a
day-to-day usage, the proposed flat view of files is not really
adequate when you have many files, even though it is sometimes
handy. Some grouping would be quite nice to have.

Let me suggest some possible groupings.

1- The classic grouping, by file type:
my_project
    \- my_project.pro
    |- Headers
    |   \- first_dialog.h
    |   |- second_dialog.h
    |   |- some_class.h
    |- Sources
    |   \- first_dialog.cpp
    |   |- second_dialog.cpp
    |   |- some_class.cpp
    |   |- main.cpp
    |- Forms
    |   \- first_dialog.ui
    |   |- second_dialog.ui
    |- Resources
        \- first_resource.qrc
        |- second_resource.qrc

2- As shown here, I mostly name my files using the class name then
   adding .h or .cpp according if it's a header or a source file. If
   two files are detected, such as "my_file.h" and "my_file.cpp", they
   could be grouped. Maybe even group with them the form file. Thus
   the previous tree would be shown like this:
my_project
    \- my_project.pro
    |- first_dialog
    |    \- header (first_dialog.h)
    |    |- source (first_dialog.cpp)
    |    |- form (first_dialog.ui)
    |- second_dialog
    |    \- header (second_dialog.h)
    |    |- source (second_dialog.cpp)
    |    |- form (second_dialog.ui)
    |- some_class
    |    \- header (some_class.h)
    |    |- source (some_class.cpp)
    |- Other sources
    |    \- main.cpp
    |- Resources
        \- first_resource.qrc
        |- second_resource.qrc

Well, you get the idea: to be able to see only some of your files,
to reduce the visual searching in the list to find a given file.
But maybe this can be done by creating a plugin, maybe I should have
a look at *how* to create a plugin for QtCreator... ;-)

Regards,

-- 
     /- Yves Bailly - Software developper  -\
     \- Sescoi France http://www.sescoi.fr -/
"The possible is done. The impossible is being done. For miracles,
thanks to allow a little delay."




More information about the Qt-creator-old mailing list