主题 : 在/opt/Qtopia/bin目录下有qt4-starter,这个程序是如何编译的 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 17257
精华: 0
发帖: 24
金钱: 120 两
威望: 24 点
贡献值: 0 点
综合积分: 48 分
注册时间: 2010-03-26
最后登录: 2011-05-22
楼主  发表于: 2011-04-25 21:43

 在/opt/Qtopia/bin目录下有qt4-starter,这个程序是如何编译的

在/opt/Qtopia/bin目录下有qt4-starter可执行文件,是怎么编译来的,是用qtopia环境编译的??还是用qt4.7环境编译的??  
    为什么单独运行./qt4-starter -qws,不能执行。。。。。。。
级别: 新手上路
UID: 59206
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
贡献值: 0 点
综合积分: 12 分
注册时间: 2011-11-21
最后登录: 2017-12-13
1楼  发表于: 2012-06-16 13:36
大概的原理应该是。
1.窗体 showFullScreen().
2.做个定时器,启动/bin/qt4脚本。

#include <stdlib.h>
#include <stdio.h>
#include "hello.h"
#include <qapplication.h>
#include <qtimer.h>
HelloForm::HelloForm( QWidget* parent, const char* name, WFlags fl):
HelloBaseForm(parent, name, fl)
{
this->showFullScreen();
QTimer::singleShot(200, this, SLOT(runqt4app()));

}
HelloForm::~HelloForm()
{
}
void HelloForm::runqt4app()
{
system("qt4");
qApp->quit();
}