Ubuntu 8.04安装Qt4

lywdx posted @ 2009年9月25日 01:51 in HelloQt , 2551 阅读

 

Ubuntu安装Qt的方法很多,可以用命令安装,可以在新立得里安装,也可以在网站下载软件包!

Ubuntu是很方便的,安装东西一条命令就解决了!

我说说我在网站上下载的.bin格式文件的Qt Creator的安装过程吧!(我初学Qt,仅供参考!)

先在网站下载qt-sdk-linux-x86-opensource-2009.03.1.bin(我这个时候是最新的了),然后把它保存在一个目录下,一定要注意,必须是英文目录!

打开终端 到那个目录下  输入

 

chmod +x  qt-sdk-linux-x86-opensource-2009.03.1.bin

./qt-sdk-linux-x86-opensource-2009.03.1.bin

之后的操作就跟windows里没什么差别了!它会弹出一个安装向导,按提示做就可以了!

安装后来个HelloQt,

应用程序->编程->Qt creator

 

 

 

 

 

 



#include <QApplication>
#include <QMainWindow>
#include <QLabel>

int main(int argc, char *argv[])
{
QApplication app(argc,argv);

QMainWindow *window = new QMainWindow;
window->resize(550,350); //窗口大小
window->setWindowTitle("Hello Qt");
QLabel *label = new QLabel("<h2>Hello World!</h2>");

window->setCentralWidget(label);
window->show();

return app.exec();
}

 

 

这样第一个Qt程序就出来了!

 

Avatar_small
tenda 说:
2022年8月09日 10:55

Tenda is a popular brand that supplies various wireless routers that are well known for easy configuration of the WiFi network, and once a new router has been bought, one should make it ready to get it configured such that their LAN connection does move to WiFi to be used by multiple devices. tenda Tenda is the most preferred brand in customer premises wireless equipment due to its good range and stable connection, and their routers are found in 150Mbps and 300Mbps form which can be bought based on customer visibility.

Avatar_small
fiyona cha 说:
2023年1月01日 15:38

Qt4 is a powerful cross-platform application development framework. It is available for many operating systems, including Ubuntu 8.04. In order to install Qt4 on Ubuntu 8.04, you will need to first install the dependencies. These can be found in the Ubuntu repositories. Once the dependencies CBD for Arthritis are installed, you can then use the Ubuntu Software Center to install Qt4.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter