t14-main-cpp.html

来自「qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人」· HTML 代码 · 共 48 行

HTML
48
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Qt Tutorial - t14/main.cpp</title></head><body bgcolor="#ffffff"><p><table width="100%"><tr><td><a href="index.html"><img width="100" height="100" src="qtlogo.png"alt="Home" border="0"><img width="100"height="100" src="face.png" alt="Home" border="0"></a><td valign="top"><div align="right"><img src="dochead.png" width="472" height="27"><br><a href="classes.html"><b>Classes</b></a>- <a href="annotated.html">Annotated</a>- <a href="hierarchy.html">Tree</a>- <a href="functions.html">Functions</a>- <a href="index.html">Home</a>- <a href="topicals.html"><b>Structure</b>  <font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qte</font></a></div></table><p><h1 align=center>Source code for <a href="t14.html">tutorial 14</a>: main.cpp</h1><br clear="all"><hr> <pre>/******************************************************************** Qt tutorial 14******************************************************************/#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;#include "gamebrd.h"int main( int argc, char **argv ){    <a href="qapplication.html#1ee2d1">QApplication::setColorSpec</a>( QApplication::CustomColor );    <a href="qapplication.html">QApplication</a> a( argc, argv );    GameBoard gb;    gb.<a href="qwidget.html#9ede68">setGeometry</a>( 100, 100, 500, 355 );    a.<a href="qapplication.html#7ad759">setMainWidget</a>( &amp;gb );    gb.<a href="qwidget.html#200ee5">show</a>();    return a.<a href="qapplication.html#84c7bf">exec</a>();}</pre><p><p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?