[vtkusers] Problem building own copy of QT Event example (GUI)

Olowoyeye, Adebayo Ol Uwole aolowoye at indiana.edu
Thu Feb 22 15:46:06 EST 2007


Hi All,
  I have successfully installed and ran the executable for all Qt 
examples.  I am now trying to build those example in my own Visual C++ 
project.  I am getting errors referencing functions from old Qt (Qt3), 
at least thats what I think.  I also included all additional 
dependencies (.lib files) from the .vcproj file, created in the event 
example from CMake, as dependencies in my current .vcproj.  Is there an 
easier way to use the output from CMake (project files) as starting 
points for new projects.  These are some of the errors I am getting:


1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(100) : 
error C2535: 'QList<T> Q3MainWindow::dockWindows(void) const' : member 
function already defined or declared
1>        with
1>        [
1>            T=Q3DockWindow *
1>        ]
1>        
c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(99) : see 
declaration of 'Q3MainWindow::dockWindows'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(108) : 
error C2039: 'Dock' : is not a member of 'Qt'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(108) : 
error C2061: syntax error : identifier 'Dock'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(110) : 
error C2039: 'Dock' : is not a member of 'Qt'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(110) : 
error C2061: syntax error : identifier 'Dock'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(111) : 
error C2039: 'Dock' : is not a member of 'Qt'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(111) : 
error C2061: syntax error : identifier 'Dock'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(112) : 
error C2039: 'Dock' : is not a member of 'Qt'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(112) : 
error C2061: syntax error : identifier 'Dock'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(112) : 
error C2535: 'void Q3MainWindow::moveToolBar(Q3DockWindow *)' : member 
function already defined or declared
1>        
c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(111) : 
see declaration of 'Q3MainWindow::moveToolBar'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(116) : 
error C2039: 'Dock' : is not a member of 'Qt'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(116) : 
error C2061: syntax error : identifier 'Dock'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(193) : 
error C2039: 'ToolBarDock' : is not a member of 'Qt'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(193) : 
error C2061: syntax error : identifier 'ToolBarDock'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(195) : 
error C2065: 'dock' : undeclared identifier
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(195) : 
error C2065: 'newLine' : undeclared identifier
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(199) : 
error C2039: 'ToolBarDock' : is not a member of 'Qt'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(199) : 
error C2061: syntax error : identifier 'ToolBarDock'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(204) : 
error C2039: 'ToolBarDock' : is not a member of 'Qt'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(204) : 
error C2061: syntax error : identifier 'ToolBarDock'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(209) : 
error C2039: 'ToolBarDock' : is not a member of 'Qt'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(209) : 
error C2061: syntax error : identifier 'ToolBarDock'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(210) : 
error C2084: function 'void Q3MainWindow::moveToolBar(Q3DockWindow *)' 
already has a body
1>        
c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(111) : 
see previous definition of 'moveToolBar'
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(211) : 
error C2065: 'nl' : undeclared identifier
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(211) : 
error C2065: 'index' : undeclared identifier
1>c:\qt-win-opensource-src-4.2.2\src\qt3support\widgets\q3mainwindow.h(211) : 
error C2065: 'extraOffset' : undeclared identifier
1>c:\documents and settings\depauw\my documents\visual studio 
2005\projects\qttest\qttest\gui.h(50) : error C2039: 'setName' : is not 
a member of 'QAction'
1>        c:\qt-win-opensource-src-4.2.2\src\gui\kernel\qaction.h(43) : 
see declaration of 'QAction'
1>c:\documents and settings\depauw\my documents\visual studio 
2005\projects\qttest\qttest\gui.h(59) : error C2664: 
'QGridLayout::QGridLayout(QWidget *)' : cannot convert parameter 1 from 
'QLayout *' to 'QWidget *'
1>        Types pointed to are unrelated; conversion requires 
reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\depauw\my documents\visual studio 
2005\projects\qttest\qttest\gui.h(253) : error C2039: 'WType_TopLevel' 
: is not a member of 'Qt'
1>c:\documents and settings\depauw\my documents\visual studio 
2005\projects\qttest\qttest\gui.h(253) : error C2039: 'WType_TopLevel' 
: is not a member of 'Qt'
1>c:\documents and settings\depauw\my documents\visual studio 
2005\projects\qttest\qttest\gui.h(253) : error C2065: 'WType_TopLevel' 
: undeclared identifier



Thanks in advance,





More information about the vtkusers mailing list