ChinaUnix.net
相关文章推荐:

QT QWT 编译

http://xizhizhu.blogspot.com/2008/11/qthello-qt.html Hello qt很简单,也就这么几行代码: #include #include int main(int argc, char *argv[]) { QApplication app(argc, argv); QPushButton hello("Hello qt!"); hello.show(); return app.exec(); } qt中的每个API类都有一个与其同名的头文件对其进行声明。例如这段代码中,头文件QApplication中包含了QApplication类的声...

by zxz1984 - GUI编程 - 2008-11-08 01:41:55 阅读(2582) 回复(0)

相关讨论

solaris 10 中gcc 和qt 是安装系统时带的,编译时显示找不到qapplication.h 更改目录后又显示错误:库 -lqt 没有找到,, 请问如何解决?? 生成的Makefile中的qtDIR 怎么改变其默认值??

by freegzh - Solaris - 2005-10-14 18:32:31 阅读(1112) 回复(3)

编译qt库需要系统具备什么条件啊?? 以来关系何如啊?

by linuxsir_XP - C/C++ - 2005-01-30 12:08:53 阅读(862) 回复(1)

菜鸟刚接触qt, 按<qt3>>写了个hello qt! 如下: #include #include int main(int argc, char *argv[]) { QApplication app (argc, argv); QLabel *label = new QLabel("Hello qt!", 0); app.setMainWidget(label); label->show(); return app.exec(); } 在make 时出现很多 undefined reference 报错, 请帮忙!!!! [root@ws q...

by ldrun - GUI编程 - 2007-02-12 15:58:06 阅读(7133) 回复(4)

http://www.qiliang.net/qt/tutorial1-01.html 按照这里的文章... 链接时不能通过... 是不是库没有装好啊.. 我的系统是debian sid. [code]dpkg -l|grep qt ii libavahi-qt3-1 0.6.12-1 Avahi qt3 integration library ii libavahi-qt3-dev 0.6.12-1 Development headers for the Avahi qt3 integr ii libdbus-qt-1-1c2 0.62-4 ...

by rushrush - C/C++ - 2006-08-26 22:57:10 阅读(1070) 回复(1)

我们在用qt3.*编译的时候通常会用到以下几个命令: qmake -project qmake *.pro make ./* 那么我想用面命令返回到qmake -project前的几个文件,也就是把那些*.o *等文件全部除去应该用什么命令?

by 黑色星光 - GUI编程 - 2007-12-08 16:40:16 阅读(2295) 回复(2)

我用的是redhat9.0,自带的qt-3.1,刚开始使用,想那个简单程序先运行一下, 当我使用qtdesigner编辑好程序后,运行出现错误,请各位指教。hehe.pro是工程的名字 [lili@localhost lili]$ qmake hehe.pro [lili@localhost lili]$ make g++ -c -pipe -Wall -W -O2 -march=i386 -mcpu=i686 -g -DGLX_GLXEXT_LEGACY -fno-use-cxa-atexit -fno-exceptions -Dqt_NO_DEBUG -I/usr/lib/qt-3.1/mkspecs/default -I. -I/usr/lib/qt-3.1/inc...

by baojian_322 - GUI编程 - 2006-11-23 21:21:40 阅读(2598) 回复(5)

qt4下无法通过:求助。。修改哪些部分 #include #include #include #include class myclass:public QWidget {public: myclass(); }; myclass::myclass() {setGeometry(100,100,150,50); QGroupBox *groupbox= new QGroupBox(this); groupbox->setGeometry(10,10,130,30); groupbox->setTitle("A group box"); QLabel *label=new QLabel(this); label->setGeometry(30,35,90...

by hurong4597 - GUI编程 - 2006-04-25 15:27:57 阅读(2060) 回复(2)

各位我使用了最原始的Hello world 开始学习,可是qmake [project] ;qmak; make; 出错,信息和代码如下: -------------------------------------- #include #include int main( int argc, char **argv ) { QApplication a( argc, argv ); QPushButton hello( "Hello world!", 0 ); hello.resize( 100, 30 ); a.setMainWidget( &hello ); hello.show(); return a.exe...

by TurboDisk - GUI编程 - 2006-03-28 15:19:57 阅读(2590) 回复(5)

已经配置好了.cshrc文件 但是在INSTALL文件中,读到qt3.3版本不支持irix 啊 下面是我编译过程中出现的错误

by zhunliji - 其他UNIX - 2005-03-28 12:05:26 阅读(1874) 回复(0)

编译时出现错误: unresolved external 'qmain;' referenced from c:\qt\3.2.3\lib\qtmain.lib|qtmain_win 请高手指教!!

by lostscrew - Linux论坛 - 2004-11-02 11:18:01 阅读(647) 回复(1)