правой кнопкой на project или solution - Qt project settings или Qt version - выставь $(DefaultQtVersion)
это сработало, но дало новую проблему
не может найти сгенерированную форму, если я подключаю виджет в другой проект
1>------ Build started: Project: AlgorithmGraph, Configuration: Debug Win32 ------
2>------ Build started: Project: GraphWidget, Configuration: Debug Win32 ------
1>Compiling...
2>Uic'ing graphwidget.ui...
1>algorithmPrima.cpp
2>Moc'ing textitem.h...
1>f:\projects\visual studio 2008\route\route\algorithmgraph\algorithmprima.cpp(69) : warning C4018: '<' : signed/unsigned mismatch
1>f:\projects\visual studio 2008\route\route\algorithmgraph\algorithmprima.cpp(83) : warning C4018: '<' : signed/unsigned mismatch
2>Moc'ing node.h...
1>Creating library...
1>Build log was saved at "file://f:\Projects\Visual Studio 2008\Route\Route\AlgorithmGraph\Debug\BuildLog.htm"
1>AlgorithmGraph - 0 error(s), 2 warning(s)
3>------ Build started: Project: AlgorithPrimaWidget, Configuration: Debug Win32 ------
3>AlgorithPrimaWidget : warning PRJ0009 : Build log could not be opened for writing.
3>Make sure that the file is not open by another process and is not write-protected.
3>Uic'ing algorithprimawidget.ui...
3>Moc'ing algorithprimawidget.h...
2>Moc'ing graphwidget.h...
3>Rcc'ing algorithprimawidget.qrc...
3>RCC: Warning: No resources in 'f:\Projects\Visual Studio 2008\Route\Route\AlgorithPrimaWidget\algorithprimawidget.qrc'.
3>Compiling...
3>algorithprimawidget.cpp
2>Moc'ing GraphScene.h...
2>Moc'ing edge.h...
2>Rcc'ing graphwidget.qrc...
3>moc_algorithprimawidget.cpp
2>RCC: Warning: No resources in 'f:\Projects\Visual Studio 2008\Route\Route\GraphWidget\graphwidget.qrc'.
2>Compiling...
2>edge.cpp
3>qrc_algorithprimawidget.cpp
3>main.cpp
3>Generating Code...
3>Creating library...
3>Build log was saved at "file://F:\Projects\Visual Studio 2008\Route\Route\Debug\BuildLog.htm"
3>AlgorithPrimaWidget - 0 error(s), 1 warning(s)
2>.\edge.cpp(56) : warning C4482: nonstandard extension used: enum 'QGraphicsItem::CacheMode' used in qualified name
2>moc_textitem.cpp
2>moc_node.cpp
2>moc_graphwidget.cpp
2>moc_GraphScene.cpp
2>moc_edge.cpp
2>qrc_graphwidget.cpp
2>textitem.cpp
2>.\textitem.cpp(18) : warning C4482: nonstandard extension used: enum 'QGraphicsItem::CacheMode' used in qualified name
2>.\textitem.cpp(38) : warning C4482: nonstandard extension used: enum 'Qt::MouseButton' used in qualified name
2>node.cpp
2>.\node.cpp(57) : warning C4482: nonstandard extension used: enum 'QGraphicsItem::CacheMode' used in qualified name
2>main.cpp
2>graphwidget.cpp
2>graphscene.cpp
2>Generating Code...
2>Creating library...
2>Build log was saved at "file://F:\Projects\Visual Studio 2008\Route\Route\Debug\BuildLog.htm"
2>GraphWidget - 0 error(s), 4 warning(s)
4>------ Build started: Project: Route, Configuration: Debug Win32 ------
4>Moc'ing routewidget.h...
4>Uic'ing routewidget.ui...
4>Compiling...
4>moc_routewidget.cpp
4>F:\Projects\Visual Studio 2008\Projects\Route\AlgorithPrimaWidget\algorithprimawidget.h(5) : fatal error C1083: Cannot open include file: 'GeneratedFiles/ui_algorithprimawidget.h': No such file or directory
4>routewidget.cpp
4>F:\Projects\Visual Studio 2008\Projects\Route\AlgorithPrimaWidget\algorithprimawidget.h(5) : fatal error C1083: Cannot open include file: 'GeneratedFiles/ui_algorithprimawidget.h': No such file or directory
4>Generating Code...
4>Build log was saved at "file://F:\Projects\Visual Studio 2008\Route\Route\Debug\BuildLog.htm"
4>Route - 2 error(s), 0 warning(s)
========== Build: 3 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
пробовал и просто "ui...." и <ui....> - не помогло