• 大小: 24.81MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-28
  • 语言: 其他
  • 标签: pdf  Qt4  例子源码  

资源简介

精通Qt4编程pdf高清电子版 详细具体由浅入深,入门精通的好书 附例子源码

资源截图

代码片段和文件信息

/***************************************************************************
 *   Copyright (C) 2007 by lcf   *
 *   lcf@localhost   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not write to the                         *
 *   Free Software Foundation Inc.                                       *
 *   59 Temple Place - Suite 330 Boston MA  02111-1307 USA.             *
 ***************************************************************************/
#include 
#include 
#include 
#include 
#include 
#include 
int main(int argc char* argv[])
{
QApplication app(argc argv);
QTextCodec::setCodecForTr(QTextCodec::codecForName(“gb18030“));
QWidget* pWidget = new QWidget;
QLabel label(pWidget);
label.setText(Qobject::tr(“同一个世界,同一个梦想!“));
QPushButton* btn = new QPushButton(Qobject::tr(“关闭“) pWidget);
QVBoxLayout* layout = new QVBoxLayout;
layout->addWidget(&label);
layout->addWidget(btn);
pWidget->setLayout(layout);
Qobject::connect(btn SIGNAL(clicked()) pWidget SLOT(close()));
pWidget->show();
return app.exec();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       4663  2013-04-13 01:10  精通Qt4编程\Qt4Code\chapter01\hello\.cproject

     文件       2972  2013-04-13 01:10  精通Qt4编程\Qt4Code\chapter01\hello\.project

     文件       3502  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter01\hello\hello.kdevelop

     文件        770  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter01\hello\hello.kdevelop.pcs

     文件        448  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter01\hello\hello.kdevses

     文件         29  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter01\hello\hello.pro

     文件       5388  2013-04-13 01:10  精通Qt4编程\Qt4Code\chapter01\hello\Makefile

     文件       2075  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter01\hello\src\hello.cpp

     文件       5636  2013-04-13 01:10  精通Qt4编程\Qt4Code\chapter01\hello\src\Makefile

     文件       4694  2013-04-13 01:10  精通Qt4编程\Qt4Code\chapter01\hello\src\Makefile.Debug

     文件       4733  2013-04-13 01:10  精通Qt4编程\Qt4Code\chapter01\hello\src\Makefile.Release

     文件         38  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter01\hello\src\src.pro

     文件       3525  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\builtin\builtin.kdevelop

     文件       4516  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\builtin\builtin.kdevelop.pcs

     文件        736  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\builtin\builtin.kdevses

     文件         29  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\builtin\builtin.pro

     文件        826  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\builtin\src\builtin.cpp

     文件       4421  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\builtin\src\builtindlg.cpp

     文件        565  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\builtin\src\builtindlg.h

     文件        275  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\builtin\src\src.pro

     文件       3523  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\mydialog\mydialog.kdevelop

     文件       3138  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\mydialog\mydialog.kdevelop.pcs

     文件        601  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\mydialog\mydialog.kdevses

     文件         29  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\mydialog\mydialog.pro

     文件       1497  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\mydialog\src\logindlg.cpp

     文件        298  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\mydialog\src\logindlg.h

     文件        820  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\mydialog\src\mydialog.cpp

     文件        274  2007-11-15 19:56  精通Qt4编程\Qt4Code\chapter02\mydialog\src\src.pro

     文件        389  2007-06-29 22:28  精通Qt4编程\Qt4Code\chapter03\CSS\CSS.pro

     文件     390353  2007-06-30 21:59  精通Qt4编程\Qt4Code\chapter03\CSS\images\bkg3.png

............此处省略1118个文件信息

评论

共有 条评论