In short sources don't appear in qt creator but project can build.
This is my qmake
Qt Code:
  1. QT += core gui
  2.  
  3. TARGET = Disigner
  4. TEMPLATE = app
  5.  
  6. !include( ../Common.pri)::warning(Fail to include Common.pri)
  7.  
  8. sourcesPath = #Sources
  9. headersPath = #Sources
  10. tempSources += main.cpp
  11. tempSources += Designer.cpp
  12.  
  13. tempHeaders += Designer.h
  14.  
  15. compliteSources += $$ApendPath(sourcesPath,tempSources)
  16. compliteHeaders += $$ApendPath(headersPath,tempHeaders)
  17.  
  18. finalSources += $$compliteSources
  19. finalHeaders += $$compliteHeaders
  20.  
  21. message($$finalSources)
  22. message($$finalHeaders)
  23. SOURCES += $$finalSources
  24. HEADERS += $$finalHeaders
To copy to clipboard, switch view to plain text mode 

This is my Common.pri
Qt Code:
  1. defineReplace(ApendPath){
  2. Path = $$eval($$1)
  3. FileNames = $$eval($$2)
  4. FullNames =
  5.  
  6. if(Path){
  7. for(FileName,FileNames){
  8. FullName = $${Path}/$${FileName}
  9. FullNames += $$FullName
  10. }
  11.  
  12. } else {
  13.  
  14. for(FileName,FileNames){
  15. FullName = $${FileName}
  16. FullNames += $$FullName
  17. }
  18.  
  19. }
  20.  
  21. return ($$FullNames)
  22. }
To copy to clipboard, switch view to plain text mode 

If i comment "SOURCES += $$finalSources" and add "SOURCES += main.cpp Designer.cpp" sources appear again in qt creator again.