Results 1 to 9 of 9

Thread: How to change the route in the *.h files ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to change the route in the *.h files ?

    Do you mean path to header files?
    If yes then add path to your pro file, like this:
    Qt Code:
    1. INCLUDEPATH += path1 \
    2. path2 \
    3. path3
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2011
    Posts
    40
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to change the route in the *.h files ?

    in fact it doesn't work .the source code is like this
    Qt Code:
    1. #include <taglib/taglib.h>
    To copy to clipboard, switch view to plain text mode 
    and the files route is like this
    Qt Code:
    1. ./taglib/include/taglib.h
    To copy to clipboard, switch view to plain text mode 
    so how could make sure that the QT could recognize the <taglib/taglib.h> is the file of ./taglib/include/taglib.h

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

    Default Re: How to change the route in the *.h files ?

    so how could make sure that the QT could recognize the <taglib/taglib.h> is the file of ./taglib/include/taglib.h
    You change <taglib/taglib.h> to <taglib.h> and add the path to the include paths.
    ==========================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.

Similar Threads

  1. DockWidgetArea change and layout direction change
    By mstegehu in forum Qt Programming
    Replies: 1
    Last Post: 21st February 2012, 21:24
  2. How to change path where ui_* files are generated?
    By Tiansen in forum Qt Programming
    Replies: 4
    Last Post: 7th April 2010, 13:39
  3. Replies: 12
    Last Post: 17th June 2009, 05:34
  4. How to change some files backgroundcolors
    By tkms in forum Qt Programming
    Replies: 3
    Last Post: 17th December 2008, 06:23
  5. socket programming... getting "no route to host"
    By babusunlux in forum Qt Programming
    Replies: 1
    Last Post: 4th August 2006, 20:39

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.