QtCore Module
The QtCore module contains core non-GUI functionality. More...
Types
enum
QtMsgType { QtDebugMsg, QtWarningMsg, QtCriticalMsg, QtFatalMsg, QtSystemMsg }
enum
Type { Invalid, Bool, Int, UInt, ..., UserType }
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
hex (QTextStream
s)
QTextStream
hex_ (QTextStream
s)
QTextStream
left (QTextStream
s)
QTextStream
oct (QTextStream
s)
QTextStream
oct_ (QTextStream
s)
object
pyqtSlot (...
types, str
name = None, str
result = None)
object
Q_ARG (object
type, object
data)
QByteArray
qCompress (QByteArray
data, int
compressionLevel = -1)
QTextStream
reset (QTextStream
s)
QTextStream
right (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
Flushes any buffered data waiting to be written to the
device.
If QTextStream operates on a
string, this function does nothing.
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.
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.
QByteArray qCompress (QByteArray data, int compressionLevel = -1)
The callable argument may also be None.
Resets QTextStream's formatting
options, bringing it back to its original constructed state. The
device, string and any buffered data is left untouched.
Member Documentation
This member should be treated as a constant.
This member should be treated as a constant.
This member should be treated as a constant.
This member should be treated as a constant.