📄 t13-main-cpp.html
字号:
<!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 - t13/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="t13.html">tutorial 13</a>: main.cpp</h1><br clear="all"><hr> <pre>/******************************************************************** Qt tutorial 13******************************************************************/#include <<a href="qapplication-h.html">qapplication.h</a>>#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>( &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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -