Results 1 to 3 of 3

Thread: Doubt ?

  1. #1
    Join Date
    Dec 2006
    Location
    Bangalore, India
    Posts
    38
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Doubt ?

    Hi Aces,

    "Members" is one of the TAB in "Object Explorer" Window of "Qt Designer".

    In that there are some items called 'Forward Declaration", "Includes(in Declaration)" and "Includes(in Implemetation)".

    My doubt is, what are the general and functionality difference between them in a program.?

    Plz any one give explanation or some useful links regarding my doubt.

    Thanks in Advance.
    WINNERS DON`T D DIFFERENT THINGS THEY D THINGS differently.

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Doubt ?

    When you just use a pointer to a class you can forward declare it in your header file, i.e. tell the compiler that there will be a class called Xxx. Then you need to include the actual class header file <xxx.h> in your implementation.

    The point of this is that the compiler does not have to look into the <xxx.h> when parsing your header file. This saves compilation time.

  3. #3
    Join Date
    Sep 2006
    Posts
    339
    Thanks
    15
    Thanked 21 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Doubt ?

    If you want to know what is forward declaration, includes etc, then these are C++ implementation and you need to brush up C++. But if you want to know what they actually do in QtDesigner then Open QtAssistance->QtDesigner Manual->Creating a Main Window Application

    Read and follow the steps you will get to know what is actually happening and how you can use those variables. I too learned like that.

    Thanks

Similar Threads

  1. Basic C++ doubt
    By munna in forum General Programming
    Replies: 8
    Last Post: 30th November 2006, 21:54
  2. QFile doubt
    By Sarma in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2006, 12:39
  3. Model - View Programming doubt.
    By munna in forum Qt Programming
    Replies: 4
    Last Post: 28th April 2006, 14:01
  4. QTreeWiget doubt
    By Sarma in forum Qt Programming
    Replies: 1
    Last Post: 6th April 2006, 14:59
  5. QT 4.1 in OSX I have a doubt
    By askot in forum Installation and Deployment
    Replies: 9
    Last Post: 25th February 2006, 07:14

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.