Results 1 to 5 of 5

Thread: Code documentig(commenting)

  1. #1
    Join Date
    Dec 2010
    Location
    Ukraine, Kharkiv
    Posts
    17
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    3

    Post Code documentig(commenting)

    How to document or comment code in Qt? Is there smth like in Java or C#?
    I want to describe methods, classes. And after this I want to generate documentation about my classes.
    Please, give me a proper link where I can read about this.


    Sorry. Not full question.
    I want in IDE (in my situation Eclipse) after input method IDE show me input params...
    See, please, attached screenshots. It's hard for me to describe using words...

    example_1.JPG
    example_2.JPG
    example_3.jpg

    Can I achive such behaviour for Qt? On screenshots J2ME project.
    Last edited by Chiz; 13th January 2011 at 13:58.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Code documentig(commenting)

    See doxygen.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. The following user says thank you to high_flyer for this useful post:

    Chiz (13th January 2011)

  4. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: Code documentig(commenting)

    I agree. Doxygen is an excellent code documentation tool.

  5. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Code documentig(commenting)

    Can I achive such behaviour for Qt? On screenshots J2ME project.
    What you are showing is an IDE feature, it has nothing to do with Qt.
    I think that QtCreator has a similar feature, but since I hardly used, I can't tell for sure.
    Visual Assist will do that for VisualStudio.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  6. The following user says thank you to high_flyer for this useful post:

    Chiz (13th January 2011)

  7. #5
    Join Date
    Nov 2010
    Posts
    97
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 11 Times in 11 Posts

    Default Re: Code documentig(commenting)

    You might consider the concept of 'self-documenting code'. This means coding with small, well named functions and objects, that are documented by their very existence and names.

    See:

    http://c2.com/cgi/wiki?ToNeedComments

    http://c2.com/cgi/wiki?TooMuchDocumentation

    http://memeagora.blogspot.com/2008/1...ode-smell.html

    etc...

    Also, I've found that one apparently decent way to instruct someone on a new code-base is to tell them to go document it.
    This rude guy who doesn't want you to answer his questions.

    Note: An "expert" here is just someone that's posted a lot.

    "The fact of where you do the encapsulation is meaningless." - Qt Certified Developer and forum moderator

Similar Threads

  1. need help in qt code
    By doforumda in forum Qt Programming
    Replies: 5
    Last Post: 27th August 2010, 14:27
  2. help! how to code this gui with qt4?
    By khong_fly2008 in forum Qt Programming
    Replies: 4
    Last Post: 6th April 2009, 15:39
  3. C mex in MATLAB and the commenting
    By Masih in forum General Programming
    Replies: 1
    Last Post: 22nd August 2007, 23:06
  4. Pasting code from code tag in emacs
    By Gopala Krishna in forum General Discussion
    Replies: 0
    Last Post: 16th February 2007, 06:47
  5. use of VC++ code in Qt
    By shailesh in forum Qt Programming
    Replies: 4
    Last Post: 28th April 2006, 12:11

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