首页| 论坛| 消息

标题:qte4.5.1 做hello的实验的问题,请给指教:菜鸟发问
作者:pangjie375
日期:2009-05-21 00:26
内容:

hi,你们好,
我在我的虚拟机上装了qt-embedded-4.5.1-arm,qt-x11-4.5.1想做个hello的实验,
首先我用tmake1.13的progen生成一个hello.pro,
接着我用qt-x11-4.5.1下的 designer生成了一个hello.ui 文件,然后我用 uic -o hello.h hello.ui 生成了一个hello.h 文件,如下面所示. 接着我想用 uic -o hello.cpp -impl hello.h hello.ui
来生成hello.cpp文件的,他提示我没有-impl这个选项 如果我不加这个选项也可以生成hello.cpp文件但内容和hello.h文件的内容是一样的,我发现qt -x11-4.5.1 下面还有个uic3 ,我就用uic3命令来重复上面两个命令(uic3 -o hello.h hello.ui和uic3 -o hello.cpp -impl hello.h hello.ui),没有出错生成了hello.h 文件和hello.cpp文件, 但是这两个文件没有内容啊,很郁闷,请问大侠们这是怎么回事啊,uic和uic3有什么区别啊,是版本不一样嘛,请大家指教了,谢谢了先.
/********************************************************************************
** Form generated from reading ui file 'hello.ui'
**
** Created: Wed May 20 22:06:29 2009
**by: Qt User Interface Compiler version 4.5.1
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/
#ifndef HELLO_H
#define HELLO_H
#include
#include
#include
#include
#include
#include
#include
#include
QT_BEGIN_NAMESPACE
class Ui_Hello
{
public:
QPushButton *pushButton;
QTextEdit *textEdit;
void setupUi(QWidget *Hello)
{
if (Hello->objectName().isEmpty())
Hello->setObjectName(QString::fromUtf8(&q ..


#1 [fight 05-21 21:34]
请问你安装的什么版本的linux和虚拟机?

回复 发表
主题 版块