QtCore Module
The QtCore module contains core non-GUI functionality. More...
Types
Module Functions
- QTextStream bin (QTextStream s)
- QTextStream bin_ (QTextStream s)
- QTextStream bom (QTextStream s)
- QTextStream center (QTextStream s)
- QTextStream dec (QTextStream s)
- QTextStream endl (QTextStream s)
- QTextStream fixed (QTextStream s)
- QTextStream flush (QTextStream s)
- QTextStream forcepoint (QTextStream s)
- QTextStream forcesign (QTextStream s)
- QTextStream hex (QTextStream s)
- QTextStream hex_ (QTextStream s)
- QTextStream left (QTextStream s)
- QTextStream lowercasebase (QTextStream s)
- QTextStream lowercasedigits (QTextStream s)
- QTextStream noforcepoint (QTextStream s)
- QTextStream noforcesign (QTextStream s)
- QTextStream noshowbase (QTextStream s)
- QTextStream oct (QTextStream s)
- QTextStream oct_ (QTextStream s)
- object pyqtPickleProtocol ()
- pyqtRemoveInputHook ()
- pyqtRestoreInputHook ()
- pyqtSetPickleProtocol (object)
- object pyqtSignature (str signature, str result = None)
- object pyqtSlot (... types, str name = None, str result = None)
- object Q_ARG (object type, object data)
- object Q_CLASSINFO (str name, str value)
- object Q_ENUMS (...)
- object Q_FLAGS (...)
- object Q_RETURN_ARG (object type)
- float qAbs (float t)
- qAddPostRoutine (callable)
- int qChecksum (bytes s)
- QByteArray qCompress (QByteArray data, int compressionLevel = -1)
- qCritical (str)
- qDebug (str)
- qErrnoWarning (int code, str msg)
- qErrnoWarning (str msg)
- qFatal (str)
- bool qFuzzyCompare (float p1, float p2)
- float qInf ()
- callable qInstallMsgHandler (callable)
- bool qIsFinite (float d)
- bool qIsInf (float d)
- bool qIsNaN (float d)
- bool qIsNull (float d)
- float qQNaN ()
- int qrand ()
- bool qRegisterResourceData (int, bytes, bytes, bytes)
- qRemovePostRoutine (callable)
- int qRound (float d)
- int qRound64 (float d)
- QTextStreamManipulator qSetFieldWidth (int width)
- QTextStreamManipulator qSetPadChar (QChar ch)
- QTextStreamManipulator qSetRealNumberPrecision (int precision)
- bool qSharedBuild ()
- float qSNaN ()
- qsrand (int seed)
- object QT_TR_NOOP (object)
- object QT_TR_NOOP_UTF8 (object)
- object QT_TRANSLATE_NOOP (object, object)
- QByteArray qUncompress (QByteArray data)
- bool qUnregisterResourceData (int, bytes, bytes, bytes)
- str qVersion ()
- qWarning (str)
- QTextStream reset (QTextStream s)
- QTextStream right (QTextStream s)
- QTextStream scientific (QTextStream s)
- QTextStream showbase (QTextStream s)
- object SIGNAL (str)
- object SLOT (str)
- QTextStream uppercasebase (QTextStream s)
- QTextStream uppercasedigits (QTextStream s)
- QTextStream ws (QTextStream s)
Module Members
Detailed Description
The QtCore module contains non-GUI functionality.
All other PyQt modules rely on this module. To import the module use, for
example, the following statement:
from PyQt4 import QtCore
Type Documentation
QtMsgType
Type
Function Documentation
Flushes any buffered data waiting to be written to the
device.
If QTextStream operates on a
string, this function does nothing.
object pyqtPickleProtocol ()
pyqtRemoveInputHook ()
When the QtCore module is imported for the first time it installs a Python
input hook (ie. it sets the value of Python's PyOS_InputHook variable). This
allows commands to be entered at the interpreter prompt while the application
is running. It is then possible to dynamically create new Qt objects and call
the methods of any existing Qt object.
The input hook can cause problems for certain types of application,
particularly those that provide a similar facility through different means.
This function removes the input hook installed by PyQt.
The input hook can be restored using the
pyqtRestoreInputHook()
function.
pyqtRestoreInputHook ()
When the QtCore module is imported for the first time it installs a Python
input hook (ie. it sets the value of Python's PyOS_InputHook variable). This
allows commands to be entered at the interpreter prompt while the application
is running. It is then possible to dynamically create new Qt objects and call
the methods of any existing Qt object.
The input hook can cause problems for certain types of application,
particularly those that provide a similar facility through different means, and
so the pyqtRemoveInputHook()
function is provided to remove it.
This function will restore the input hook if it has been removed.
pyqtSetPickleProtocol (object)
object pyqtSignature (str signature, str result = None)
object pyqtSlot (... types, str name = None, str result = None)
object Q_ARG (object type, object data)
object Q_CLASSINFO (str name, str value)
object Q_ENUMS (...)
object Q_FLAGS (...)
object Q_RETURN_ARG (object type)
float qAbs (float t)
qAddPostRoutine (callable)
int qChecksum (bytes s)
QByteArray qCompress (QByteArray data, int compressionLevel = -1)
qCritical (str)
qDebug (str)
qErrnoWarning (int code, str msg)
qErrnoWarning (str msg)
qFatal (str)
bool qFuzzyCompare (float p1, float p2)
float qInf ()
callable qInstallMsgHandler (callable)
The callable argument may also be None.
bool qIsFinite (float d)
bool qIsInf (float d)
bool qIsNaN (float d)
bool qIsNull (float d)
float qQNaN ()
int qrand ()
bool qRegisterResourceData (int, bytes, bytes, bytes)
qRemovePostRoutine (callable)
int qRound (float d)
int qRound64 (float d)
QTextStreamManipulator qSetFieldWidth (int width)
QTextStreamManipulator qSetPadChar (QChar ch)
QTextStreamManipulator qSetRealNumberPrecision (int precision)
bool qSharedBuild ()
float qSNaN ()
qsrand (int seed)
object QT_TR_NOOP (object)
object QT_TR_NOOP_UTF8 (object)
object QT_TRANSLATE_NOOP (object, object)
bool qUnregisterResourceData (int, bytes, bytes, bytes)
str qVersion ()
qWarning (str)
Resets QTextStream's formatting
options, bringing it back to its original constructed state. The
device, string and any buffered data is left untouched.
object SIGNAL (str)
object SLOT (str)
Member Documentation
int PYQT_VERSION
This member should be treated as a constant.
str PYQT_VERSION_STR
This member should be treated as a constant.
int QT_VERSION
This member should be treated as a constant.
str QT_VERSION_STR
This member should be treated as a constant.