Qt 4.8
|
#include <QtCore/qobject.h>
#include <QtCore/qcoreevent.h>
#include <QtCore/qeventloop.h>
Go to the source code of this file.
Classes | |
class | QCoreApplication |
The QCoreApplication class provides an event loop for console Qt applications. More... | |
Macros | |
#define | Q_DECLARE_TR_FUNCTIONS(context) |
The Q_DECLARE_TR_FUNCTIONS() macro declares and implements two translation functions, tr() and trUtf8() , with these signatures: More... | |
#define | qApp QCoreApplication::instance() |
Typedefs | |
typedef struct tagMSG | MSG |
typedef void(* | QtCleanUpFunction) () |
Functions | |
Q_CORE_EXPORT QString | decodeMSG (const MSG &) |
Q_CORE_EXPORT QDebug | operator<< (QDebug, const MSG &) |
Q_CORE_EXPORT void | qAddPostRoutine (QtCleanUpFunction) |
Q_CORE_EXPORT QString | qAppName () |
Q_CORE_EXPORT void | qRemovePostRoutine (QtCleanUpFunction) |
#define Q_DECLARE_TR_FUNCTIONS | ( | context | ) |
The Q_DECLARE_TR_FUNCTIONS() macro declares and implements two translation functions, tr()
and trUtf8()
, with these signatures:
This macro is useful if you want to use QObject::tr() or QObject::trUtf8() in classes that don't inherit from QObject.
Q_DECLARE_TR_FUNCTIONS() must appear at the very top of the class definition (before the first public:
or protected:
). For example:
The context parameter is normally the class name, but it can be any string.
Definition at line 267 of file qcoreapplication.h.
#define qApp QCoreApplication::instance() |
Definition at line 69 of file qcoreapplication.h.
Referenced by QCalendarWidgetPrivate::_q_yearClicked(), QCalendarWidgetPrivate::_q_yearEditingFinished(), QWidget::activateWindow(), QApplication::alert(), applicationEventHandler(), QTextHtmlParserNode::applyBackgroundImage(), QGtkStylePrivate::applyCustomPaletteHash(), QApplicationPrivate::applyX11SpecificCommandLineArguments(), axs_FilterProc(), QApplication::changeOverrideCursor(), QX11EmbedWidgetPrivate::checkActivateWindow(), QApplication::clipboard(), QX11Data::clipboardWaitForEvent(), QPrintDialogPrivate::closeCarbonPrintPanel(), QDeclarativeTextEdit::closeSoftwareInputPanel(), QDeclarativeTextInput::closeSoftwareInputPanel(), constructModifierMask(), QShortcutMap::correctGraphicsWidgetContext(), QShortcutMap::correctWidgetContext(), QSettingsPrivate::create(), create_wm_client_leader(), QXIMInputContext::create_xim(), QClassFactory::CreateInstanceHelper(), QGLPixmapData::createPixmapForImage(), QWSDisplay::Data::Data(), QKeySequencePrivate::decodeString(), QDeclarativeItemModule::defineModule(), QDeclarativeUtilModule::defineModule(), QDeclarativeItemModule::defineModuleCompat(), QDeclarativeUtilModule::defineModuleCompat(), QGestureManager::deliverEvents(), QWidget::destroy(), QVFbScreen::disconnect(), QApplicationPrivate::dispatchEnterLeave(), DllCanUnloadNow(), QX11Data::dndEnable(), QDragManager::drag(), QMacStyle::drawControl(), QTextImageHandler::drawObject(), QOleDropTarget::Drop(), DumpIDL(), dumpRecursive(), effectiveState(), QX11EmbedContainer::embedClient(), QApplicationPrivate::emitLastWindowClosed(), enableIme(), QKeySequencePrivate::encodeString(), QWSServer::endDisplayReconfigure(), QIconLoader::ensureInitialized(), QDeclarativeSystemPalette::eventFilter(), QAxHostWidget::eventFilter(), QMenuBar::eventFilter(), QGraphicsScene::eventFilter(), QApplication::exec(), QSystemTrayIconSys::findTrayGeometry(), findWindowThatShouldDisplayMenubar(), flipPoint(), QEventDispatcherBlackberryQPA::flush(), QEventDispatcherQWS::flush(), QEventDispatcherQPA::flush(), QEventDispatcherMac::flush(), QIcon::fromTheme(), getNetWmState(), QGtkStylePrivate::getThemeFont(), QAxServerBase::GetUserType(), QMacInputContext::globalEventProcessor(), QApplicationPrivate::globalEventProcessor(), glScreenForDevice(), QGraphicsWidget::grabShortcut(), QWidget::grabShortcut(), QWidgetPrivate::handleSoftwareInputPanel(), QEventDispatcherQPAPrivate::hasIntegration(), QWidgetPrivate::hide_helper(), QWidgetPrivate::hide_sys(), QWidgetPrivate::hideChildren(), QGuiPlatformPlugin::iconThemeSearchPaths(), QWidgetPrivate::inheritStyle(), QGraphicsScenePrivate::init(), QPrinter::init(), QWidgetPrivate::init(), init_display(), QGtkStylePrivate::initGtkWidgets(), QBBScreenEventHandler::injectPointerMoveEvent(), QWidgetPrivate::inputContext(), QDeclarativeDebugServer::instance(), QGestureManager::instance(), QGLSignalProxy::instance(), QTextImageHandler::intrinsicSize(), QWidgetPrivate::isBackgroundInherited(), isServerProcess(), QPrinter::isValid(), jump(), QFontDatabase::load(), QTextDocument::loadResource(), loadWin(), QFontDatabase::loadXlfd(), make_win_eventUPP(), QKeyEvent::matches(), maybeSwapShortcut(), QTest::mouseEvent(), QDeclarativeTextInput::mouseReleaseEvent(), QDeclarativeTextEdit::mouseReleaseEvent(), QAccessibleWidget::navigate(), QApplication::notify(), QAxServerBase::OnAmbientPropertyChange(), onApplicationChangedActivation(), onApplicationWindowChangedActivation(), QAxClientSite::OnFocus(), QAxClientSite::OnUIDeactivate(), QDeclarativeTextEdit::openSoftwareInputPanel(), QDeclarativeTextInput::openSoftwareInputPanel(), QApplication::overrideCursor(), QDecorationStyled::paint(), QDecorationWindows::paint(), QDecorationDefault::paint(), QDecorationWindows::paintButton(), QAccessibleWidget::parentObject(), QDeclarativeJS::Parser::parse(), parseGeometry(), PixmapEntry::pixmap(), QAuServerNAS::play(), QMacStyle::polish(), QGtkStyle::polish(), QEventDispatcherQWS::processEvents(), QEventDispatcherX11::processEvents(), QGuiEventDispatcherWin32::processEvents(), QWSKeyboardHandler::processKeycode(), q_createNativeChildrenAndSetParent(), qAxFactory(), QBBIntegration::QBBIntegration(), QClipboardINCRTransaction::QClipboardINCRTransaction(), QDeclarativeApplication::QDeclarativeApplication(), QDeclarativeSystemPalette::QDeclarativeSystemPalette(), QDirectPainter::QDirectPainter(), QTest::qExec(), QFontComboBox::QFontComboBox(), QFontEngineX11FT::QFontEngineX11FT(), QMdiSubWindow::QMdiSubWindow(), QNlaEngine::QNlaEngine(), QShortcut::QShortcut(), qstring_to_xtp(), qt_cleanup(), qt_dispatchTabletProximityEvent(), qt_grab_cursor(), qt_init(), qt_init_app_proc_handler(), qt_init_tablet_proximity_handler(), qt_mac_applicationmenu_string(), qt_mac_display_change_callbk(), qt_mac_dnd_update_action(), qt_mac_get_mac_modifiers(), qt_mac_get_modifiers(), qt_mac_menu_event(), qt_mac_mouse_inside_answer_rect(), qt_mac_set_modal_state_helper_recursive(), qt_mac_should_disable_menu(), qt_mac_unregister_widget(), qt_mac_update_os_settings(), qt_macSymbolForQtKey(), qt_new_audio_server(), qt_painter_thread_test(), qt_pixmap_thread_test(), qt_tablet_cleanup_wce(), qt_win_display_dc(), qt_wince_full_screen(), qt_x11_wait_for_window_manager(), qt_x11EventFilter(), QTipLabel::QTipLabel(), qtkeyForMacSymbol(), QtWndProc(), QAccessible::queryAccessibleInterface(), QUIKitScreen::QUIKitScreen(), QWaylandWindow::QWaylandWindow(), QWhatsThisPrivate::QWhatsThisPrivate(), QWidgetPrivate::QWidgetPrivate(), QWindowsCEStyle::QWindowsCEStyle(), QWindowsMobileStyle::QWindowsMobileStyle(), qwsEventSourceDispatch(), QApplication::qwsProcessEvent(), QX11EmbedContainer::QX11EmbedContainer(), QXcbConnection::QXcbConnection(), QVFbKeyboardHandler::readKeyboardData(), QVFbScreenKeyboardHandler::readKeyboardData(), QWSDisplay::Data::reinit(), QGraphicsWidget::releaseShortcut(), QWidget::releaseShortcut(), QAlphaWidget::render(), QStyleSheetStyle::repolish(), QDirectPainter::reserveRegion(), QApplication::restoreOverrideCursor(), QAlphaWidget::run(), QRollEffect::run(), QEventDispatcherQPAPrivate::runEventLoopIntegration(), QGraphicsTextItem::sceneEvent(), screenForDevice(), QRollEffect::scroll(), QTest::sendKeyEvent(), QDeclarativeTextInputPrivate::sendMouseEventToInputContext(), QApplication::setActiveWindow(), QWidget::setAttribute(), QShortcut::setAutoRepeat(), QAction::setAutoRepeat(), QApplication::setColorSpec(), QShortcut::setContext(), QShortcut::setEnabled(), QAction::setEnabled(), QApplicationPrivate::setFocusWidget(), QApplication::setFont(), QWidget::setInputMethodHints(), QShortcut::setKey(), QApplication::setOverrideCursor(), QApplicationPrivate::setPalette_helper(), QWidget::setParent(), QAction::setShortcut(), QGraphicsWidget::setShortcutAutoRepeat(), QWidget::setShortcutAutoRepeat(), QAction::setShortcutContext(), QGraphicsWidget::setShortcutEnabled(), QWidget::setShortcutEnabled(), QAction::setShortcuts(), QApplication::setStyle(), QWidget::setStyle(), QApplication::setStyleSheet(), QGtkStylePrivate::setupGtkFileChooser(), QAction::setVisible(), QWidget::setVisible(), QWSDisplay::setWindowCaption(), QWidget::setWindowState(), QMacPrintEnginePrivate::shouldSuppressStatus(), QWidget::show(), QWidgetPrivate::show_helper(), QTest::simulateEvent(), sm_dieCallback(), sm_performSaveYourself(), QUIKitEventLoop::startEventLoop(), QAuServerNAS::stop(), QApplication::style(), QStyleSheetStyle::styleRules(), QApplication::syncX(), QSystemTrayIconSys::sysTrayTracker(), QCoreFuriCuri::timerEvent(), QKeyMapperPrivate::translateKeyEvent(), QETWidget::translateKeyEvent(), QETWidget::translateMouseEvent(), QETWidget::translateWheelEvent(), QETWidget::translateXinputEvent(), QMacStyle::unpolish(), QGtkStyle::unpolish(), QStyleSheetStyle::unpolish(), QUIKitScreen::updateInterfaceOrientation(), QWidget::updateMicroFocus(), UpdateRegistry(), QGtkStyleUpdateScheduler::updateTheme(), QWSDisplay::Data::waitForRegionAck(), QWSDisplay::Data::waitForRegionEvents(), QAxScriptSite::window(), QX11EmbedWidget::x11Event(), QX11EmbedContainer::x11Event(), x11EventSourceDispatch(), QApplication::x11ProcessEvent(), QAction::~QAction(), QDirectPainterPrivate::~QDirectPainterPrivate(), QGraphicsScene::~QGraphicsScene(), QShortcut::~QShortcut(), and QWidget::~QWidget().
typedef struct tagMSG MSG |
Definition at line 54 of file qcoreapplication.h.
typedef void(* QtCleanUpFunction) () |
Definition at line 282 of file qcoreapplication.h.
Q_CORE_EXPORT QString decodeMSG | ( | const MSG & | ) |
Definition at line 645 of file qcoreapplication_win.cpp.
Referenced by operator<<(), and valueCheck().
Q_CORE_EXPORT QDebug operator<< | ( | QDebug | , |
const MSG & | |||
) |
Definition at line 1058 of file qcoreapplication_win.cpp.
|
related |
Definition at line 273 of file qcoreapplication.cpp.
Referenced by QNetworkConfigurationManagerPrivate::addPostRoutine(), QX11PixmapData::bitmap_to_mask(), build_scale_table(), clipboardData(), QWSCursor::createSystemCursor(), QSqlDatabasePrivate::driverDict(), QGtkStylePrivate::gtkWidgetMap(), QTestAccessibility::initialize(), QMacPasteboardMime::initialize(), QAccessible::installFactory(), QCoreGraphicsPaintEngine::macDisplayColorSpace(), QCoreGraphicsPaintEngine::macGenericColorSpace(), make_widget_eventUPP(), make_win_eventUPP(), Q_GLOBAL_STATIC_WITH_INITIALIZER(), QLibrarySettings::QLibrarySettings(), qt_gl_choose_cmap(), qt_init_picture_handlers(), qt_mac_unregister_widget(), QErrorMessage::qtHandler(), selectionData(), and QX11Data::xdndSetup().
Q_CORE_EXPORT QString qAppName | ( | ) |
Definition at line 575 of file qcoreapplication.cpp.
Referenced by getNetWmState(), qt_mac_menu_merge_text(), qt_tablet_cleanup_wce(), and sm_performSaveYourself().
Q_CORE_EXPORT void qRemovePostRoutine | ( | QtCleanUpFunction | ) |
Definition at line 281 of file qcoreapplication.cpp.