-
大小: 33MB文件类型: .bz2金币: 1下载: 0 次发布日期: 2023-07-24
- 语言: 其他
- 标签: Qt4.8.5 Ubuntu10.04
资源简介
该Qt4.8.5是本人亲自按照友善之臂开发板给出的方法编译而成,功能齐全,最最保守,适合Ubuntu10.04,目测适合所有Linux系统。只需解压到根目录下即可完美使用。与之配套的免编译版Qt4.8.5-arm本人亦会上传,同样是解压即用。
代码片段和文件信息
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the demonstration applications of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or alternatively in accordance with the terms contained in
** a written agreement between you and Digia. For licensing terms and
** conditions see http://qt.digia.com/licensing. For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition as a special exception Digia gives you certain additional
** rights. These rights are described in the Digia Qt LGPL Exception
** version 1.1 included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include “xform.h“
#include
int main(int argc char **argv)
{
Q_INIT_RESOURCE(affine);
QApplication app(argc argv);
XFormWidget xformWidget(0);
Qstyle *arthurstyle = new Arthurstyle();
xformWidget.setstyle(arthurstyle);
QList widgets = xformWidget.findChildren();
foreach (QWidget *w widgets) {
w->setstyle(arthurstyle);
w->setAttribute(Qt::WA_AcceptTouchEvents);
}
xformWidget.show();
return app.exec();
}
评论
共有 条评论