Results 1 to 9 of 9

Thread: Changes at header file are not recognized at implementation by Qtcreator...??

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Changes at header file are not recognized at implementation by Qtcreator...??

    My project has 100 files (aprox.) ( I dont know if it can be the origin of the problem)
    I dont know what is happen, but changes and new widgets declarations made at header file are not taken into account when I write code at implementation.
    In example, I write a new QLabel *var and I have not autocompletion neither light red color for the text....
    In addition, if I change the widget type, Qtcreator seems to treat my widget according the first definition not the current.
    I have to close and re-open my project....
    Any idea ? Thanks

  2. #2
    Join Date
    Aug 2011
    Location
    Seoul, Korea
    Posts
    46
    Thanks
    9
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Changes at header file are not recognized at implementation by Qtcreator...??

    Quote Originally Posted by tonnot View Post
    My project has 100 files (aprox.) ( I dont know if it can be the origin of the problem)
    I dont know what is happen, but changes and new widgets declarations made at header file are not taken into account when I write code at implementation.
    In example, I write a new QLabel *var and I have not autocompletion neither light red color for the text....
    In addition, if I change the widget type, Qtcreator seems to treat my widget according the first definition not the current.
    I have to close and re-open my project....
    Any idea ? Thanks
    What IDE are you using? VS2010? VS2008?
    Dong Back Kim

  3. #3
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Changes at header file are not recognized at implementation by Qtcreator...??

    @up: I think Qt Creator
    When I'm clicking "save" (ctrl+s) after editing a file, indexer is started. Can you see those green bars on left panel, blinking after saving the file ?

  4. #4
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Changes at header file are not recognized at implementation by Qtcreator...??

    (Yes QT Creator)
    And yes, I dont see green bars .
    I need a solution because my work is slows.

    Thanks

    (Is there any way to start indexer ?)

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

    Default Re: Changes at header file are not recognized at implementation by Qtcreator...??

    Are the files you're working on added to your project file? Which variable contains them?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Changes at header file are not recognized at implementation by Qtcreator...??

    Are the files you're working on added to your project file?
    Yes, I have a main project file with some subproject files wiht their correct include(#####.pri) .
    Every pri has the sources,headers and includepath.
    I am working a few months with this project without problems, until now.
    I can compile it without problems.

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

    Default Re: Changes at header file are not recognized at implementation by Qtcreator...??

    To which variable are you adding those offensive files? How do the entries look like?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #8
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Changes at header file are not recognized at implementation by Qtcreator...??

    SOLVED !
    The problem was I have at cpp file :
    #include "A_table.h"
    when it'd have to be:
    #include "a_table.h"

    How is it possible that qtcreator or qmake does not tell me nothing ???
    Could it be a bug ? It does not difference betwen uppercase for build but yes during editing ?
    It is very strange.

    Thanks
    Last edited by tonnot; 8th August 2011 at 20:30.

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

    Default Re: Changes at header file are not recognized at implementation by Qtcreator...??

    Building and editing is done by two totally independent tools.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 4
    Last Post: 14th December 2010, 23:04
  2. Replies: 9
    Last Post: 17th November 2010, 07:18
  3. File format not recognized -- bass.dll
    By youkai in forum Qt Programming
    Replies: 1
    Last Post: 26th April 2009, 12:26
  4. Replies: 14
    Last Post: 16th March 2009, 09:19
  5. Related to header file
    By merry in forum Qt Programming
    Replies: 2
    Last Post: 10th May 2007, 13:03

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.