Page 2 of 2 FirstFirst 12
Results 21 to 23 of 23

Thread: error compile

  1. #21
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: error compile

    Quote Originally Posted by wysota
    No you don't. Do you use methods defined there?
    yes I use members of mainform from here; But if I put it in implementation compile..
    [QUOTE=wysota]
    No. You should avoid including to much files in headers, because it slows down the compilation. [QUOTE]
    including much headers where? from QTdesigner? in implementation? in declarations? Or at begin of file by hand?

    thanks
    Regards

  2. #22
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: error compile

    Quote Originally Posted by mickey
    including much headers where? from QTdesigner? in implementation? in declarations? Or at begin of file by hand?
    In header files. Because each file which includes that file will also include all the files including it and each time cpp has to parse them. That's why using precompiled headers results in such a big speed gain Parsing header files takes much time.

  3. #23
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: error compile

    Sorry but I have some problems with english also. Do you say me to put #incldue much more In implementation or implemention (from qtDesinger).
    And is this an help for speed:
    Qt Code:
    1. #ifndef MYWIDGET_H
    2. #define MYWIDGET_H
    3. .......
    To copy to clipboard, switch view to plain text mode 
    Thanks
    Regards

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.