我下载QT与C++ CDT,我看到QT来使用Qt IDE(Qt Creator的),制定QT appliation和罚款,但我想这样做机智日食,我的意思是使用C++蚀整合在eclipse中使用qt编码。有没有 ?因为我正在尝试使用qt来设计我的用户界面,并使用其他库中的其他代码来执行其他操作。我试图包含头文件(usr/include/qt4),但我仍然有一个问题,当我编译这样的程序,我们(无法找到qgui.h)任何帮助像netbeans整合qt与eclipse。Eclipse中使用Qt
编辑:
这里是我的输出
13:48:48 **** Incremental Build of configuration Debug for project test ****
Info: Internal Builder is used for build
g++ -o test src/test.o -lQtCore
src/test.o: In function `main':
/media/sda2/workspaceeclipse/test/Debug/../src/test.cpp:6: undefined reference to `QApplication::QApplication(int&, char**, int)'
/media/sda2/workspaceeclipse/test/Debug/../src/test.cpp:8: undefined reference to `QPushButton::QPushButton(QString const&, QWidget*)'
/media/sda2/workspaceeclipse/test/Debug/../src/test.cpp:12: undefined reference to `QApplication::exec()'
/media/sda2/workspaceeclipse/test/Debug/../src/test.cpp:12: undefined reference to `QPushButton::~QPushButton()'
/media/sda2/workspaceeclipse/test/Debug/../src/test.cpp:12: undefined reference to `QApplication::~QApplication()'
/media/sda2/workspaceeclipse/test/Debug/../src/test.cpp:8: undefined reference to `QPushButton::~QPushButton()'
/media/sda2/workspaceeclipse/test/Debug/../src/test.cpp:12: undefined reference to `QPushButton::~QPushButton()'
/media/sda2/workspaceeclipse/test/Debug/../src/test.cpp:12: undefined reference to `QApplication::~QApplication()'
src/test.o: In function `QWidget::resize(int, int)':
/usr/include/qt4/QtGui/qwidget.h:996: undefined reference to `QWidget::resize(QSize const&)'
collect2: error: ld returned 1 exit status
13:48:49 Build Finished (took 1s.609ms)
@ cmannett85:我不这么认为 - 如果没有QT eclipse插件,你可以很好地运行Eclipse作为Qt IDE。它需要一些设置工作,我认为这是OP卡住的地方。 –
@Andreas我不认为有一个Eclipse设计师或语言学家的本地Eclipse等价物。 – cmannett85
@ cmannett85 True - 但您可以将相应的文件类型分配给外部应用程序,以便您可以从项目树 –