qapplication-h.html
来自「QT 下载资料仅供参考」· HTML 代码 · 共 522 行 · 第 1/2 页
HTML
522 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/reggie/tmp/qt-3.0-reggie-5401/qt-x11-commercial-3.0.5/include/qapplication.h:1 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta name="Translator" content="Cavendish"><meta name="Qt zh_CN Documents Website" content="http://www.qiliang.net/qt"><title>qapplication.h包含文件</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; font-family: "Times New Roman" }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr bgcolor="#E5E5E5"><td valign=center> <a href="index.html"><font color="#004faf">主页</font></a> | <a href="classes.html"><font color="#004faf">所有的类</font></a> | <a href="mainclasses.html"><font color="#004faf">主要的类</font></a> | <a href="annotated.html"><font color="#004faf">注释的类</font></a> | <a href="groups.html"><font color="#004faf">分组的类</font></a> | <a href="functions.html"><font color="#004faf">函数</font></a></td><td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>qapplication.h</h1><p>这里是qapplication.h包含文件的所有文本,一字不差。它仅仅用来说明,版权由Trolltech保留。<hr><pre>/****************************************************************************** $Id: qt/qapplication.h 3.0.5 edited May 28 11:20 $**** Definition of QApplication class**** Created : 931107**** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.**** This file is part of the kernel module of the Qt GUI Toolkit.**** This file may be distributed under the terms of the Q Public License** as defined by Trolltech AS of Norway and appearing in the file** LICENSE.QPL included in the packaging of this file.**** This file may be distributed and/or modified under the terms of the** GNU General Public License version 2 as published by the Free Software** Foundation and appearing in the file LICENSE.GPL included in the** packaging of this file.**** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition** licenses may use this file in accordance with the Qt Commercial License** Agreement provided with the Software.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.**** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for** information about Qt Commercial License Agreements.** See http://www.trolltech.com/qpl/ for QPL licensing information.** See http://www.trolltech.com/gpl/ for GPL licensing information.**** Contact info@trolltech.com if any conditions of this licensing are** not clear to you.************************************************************************/#ifndef QAPPLICATION_H#define QAPPLICATION_H#ifndef QT_H#include "qdesktopwidget.h"#include "qasciidict.h"#include "qpalette.h"#include "qtranslator.h"#include "qstrlist.h"#include "qstringlist.h"#endif // QT_Hclass QSessionManager;class QStyle;class QTranslator;#if defined(Q_WS_QWS)class QWSDecoration;#endiftemplate <class type> class QPtrList;class QApplication;extern Q_EXPORT QApplication *qApp; // global application object#if defined(QT_THREAD_SUPPORT)class QMutex;#endifclass Q_EXPORT QApplication : public QObject{ Q_OBJECTpublic: QApplication( int &argc, char **argv); QApplication( int &argc, char **argv, bool GUIenabled ); enum Type { Tty, GuiClient, GuiServer }; QApplication( int &argc, char **argv, Type );#if defined(Q_WS_X11) QApplication( Display* dpy, HANDLE visual = 0, HANDLE cmap = 0 ); QApplication( Display *dpy, int argc, char **argv, HANDLE visual = 0, HANDLE cmap= 0 );#endif virtual ~QApplication(); int argc() const; char **argv() const; Type type() const;#ifndef QT_NO_STYLE static QStyle &style(); static void setStyle( QStyle* ); static QStyle* setStyle( const QString& );#endif#ifndef Q_QDOC enum ColorMode { NormalColors, CustomColors }; static ColorMode colorMode(); static void setColorMode( QApplication::ColorMode );#endif enum ColorSpec { NormalColor=0, CustomColor=1, ManyColor=2 }; static int colorSpec(); static void setColorSpec( int );#ifndef QT_NO_CURSOR static QCursor *overrideCursor(); static void setOverrideCursor( const QCursor &, bool replace=FALSE ); static void restoreOverrideCursor();#endif static bool hasGlobalMouseTracking(); static void setGlobalMouseTracking( bool enable );#ifndef QT_NO_PALETTE static QPalette palette( const QWidget* = 0 ); static void setPalette( const QPalette &, bool informWidgets=FALSE, const char* className = 0 );#endif static QFont font( const QWidget* = 0 ); static void setFont( const QFont &, bool informWidgets=FALSE, const char* className = 0 ); static QFontMetrics fontMetrics(); QWidget *mainWidget() const; virtual void setMainWidget( QWidget * ); virtual void polish( QWidget * ); static QWidgetList *allWidgets(); static QWidgetList *topLevelWidgets(); static QDesktopWidget *desktop(); static QWidget *activePopupWidget(); static QWidget *activeModalWidget();#ifndef QT_NO_CLIPBOARD static QClipboard *clipboard();#endif QWidget *focusWidget() const; QWidget *activeWindow() const; static QWidget *widgetAt( int x, int y, bool child=FALSE ); static QWidget *widgetAt( const QPoint &, bool child=FALSE ); int exec(); void processEvents(); void processEvents( int maxtime ); void processOneEvent(); bool hasPendingEvents(); int enter_loop(); void exit_loop(); int loopLevel() const; static void exit( int retcode=0 ); static bool sendEvent( QObject *receiver, QEvent *event ); static void postEvent( QObject *receiver, QEvent *event ); static void sendPostedEvents( QObject *receiver, int event_type ); static void sendPostedEvents(); static void removePostedEvents( QObject *receiver ); virtual bool notify( QObject *, QEvent * ); static bool startingUp(); static bool closingDown(); static void flushX(); static void flush(); static void syncX(); static void beep();#ifndef QT_NO_TRANSLATION void setDefaultCodec( QTextCodec * ); QTextCodec* defaultCodec() const; void installTranslator( QTranslator * ); void removeTranslator( QTranslator * );#endif enum Encoding { DefaultCodec, UnicodeUTF8 }; QString translate( const char * context, const char * key, const char * comment = 0, Encoding encoding = DefaultCodec ) const;#ifndef QT_NO_PALETTE // obsolete functions static void setWinStyleHighlightColor( const QColor &c ) { QPalette p( palette() ); p.setColor( QColorGroup::Highlight, c ); setPalette( p, TRUE); } static const QColor &winStyleHighlightColor() { return palette().active().highlight(); }#endif static void setDesktopSettingsAware( bool ); static bool desktopSettingsAware(); static void setCursorFlashTime( int ); static int cursorFlashTime(); static void setDoubleClickInterval( int ); static int doubleClickInterval();#ifndef QT_NO_WHEELEVENT static void setWheelScrollLines( int ); static int wheelScrollLines();#endif static void setGlobalStrut( const QSize & ); static QSize globalStrut();#ifndef QT_NO_COMPONENT static void setLibraryPaths(const QStringList &); static QStringList libraryPaths(); static void addLibraryPath(const QString &); static void removeLibraryPath(const QString &);#endif //QT_NO_COMPONENT static void setStartDragTime( int ms ); static int startDragTime(); static void setStartDragDistance( int l ); static int startDragDistance(); static void setReverseLayout( bool b ); static bool reverseLayout(); static int horizontalAlignment( int align ); static bool isEffectEnabled( Qt::UIEffect ); static void setEffectEnabled( Qt::UIEffect, bool enable = TRUE );#if defined(Q_WS_MAC) virtual bool macEventFilter( EventRef );
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?