You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5808 lines
170 KiB
5808 lines
170 KiB
<!DOCTYPE Article PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
|
|
<Article>
|
|
<ArtHeader>
|
|
<Title>Python Bindings for TQt (3.18.1)</Title>
|
|
<Author>
|
|
<FirstName>Phil</FirstName>
|
|
<Surname>Thompson</Surname>
|
|
</Author>
|
|
<Abstract>
|
|
<Para>
|
|
This document describes a set of Python bindings for the TQt widget set.
|
|
Contact the author at <Email>phil@riverbankcomputing.co.uk</Email>.
|
|
</Para>
|
|
</Abstract>
|
|
</ArtHeader>
|
|
|
|
|
|
<Sect1><Title>Introduction</Title>
|
|
<Para>
|
|
PyTQt is a set of Python bindings for the TQt toolkit and available for all
|
|
platforms supported by TQt, including Windows, Linux, UNIX, MacOS/X and embedded
|
|
systems such as the Sharp Zaurus and the Compaq iPAQ. They have been tested
|
|
against TQt versions 1.43 to 3.3.6, TQt Non-commercial, TQtopia 1.5.0, and Python
|
|
versions 1.5 to 2.4.2. TQt/Embedded v3 is not supported. TQt v4 is supported
|
|
by PyTQt v4.
|
|
</Para>
|
|
|
|
<Para>
|
|
PyTQt is available under the GPL license for use with the GPL version of TQt, a
|
|
a commercial license for use with the commercial version of TQt, a
|
|
non-commercial license for use with the non-commercial version of TQt v2, and an
|
|
educational license for use with the educational version of TQt.
|
|
</Para>
|
|
|
|
<Para>
|
|
There is also an evaluation version of PyTQt for Windows. This must be used
|
|
with the corresponding evaluation version of TQt.
|
|
</Para>
|
|
|
|
<Para>
|
|
PyTQt is built using SIP (a tool for generating Python extension modules for
|
|
C++ class libraries). SIP v4.6 or later must be installed in order to build
|
|
and run this version of PyTQt.
|
|
</Para>
|
|
|
|
<Para>
|
|
PyTQt for MacOS/X requires TQt v3.1.0 or later and Python v2.3 or later.
|
|
</Para>
|
|
|
|
<Para>
|
|
The bindings are implemented as a number of Python modules
|
|
</Para>
|
|
|
|
<ItemizedList>
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>qt</Literal> is the main module and contains the core classes and most
|
|
user interface widgets.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>qtaxcontainer</Literal> contains a sub-set of the classes implemented
|
|
in TQt's TQAxContainer module, part of TQt's ActiveTQt framework.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>qtcanvas</Literal> contains the classes implemented in TQt's Canvas
|
|
module.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>qtgl</Literal> contains the classes implemented in TQt's OpenGL module.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>qtnetwork</Literal> contains the classes implemented in TQt's Network
|
|
module.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>qtpe</Literal> contains the classes implemented in TQtopia (originally
|
|
called the TQt Palmtop Environment). It is only supported with TQt/Embedded.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>qtsql</Literal> contains the classes implemented in TQt's SQL module.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>qttable</Literal> contains the classes implemented in TQt's Table
|
|
module.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>qtui</Literal> contains the classes implemented in TQt's tqui library.
|
|
These allow GUIs to be created directly from TQt Designer's
|
|
<Literal>.ui</Literal> files.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>qtxml</Literal> contains the classes implemented in TQt's XML module.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>qtext</Literal> contains useful third-party classes that are not part
|
|
of TQt. At the moment it contains bindings for TQScintilla, the port to TQt of
|
|
the Scintilla programmer's editor class.
|
|
</Para>
|
|
</ListItem>
|
|
</ItemizedList>
|
|
|
|
<Para>
|
|
PyTQt also includes the <Literal>pyuic</Literal> and
|
|
<Literal>pylupdate</Literal> utilities which correspond to the TQt
|
|
<Literal>uic</Literal> and <Literal>lupdate</Literal> utilities.
|
|
<Literal>pyuic</Literal> converts the GUI designs created with TQt Designer to
|
|
executable Python code. <Literal>pylupdate</Literal> scans Python code,
|
|
extracts all strings that are candidates for internationalisation, and creates
|
|
an XML file for use by TQt Linguist.
|
|
</Para>
|
|
|
|
<Sect2><Title>Changes</Title>
|
|
<Para>
|
|
The changes visible to the Python programmer in this release are as follows.
|
|
</Para>
|
|
<ItemizedList>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
This version requires SIP v4.4 (or later).
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
Concatenating Python strings and <Literal>TQString</Literal>s is now supported.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>TQString</Literal> now supports the <Literal>*</Literal> and
|
|
<Literal>*=</Literal> operators that behave as they do for Python strings.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>TQString</Literal> is more interoperable with Python string and unicode
|
|
objects. For example they can be passed as arguments to
|
|
<Literal>open()</Literal> and to most (but not all) string methods.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>TQPopupMenu</Literal> (and sub-classes) instances now transfer
|
|
ownership of the menu to Python in the call to <Literal>exec_loop()</Literal>.
|
|
This means the menu's resources are all released when the Python wrapper is
|
|
garbage collected without needing to call
|
|
<Literal>TQObject.deleteLater()</Literal>.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>TQObject.sender()</Literal> now handles Python signals.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
The missing <Literal>MacintoshVersion</Literal> enum has been added.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
<Literal>PYQT_BUILD</Literal> has been removed.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
<ListItem>
|
|
<Para>
|
|
The convention for converting between a C/C++ null pointer and Python's
|
|
<Literal>None</Literal> object has now been universally applied. In previous
|
|
versions a null pointer to, for example, a TQt list container would often be
|
|
converted to an empty list rather than <Literal>None</Literal>.
|
|
</Para>
|
|
</ListItem>
|
|
|
|
</ItemizedList>
|
|
</Sect2>
|
|
</Sect1>
|
|
|
|
|
|
<Sect1><Title>Other PyTQt Goodies</Title>
|
|
<Sect2><Title>Using TQt Designer</Title>
|
|
<Para>
|
|
TQt Designer is a GPL'ed GUI design editor provided by Trolltech as part of TQt.
|
|
It generates an XML description of a GUI design. TQt includes
|
|
<Literal>uic</Literal> which generates C++ code from that XML.
|
|
</Para>
|
|
|
|
<Para>
|
|
PyTQt includes <Literal>pyuic</Literal> which generates Python code from the
|
|
same XML. The Python code is self contained and can be executed immediately.
|
|
</Para>
|
|
|
|
<Para>
|
|
It is sometimes useful to be able to include some specific Python code in the
|
|
output generated by <Literal>pyuic</Literal>. For example, if you are using
|
|
custom widgets, <Literal>pyuic</Literal> has no way of knowing the name of the
|
|
Python module containing the widget and so cannot generate the required
|
|
<Literal>import</Literal> statement. To help get around this,
|
|
<Literal>pyuic</Literal> will extract any lines entered in the
|
|
<Literal>Comment</Literal> field of TQt Designer's
|
|
<Literal>Form Settings</Literal> dialog that begin with
|
|
<Literal>Python:</Literal> and copies them to the generated output.
|
|
</Para>
|
|
|
|
<Para>
|
|
Here's a simple example showing the contents of the <Literal>Comment</Literal>
|
|
field.
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
This comment will be ignored by pyuic.
|
|
Python:
|
|
Python:# Import our custom widget.
|
|
Python:from foo import bar
|
|
</ProgramListing>
|
|
|
|
<Para>
|
|
Here's the corresponding output from <Literal>pyuic</Literal>.
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
from qt import *
|
|
|
|
# Import our custom widget.
|
|
from foo import bar
|
|
</ProgramListing>
|
|
|
|
<Para>
|
|
Thanks to Christian Bird, <Literal>pyuic</Literal> will extract Python code
|
|
entered using TQt Designer to implement slots. In TQt Designer, when you need to
|
|
edit a slot and the source editor appears, enter Python code between the curly
|
|
braces. Don't worry about the correct starting indent level, each line is
|
|
prepended with a correct indentation.
|
|
</Para>
|
|
|
|
<Para>
|
|
Make sure that the <Literal>ui.h</Literal> file is in the same directory as the
|
|
<Literal>.ui</Literal> file when using <Literal>pyuic</Literal>. The
|
|
<Literal>.ui</Literal> file implies the name of the <Literal>.ui.h</Literal>
|
|
file so there is no need to specify it on the command line.
|
|
</Para>
|
|
|
|
<Para>
|
|
Here's an example of a simple slot.
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
void DebMainWindowFrm::browsePushButtonClicked()
|
|
{
|
|
if self.debugging:
|
|
TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
|
|
}
|
|
</ProgramListing>
|
|
|
|
<Para>
|
|
Here is the resulting code when <Literal>pyuic</Literal> is run.
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
class DebMainWindowFrm(TQMainWindow):
|
|
...stuff...
|
|
def browsePushButtonClicked(self):
|
|
if self.debugging:
|
|
TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
|
|
</ProgramListing>
|
|
|
|
<Para>
|
|
Note that indenting is as normal and that <Literal>self</Literal> and all other
|
|
parameters passed to the slot are available.
|
|
</Para>
|
|
|
|
<Para>
|
|
If you use this, you will need to turn off all of the fancy options for the C++
|
|
editor in Designer as it tries to force C++ syntax and that's naturally
|
|
annoying when trying to code in Python.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>Using TQt Linguist</Title>
|
|
<Para>
|
|
TQt includes the <Literal>lupdate</Literal> program which parses C++ source
|
|
files converting calls to the <Literal>QT_TR_NOOP()</Literal> and
|
|
<Literal>QT_TRANSLATE_NOOP()</Literal> macros to <Literal>.ts</Literal>
|
|
language source files. The <Literal>lrelease</Literal> program is then used to
|
|
generate <Literal>.qm</Literal> binary language files that are distributed with
|
|
your application.
|
|
</Para>
|
|
|
|
<Para>
|
|
Thanks to Detlev Offenbach, PyTQt includes the <Literal>pylupdate</Literal>
|
|
program. This generates the same <Literal>.ts</Literal> language source files
|
|
from your PyTQt source files.
|
|
</Para>
|
|
</Sect2>
|
|
</Sect1>
|
|
|
|
|
|
<Sect1><Title>Deploying Commercial PyTQt Applications</Title>
|
|
<Para>
|
|
When deploying commercial PyTQt applications it is necessary to discourage users
|
|
from accessing the underlying PyTQt modules for themselves. A user that used
|
|
the modules shipped with your application to develop new applications would
|
|
themselves be considered a developer and would need their own commercial TQt and
|
|
PyTQt licenses.
|
|
</Para>
|
|
|
|
<Para>
|
|
One solution to this problem is the
|
|
<ULink url="http://www.riverbankcomputing.co.uk/vendorid/">VendorID</ULink>
|
|
package. This allows you to build Python extension modules that can only be
|
|
imported by a digitally signed custom interpreter. The package enables you to
|
|
create such an interpreter with your application embedded within it. The
|
|
result is an interpreter that can only run your application, and PyTQt modules
|
|
that can only be imported by that interpreter. You can use the package to
|
|
similarly restrict access to any extension module.
|
|
</Para>
|
|
|
|
<Para>
|
|
In order to build PyTQt with support for the VendorID package, pass the
|
|
<Literal>-i</Literal> command line flag to <Literal>configure.py</Literal>.
|
|
</Para>
|
|
</Sect1>
|
|
|
|
<Sect1><Title><Literal>pyqtconfig</Literal> and Build System Support</Title>
|
|
<Para>
|
|
The SIP build system (ie. the <Literal>sipconfig</Literal> module) is described
|
|
in the SIP documentation. PyTQt includes the <Literal>pyqtconfig</Literal>
|
|
module that can be used by configuration scripts of other bindings that are
|
|
built on top of PyTQt.
|
|
</Para>
|
|
|
|
<Para>
|
|
The <Literal>pyqtconfig</Literal> module contains the following classes:
|
|
</Para>
|
|
|
|
<VariableList>
|
|
<VarListEntry>
|
|
<Term><Literal>Configuration(sipconfig.Configuration)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
This class encapsulates additional configuration values, specific to PyTQt, that
|
|
can be accessed as instance variables.
|
|
</Para>
|
|
|
|
<Para>
|
|
The following configuration values are provided (in addition to those provided
|
|
by the <Literal>sipconfig.Configuration</Literal> class):
|
|
</Para>
|
|
<VariableList>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_bin_dir</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The name of the directory containing the <Literal>pyuic</Literal> and
|
|
<Literal>pylupdate</Literal> executables.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_config_args</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The command line passed to <Literal>configure.py</Literal> when PyTQt was
|
|
configured.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_mod_dir</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The name of the directory containing the PyTQt modules.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_modules</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
A string containing the names of the PyTQt modules that were installed.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_qt_sip_flags</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
A string of the SIP flags used to generate the code for the
|
|
<Literal>qt</Literal> module and which should be added to those needed by any
|
|
module that imports the <Literal>qt</Literal> module.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_qtaxcontainer_sip_flags</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
A string of the SIP flags used to generate the code for the
|
|
<Literal>qtaxcontainer</Literal> module and which should be added to those
|
|
needed by any module that imports the <Literal>qtaxcontainer</Literal> module.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_qtcanvas_sip_flags</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
A string of the SIP flags used to generate the code for the
|
|
<Literal>qtcanvas</Literal> module and which should be added to those needed by
|
|
any module that imports the <Literal>qtcanvas</Literal> module.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_qtext_sip_flags</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
A string of the SIP flags used to generate the code for the
|
|
<Literal>qtext</Literal> module and which should be added to those needed by
|
|
any module that imports the <Literal>qtext</Literal> module.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_qtgl_sip_flags</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
A string of the SIP flags used to generate the code for the
|
|
<Literal>qtgl</Literal> module and which should be added to those needed by any
|
|
module that imports the <Literal>qtgl</Literal> module.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_qtnetwork_sip_flags</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
A string of the SIP flags used to generate the code for the
|
|
<Literal>qtnetwork</Literal> module and which should be added to those needed
|
|
by any module that imports the <Literal>qtnetwork</Literal> module.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_qtsql_sip_flags</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
A string of the SIP flags used to generate the code for the
|
|
<Literal>qtsql</Literal> module and which should be added to those needed by
|
|
any module that imports the <Literal>qtsql</Literal> module.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_qttable_sip_flags</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
A string of the SIP flags used to generate the code for the
|
|
<Literal>qttable</Literal> module and which should be added to those needed by
|
|
any module that imports the <Literal>qttable</Literal> module.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_qtui_sip_flags</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
A string of the SIP flags used to generate the code for the
|
|
<Literal>qtui</Literal> module and which should be added to those needed by any
|
|
module that imports the <Literal>qtui</Literal> module.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_qtxml_sip_flags</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
A string of the SIP flags used to generate the code for the
|
|
<Literal>qtxml</Literal> module and which should be added to those needed by
|
|
any module that imports the <Literal>qtxml</Literal> module.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_sip_dir</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The name of the base directory where the <Literal>.sip</Literal> files for each
|
|
of the PyTQt modules is installed. A sub-directory exists with the same name as
|
|
the module.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_version</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The PyTQt version as a 3 part hexadecimal number (eg. v3.10 is represented as
|
|
<Literal>0x030a00</Literal>).
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>pyqt_version_str</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The PyTQt version as a string. For development snapshots it will start with
|
|
<Literal>snapshot-</Literal>.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
</VariableList>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>TQtModuleMakefile(sipconfig.SIPModuleMakefile)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The Makefile class for modules that import the <Literal>qt</Literal> module.
|
|
</Para>
|
|
<VariableList>
|
|
<VarListEntry>
|
|
<Term><Literal>finalise(self)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
</VariableList>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>TQtAxContainerModuleMakefile(TQtModuleMakefile)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The Makefile class for modules that import the <Literal>qtaxcontainer</Literal>
|
|
module.
|
|
</Para>
|
|
<VariableList>
|
|
<VarListEntry>
|
|
<Term><Literal>finalise(self)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
</VariableList>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>TQtCanvasModuleMakefile(TQtModuleMakefile)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The Makefile class for modules that import the <Literal>qtcanvas</Literal>
|
|
module.
|
|
</Para>
|
|
<VariableList>
|
|
<VarListEntry>
|
|
<Term><Literal>finalise(self)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
</VariableList>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>TQtExtModuleMakefile(TQtModuleMakefile)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The Makefile class for modules that import the <Literal>qtext</Literal> module.
|
|
</Para>
|
|
<VariableList>
|
|
<VarListEntry>
|
|
<Term><Literal>finalise(self)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
</VariableList>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>TQtGLModuleMakefile(TQtModuleMakefile)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The Makefile class for modules that import the <Literal>qtgl</Literal> module.
|
|
</Para>
|
|
<VariableList>
|
|
<VarListEntry>
|
|
<Term><Literal>finalise(self)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
</VariableList>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>TQtNetworkModuleMakefile(TQtModuleMakefile)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The Makefile class for modules that import the <Literal>qtnetwork</Literal>
|
|
module.
|
|
</Para>
|
|
<VariableList>
|
|
<VarListEntry>
|
|
<Term><Literal>finalise(self)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
</VariableList>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>TQtTableModuleMakefile(TQtModuleMakefile)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The Makefile class for modules that import the <Literal>qttable</Literal>
|
|
module.
|
|
</Para>
|
|
<VariableList>
|
|
<VarListEntry>
|
|
<Term><Literal>finalise(self)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
</VariableList>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>TQtSQLModuleMakefile(TQtTableModuleMakefile)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The Makefile class for modules that import the <Literal>qtsql</Literal> module.
|
|
</Para>
|
|
<VariableList>
|
|
<VarListEntry>
|
|
<Term><Literal>finalise(self)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
</VariableList>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>TQtUIModuleMakefile(TQtModuleMakefile)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The Makefile class for modules that import the <Literal>qtui</Literal> module.
|
|
</Para>
|
|
<VariableList>
|
|
<VarListEntry>
|
|
<Term><Literal>finalise(self)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
</VariableList>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
<VarListEntry>
|
|
<Term><Literal>TQtXMLModuleMakefile(TQtModuleMakefile)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
The Makefile class for modules that import the <Literal>qtxml</Literal> module.
|
|
</Para>
|
|
<VariableList>
|
|
<VarListEntry>
|
|
<Term><Literal>finalise(self)</Literal></Term>
|
|
<ListItem>
|
|
<Para>
|
|
This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
|
|
</Para>
|
|
<Para></Para><Para></Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
</VariableList>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
|
|
</VariableList>
|
|
</Sect1>
|
|
<Sect1><Title>Things to be Aware Of</Title>
|
|
<Sect2><Title>super and Wrapped Classes</Title>
|
|
<Para>
|
|
Internally PyTQt implements a lazy technique for attribute lookup where
|
|
attributes are only placed in type and instance dictionaries when they are
|
|
first referenced. This technique is needed to reduce the time taken to import
|
|
large modules such as PyTQt.
|
|
</Para>
|
|
|
|
<Para>
|
|
In most circumstances this technique is transparent to an application. The
|
|
exception is when <Literal>super</Literal> is used with a PyTQt class. The way
|
|
that <Literal>super</Literal> is currently implemented means that the lazy
|
|
lookup is bypassed resulting in <Literal>AttributeError</Literal> exceptions
|
|
unless the attribute has been previously referenced.
|
|
</Para>
|
|
|
|
<Para>
|
|
Note that this restriction applies to any class wrapped by SIP and not just
|
|
PyTQt.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
|
|
<Sect2><Title>Python Strings, TQt Strings and Unicode</Title>
|
|
<Para>
|
|
Unicode support was added to TQt in v2.0 and to Python in v1.6. In TQt, Unicode
|
|
support is implemented using the <Literal>TQString</Literal> class. It is
|
|
important to understand that <Literal>TQString</Literal>s, Python string objects
|
|
and Python Unicode objects are all different but conversions between them are
|
|
automatic in almost all cases and easy to achieve manually when needed.
|
|
</Para>
|
|
|
|
<Para>
|
|
Whenever PyTQt expects a <Literal>TQString</Literal> as a function argument, a
|
|
Python string object or a Python Unicode object can be provided instead, and
|
|
PyTQt will do the necessary conversion automatically.
|
|
</Para>
|
|
|
|
<Para>
|
|
You may also manually convert Python string and Unicode objects to
|
|
<Literal>TQString</Literal>s by using the <Literal>TQString</Literal> constructor
|
|
as demonstrated in the following code fragment.
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
qs1 = TQString('Converted Python string object')
|
|
qs2 = TQString(u'Converted Python Unicode object')
|
|
</ProgramListing>
|
|
|
|
<Para>
|
|
In order to convert a <Literal>TQString</Literal> to a Python string object use
|
|
the Python <Literal>str()</Literal> function. Applying
|
|
<Literal>str()</Literal> to a null <Literal>TQString</Literal> and an empty
|
|
<Literal>TQString</Literal> both result in an empty Python string object.
|
|
</Para>
|
|
|
|
<Para>
|
|
In order to convert a <Literal>TQString</Literal> to a Python Unicode object use
|
|
the Python <Literal>unicode()</Literal> function. Applying
|
|
<Literal>unicode()</Literal> to a null <Literal>TQString</Literal> and an empty
|
|
<Literal>TQString</Literal> both result in an empty Python Unicode object.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>Access to Protected Member Functions</Title>
|
|
<Para>
|
|
When an instance of a C++ class is not created from Python it is not possible
|
|
to access the protected member functions, or emit the signals, of that
|
|
instance. Attempts to do so will raise a Python exception. Also, any Python
|
|
methods corresponding to the instance's virtual member functions will never be
|
|
called.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title><Literal>None</Literal> and <Literal>NULL</Literal></Title>
|
|
<Para>
|
|
Throughout the bindings, the <Literal>None</Literal> value can be specified
|
|
wherever <Literal>NULL</Literal> is acceptable to the underlying C++ code.
|
|
</Para>
|
|
|
|
<Para>
|
|
Equally, <Literal>NULL</Literal> is converted to <Literal>None</Literal>
|
|
whenever it is returned by the underlying C++ code.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
|
|
<Sect2><Title>Support for C++ <Literal>void *</Literal> Data Types</Title>
|
|
<Para>
|
|
PyTQt represents <Literal>void *</Literal> values as objects of type
|
|
<Literal>sip.voidptr</Literal>. Such values are often used to pass the
|
|
addresses of external objects between different Python modules. To make this
|
|
easier, a Python integer (or anything that Python can convert to an integer)
|
|
can be used whenever a <Literal>sip.voidptr</Literal> is expected.
|
|
</Para>
|
|
<Para>
|
|
A <Literal>sip.voidptr</Literal> may be converted to a Python integer by using
|
|
the <Literal>int()</Literal> builtin function.
|
|
</Para>
|
|
<Para>
|
|
A <Literal>sip.voidptr</Literal> may be converted to a Python string by using
|
|
its <Literal>asstring()</Literal> method. The <Literal>asstring()</Literal>
|
|
method takes an integer argument which is the length of the data in bytes.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
|
|
<Sect2><Title>Support for Threads</Title>
|
|
<Para>
|
|
PyTQt implements the full set of TQt's thread classes. Python, of course, also
|
|
has its own thread extension modules. If you are using SIP v4 (or later) and
|
|
Python v2.3.5 (or later) then PyTQt does not impose any additional restrictions.
|
|
(Read the relevant part of the TQt documentation to understand the restrictions
|
|
imposed by the TQt API.)
|
|
</Para>
|
|
<Para>
|
|
If you are using earlier versions of either SIP or Python then it is possible
|
|
to use either of the APIs so long as you follow some simple rules.
|
|
</Para>
|
|
<ItemizedList>
|
|
<ListItem>
|
|
<Para>
|
|
If you use the TQt API then the very first <Literal>import</Literal> of one of
|
|
the PyTQt modules must be done from the main thread.
|
|
</Para>
|
|
</ListItem>
|
|
<ListItem>
|
|
<Para>
|
|
If you use the Python API then all calls to PyTQt (including any
|
|
<Literal>import</Literal>s) must be done from one thread only. Therefore, if
|
|
you want to make calls to PyTQt from several threads then you must use the TQt
|
|
API.
|
|
</Para>
|
|
</ListItem>
|
|
<ListItem>
|
|
<Para>
|
|
If you want to use both APIs in the same application then all calls to PyTQt
|
|
must be done from threads created using the TQt API.
|
|
</Para>
|
|
</ListItem>
|
|
</ItemizedList>
|
|
<Para>
|
|
The above comments actually apply to any SIP generated module, not just PyTQt.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>Garbage Collection</Title>
|
|
<Para>
|
|
C++ does not garbage collect unreferenced class instances, whereas Python does.
|
|
In the following C++ fragment both colours exist even though the first can no
|
|
longer be referenced from within the program:
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
c = new TQColor();
|
|
c = new TQColor();
|
|
</ProgramListing>
|
|
|
|
<Para>
|
|
In the corresponding Python fragment, the first colour is destroyed when
|
|
the second is assigned to <Literal>c</Literal>:
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
c = TQColor()
|
|
c = TQColor()
|
|
</ProgramListing>
|
|
|
|
<Para>
|
|
In Python, each colour must be assigned to different names. Typically this
|
|
is done within class definitions, so the code fragment would be something like:
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
self.c1 = TQColor()
|
|
self.c2 = TQColor()
|
|
</ProgramListing>
|
|
|
|
<Para>
|
|
Sometimes a TQt class instance will maintain a pointer to another instance and
|
|
will eventually call the destructor of that second instance. The most common
|
|
example is that a <Literal>TQObject</Literal> (and any of its sub-classes) keeps
|
|
pointers to its children and will automatically call their destructors. In
|
|
these cases, the corresponding Python object will also keep a reference to the
|
|
corresponding child objects.
|
|
</Para>
|
|
|
|
<Para>
|
|
So, in the following Python fragment, the first <Literal>TQLabel</Literal> is
|
|
not destroyed when the second is assigned to <Literal>l</Literal> because the
|
|
parent <Literal>TQWidget</Literal> still has a reference to it.
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
p = TQWidget()
|
|
l = TQLabel('First label',p)
|
|
l = TQLabel('Second label',p)
|
|
</ProgramListing>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>C++ Variables</Title>
|
|
<Para>
|
|
Access to C++ variables is supported. They are accessed as Python instance
|
|
variables. For example:
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
tab = TQTab()
|
|
tab.label = "First Tab"
|
|
tab.r = TQRect(10,10,75,30)
|
|
</ProgramListing>
|
|
|
|
<Para>
|
|
Global variables and static class variables are effectively read-only. They
|
|
can be assigned to, but the underlying C++ variable will not be changed. This
|
|
may change in the future.
|
|
</Para>
|
|
|
|
<Para>
|
|
Access to protected C++ class variables is not supported. This may change in
|
|
the future.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>Multiple Inheritance</Title>
|
|
<Para>
|
|
It is not possible to define a new Python class that sub-classes from more than
|
|
one TQt class.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>i18n Support</Title>
|
|
<Para>
|
|
TQt implements i18n support through the TQt Linguist application, the
|
|
<Literal>TQTranslator</Literal> class, and the
|
|
<Literal>TQApplication::translate()</Literal>, <Literal>TQObject::tr()</Literal>
|
|
and <Literal>TQObject::trUtf8()</Literal> methods. Usually the
|
|
<Literal>tr()</Literal> method is used to obtain the correct translation of a
|
|
message. The translation process uses a message context to allow the same
|
|
message to be translated differently. <Literal>tr()</Literal> is actually
|
|
generated by <Literal>moc</Literal> and uses the hardcoded class name as the
|
|
context. On the other hand, <Literal>TQApplication::translate()</Literal>
|
|
allows to context to be explicitly stated.
|
|
</Para>
|
|
|
|
<Para>
|
|
Unfortunately, because of the way TQt implents <Literal>tr()</Literal> (and
|
|
<Literal>trUtf8()</Literal>) it is not possible for PyTQt to exactly reproduce
|
|
its behavour. The PyTQt implementation of <Literal>tr()</Literal> (and
|
|
<Literal>trUtf8()</Literal>) uses the class name of the instance as the
|
|
context. The key difference, and the source of potential problems, is that the
|
|
context is determined dynamically in PyTQt, but is hardcoded in TQt. In other
|
|
words, the context of a translation may change depending on an instance's class
|
|
hierarchy.
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
class A(TQObject):
|
|
def __init__(self):
|
|
TQObject.__init__(self)
|
|
|
|
def hello(self):
|
|
return self.tr("Hello")
|
|
|
|
class B(A):
|
|
def __init__(self):
|
|
A.__init__(self)
|
|
|
|
a = A()
|
|
a.hello()
|
|
|
|
b = B()
|
|
b.hello()
|
|
</ProgramListing>
|
|
|
|
<Para>
|
|
In the above the message is translated by <Literal>a.hello()</Literal> using a
|
|
context of <Literal>A</Literal>, and by <Literal>b.hello()</Literal> using a
|
|
context of <Literal>B</Literal>. In the equivalent C++ version the context
|
|
would be <Literal>A</Literal> in both cases.
|
|
</Para>
|
|
|
|
<Para>
|
|
The PyTQt behaviour is unsatisfactory and may be changed in the future. It is
|
|
recommended that <Literal>TQApplication.translate()</Literal> be used in
|
|
preference to <Literal>tr()</Literal> (and <Literal>trUtf8()</Literal>). This
|
|
is guaranteed to work with current and future versions of PyTQt and makes it
|
|
much easier to share message files between Python and C++ code. Below is the
|
|
alternative implementation of <Literal>A</Literal> that uses
|
|
<Literal>TQApplication.translate()</Literal>.
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
class A(TQObject):
|
|
def __init__(self):
|
|
TQObject.__init__(self)
|
|
|
|
def hello(self):
|
|
return tqApp.translate("A","Hello")
|
|
</ProgramListing>
|
|
|
|
<Para>
|
|
Note that the code generated by <Literal>pyuic</Literal> uses
|
|
<Literal>TQApplication.translate()</Literal>.
|
|
</Para>
|
|
</Sect2>
|
|
</Sect1>
|
|
|
|
|
|
<Sect1><Title>Signal and Slot Support</Title>
|
|
<Para>
|
|
A signal may be either a TQt signal (specified using
|
|
<Literal>SIGNAL()</Literal>) or a Python signal (specified using
|
|
<Literal>PYSIGNAL()</Literal>).
|
|
</Para>
|
|
|
|
<Para>
|
|
A slot can be either a Python callable object, a TQt signal (specified using
|
|
<Literal>SIGNAL()</Literal>), a Python signal (specified using
|
|
<Literal>PYSIGNAL()</Literal>), or a TQt slot (specified using
|
|
<Literal>SLOT()</Literal>).
|
|
</Para>
|
|
|
|
<Para>
|
|
You connect signals to slots (and other signals) as you would from C++. For
|
|
example:
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
TQObject.connect(a,SIGNAL("TQtSig()"),pyFunction)
|
|
TQObject.connect(a,SIGNAL("TQtSig()"),pyClass.pyMethod)
|
|
TQObject.connect(a,SIGNAL("TQtSig()"),PYSIGNAL("PySig"))
|
|
TQObject.connect(a,SIGNAL("TQtSig()"),SLOT("TQtSlot()"))
|
|
TQObject.connect(a,PYSIGNAL("PySig"),pyFunction)
|
|
TQObject.connect(a,PYSIGNAL("PySig"),pyClass.pyMethod)
|
|
TQObject.connect(a,PYSIGNAL("PySig"),SIGNAL("TQtSig()"))
|
|
TQObject.connect(a,PYSIGNAL("PySig"),SLOT("TQtSlot()"))
|
|
</ProgramListing>
|
|
|
|
<Para>
|
|
When a slot is a Python method that corresponds to a TQt slot then a signal can
|
|
be connected to either the Python method or the TQt slot. The following
|
|
connections achieve the same effect.
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
sbar = TQScrollBar()
|
|
lcd = TQLCDNumber()
|
|
|
|
TQObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd.display)
|
|
TQObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))
|
|
</ProgramListing>
|
|
|
|
<Para>
|
|
The difference is that the second connection is made at the C++ level and is
|
|
more efficient.
|
|
</Para>
|
|
|
|
<Para>
|
|
Disconnecting signals works in exactly the same way.
|
|
</Para>
|
|
|
|
<Para>
|
|
Any instance of a class that is derived from the <Literal>TQObject</Literal>
|
|
class can emit a signal using the <Literal>emit</Literal> method. This takes
|
|
two arguments. The first is the Python or TQt signal, the second is a Python
|
|
tuple which are the arguments to the signal. For example:
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
a.emit(SIGNAL("clicked()"),())
|
|
a.emit(PYSIGNAL("pySig"),("Hello","World"))
|
|
</ProgramListing>
|
|
|
|
<Para>
|
|
Note that when a slot is a Python callable object its reference count is not
|
|
increased. This means that a class instance can be deleted without having to
|
|
explicitly disconnect any signals connected to its methods. However, it also
|
|
means that using lambda expressions as slots will not work unless you keep a
|
|
separate reference to the expression to prevent it from being immediately
|
|
garbage collected.
|
|
</Para>
|
|
|
|
<Para>
|
|
TQt allows a signal to be connected to a slot that requires fewer arguments than
|
|
the signal passes. The extra arguments are tquietly discarded. Python slots
|
|
can be used in the same way.
|
|
</Para>
|
|
</Sect1>
|
|
|
|
|
|
<Sect1><Title>Static Member Functions</Title>
|
|
<Para>
|
|
Static member functions are implemented as Python class functions.
|
|
For example the C++ static member function
|
|
<Literal>TQObject::connect()</Literal> is called from Python as
|
|
<Literal>TQObject.connect()</Literal> or <Literal>self.connect()</Literal> if
|
|
called from a sub-class of <Literal>TQObject</Literal>.
|
|
</Para>
|
|
</Sect1>
|
|
|
|
|
|
<Sect1><Title>Enumerated Types</Title>
|
|
<Para>
|
|
Enumerated types are implemented as a set of simple variables corresponding to
|
|
the separate enumerated values.
|
|
</Para>
|
|
|
|
<Para>
|
|
When using an enumerated value the name of the class (or a sub-class) in which
|
|
the enumerated type was defined in must be included. For example:
|
|
</Para>
|
|
|
|
<ProgramListing>
|
|
TQt.SolidPattern
|
|
TQWidget.TabFocus
|
|
TQFrame.TabFocus
|
|
</ProgramListing>
|
|
</Sect1>
|
|
|
|
|
|
<Sect1><Title>Module Reference Documentation</Title>
|
|
<Para>
|
|
The following sections should be used in conjunction with the normal class
|
|
documentation - only the differences specific to the Python bindings are
|
|
documented here.
|
|
</Para>
|
|
|
|
<Para>
|
|
In these sections, <Emphasis>Not yet implemented</Emphasis>
|
|
implies that the feature can be easily implemented if needed. <Emphasis>Not
|
|
implemented</Emphasis> implies that the feature will not be implemented, either
|
|
because it cannot be or because it is not appropriate.
|
|
</Para>
|
|
|
|
<Para>
|
|
If a class is described as being <Emphasis>fully implemented</Emphasis> then
|
|
all non-private member functions and all public class variables have been
|
|
implemented.
|
|
</Para>
|
|
|
|
<Para>
|
|
If an operator has been implemented then it is stated explicitly.
|
|
</Para>
|
|
|
|
<Para>
|
|
Classes that are not mentioned have not yet been implemented.
|
|
</Para>
|
|
</Sect1>
|
|
|
|
|
|
<Sect1><Title><Literal>qt</Literal> Module Reference</Title>
|
|
<Sect2><Title>TQt Constants</Title>
|
|
<Para>
|
|
All constant values defined by TQt have equivalent constants defined to Python.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQt (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQt</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQAccel</Title>
|
|
<Para>
|
|
<Literal>TQAccel</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQAction (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQAction</Literal> is fully implemented.
|
|
</Para>
|
|
|
|
</Sect2>
|
|
<Sect2><Title>TQActionGroup (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQActionGroup</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQApplication</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQApplication</Function></FuncDef>
|
|
<ParamDef>int &<Parameter>argc</Parameter></ParamDef>
|
|
<ParamDef>char **<Parameter>argv</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes one parameter which is a list of argument strings. Arguments
|
|
used by TQt are removed from the list.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQApplication</Function></FuncDef>
|
|
<ParamDef>int &<Parameter>argc</Parameter></ParamDef>
|
|
<ParamDef>char **<Parameter>argv</Parameter></ParamDef>
|
|
<ParamDef>bool <Parameter>GUIenabled</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes two parameters, the first of which is a list of argument strings.
|
|
Arguments used by TQt are removed from the list.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQApplication</Function></FuncDef>
|
|
<ParamDef>int &<Parameter>argc</Parameter></ParamDef>
|
|
<ParamDef>char **<Parameter>argv</Parameter></ParamDef>
|
|
<ParamDef>Type <Parameter>type</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes two parameters, the first of which is a list of argument strings.
|
|
Arguments used by TQt are removed from the list. (TQt v2.2+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>exec</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed to <Literal>exec_loop</Literal> in Python.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQAssistantClient (TQt v3.1+)</Title>
|
|
<Para>
|
|
<Literal>TQAssistantClient</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQBitmap</Title>
|
|
<Para>
|
|
<Literal>TQBitmap</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQBrush</Title>
|
|
<Para>
|
|
<Literal>TQBrush</Literal> is fully implemented, including the Python
|
|
<Literal>==</Literal> and <Literal>!=</Literal> operators.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQButton</Title>
|
|
<Para>
|
|
<Literal>TQButton</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQButtonGroup</Title>
|
|
<Para>
|
|
<Literal>TQButtonGroup</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQByteArray</Title>
|
|
<Para>
|
|
A Python string can be used whenever a <Literal>TQByteArray</Literal> can be
|
|
used. A <Literal>TQByteArray</Literal> can be converted to a Python string
|
|
using the Python <Literal>str()</Literal> function.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQByteArray &<Function>assign</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>uint <Parameter>size</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>char &<Function>at</Function></FuncDef>
|
|
<ParamDef>uint <Parameter>i</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>contains</Function></FuncDef>
|
|
<ParamDef>const char &<Parameter>d</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>fill</Function></FuncDef>
|
|
<ParamDef>const char &<Parameter>d</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>size</Parameter> = -1</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>find</Function></FuncDef>
|
|
<ParamDef>const char &<Parameter>d</Parameter></ParamDef>
|
|
<ParamDef>uint <Parameter>i</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>resetRawData</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>uint<Parameter>size</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQByteArray &<Function>setRawData</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>uint<Parameter>size</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQCDEStyle (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQCDEStyle</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQCheckBox</Title>
|
|
<Para>
|
|
<Literal>TQCheckBox</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQClipboard</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>void *<Function>data</Function> const</FuncDef>
|
|
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented (TQt v1.x).
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>setData</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
|
|
<ParamDef>void *<Parameter></Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented (TQt v1.x).
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQColor</Title>
|
|
<Para>
|
|
The Python <Literal>==</Literal> and <Literal>!=</Literal> operators are
|
|
supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>getHsv</Function></FuncDef>
|
|
<ParamDef>int *<Parameter>h</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>s</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>v</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns the <Literal>h</Literal>,
|
|
<Literal>s</Literal> and <Literal>v</Literal> values as a tuple.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>getRgb</Function></FuncDef>
|
|
<ParamDef>int *<Parameter>r</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>g</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>b</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns the <Literal>r</Literal>,
|
|
<Literal>g</Literal> and <Literal>b</Literal> values as a tuple.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>hsv</Function></FuncDef>
|
|
<ParamDef>int *<Parameter>h</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>s</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>v</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns the <Literal>h</Literal>,
|
|
<Literal>s</Literal> and <Literal>v</Literal> values as a tuple.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>rgb</Function></FuncDef>
|
|
<ParamDef>int *<Parameter>r</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>g</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>b</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns the <Literal>r</Literal>,
|
|
<Literal>g</Literal> and <Literal>b</Literal> values as a tuple.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQColorDialog (TQt v2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>static TQRgb <Function>getRgba</Function></FuncDef>
|
|
<ParamDef>TQRgb <Parameter>initial</Parameter></ParamDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
|
|
<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
|
|
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>initial</Literal>, <Literal>parent</Literal> and
|
|
<Literal>name</Literal> parameters and returns a tuple containing the
|
|
<Literal>TQRgb</Literal> result and the <Literal>ok</Literal> value.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQColorGroup</Title>
|
|
<Para>
|
|
<Literal>TQColorGroup</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQComboBox</Title>
|
|
<Para>
|
|
<Literal>TQComboBox</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQCommonStyle (TQt v2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual void <Function>getButtonShift</Function></FuncDef>
|
|
<ParamDef>int &<Parameter>x</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>y</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns a tuple of the <Literal>x</Literal> and
|
|
<Literal>y</Literal> values. (TQt v2)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual void <Function>tabbarMetrics</Function></FuncDef>
|
|
<ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>hframe</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>vframe</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>overlap</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>t</Literal> parameter and returns a tuple of the
|
|
<Literal>hframe</Literal>, <Literal>vframe</Literal> and
|
|
<Literal>overlap</Literal> values. (TQt v2)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQCString (TQt v2+)</Title>
|
|
<Para>
|
|
A Python string can be used whenever a <Literal>TQCString</Literal> can be used.
|
|
A <Literal>TQCString</Literal> can be converted to a Python string using the
|
|
Python <Literal>str()</Literal> function.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQCString &<Function>sprintf</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
|
|
<ParamDef>...</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>short <Function>toShort</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>short</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>ushort <Function>toUShort</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>ushort</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>toInt</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>int</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>uint <Function>toUInt</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>uint</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>long <Function>toLong</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>long</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>ulong <Function>toULong</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>ulong</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>float <Function>toFloat</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>float</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>double <Function>toDouble</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>double</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQCursor</Title>
|
|
<Para>
|
|
<Literal>TQCursor</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQDataStream</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>TQDataStream &<Function>readBytes</Function></FuncDef>
|
|
<ParamDef>const char *&<Parameter>s</Parameter></ParamDef>
|
|
<ParamDef>uint &<Parameter>l</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters. The <Literal>TQDataStream</Literal> result and the
|
|
data read are returned as a tuple.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQDataStream &<Function>readRawBytes</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>s</Parameter></ParamDef>
|
|
<ParamDef>uint <Parameter>l</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>l</Literal> parameter. The
|
|
<Literal>TQDataStream</Literal> result and the data read are returned as a
|
|
tuple.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQDataStream &<Function>writeBytes</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>s</Parameter></ParamDef>
|
|
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
<Literal>len</Literal> is derived from <Literal>s</Literal> and not passed as a
|
|
parameter.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQDataStream &<Function>writeRawBytes</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>s</Parameter></ParamDef>
|
|
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
<Literal>len</Literal> is derived from <Literal>s</Literal> and not passed as a
|
|
parameter.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQDate</Title>
|
|
<Para>
|
|
The Python
|
|
<Literal>==</Literal>, <Literal>!=</Literal>,
|
|
<Literal><</Literal>, <Literal><=</Literal>,
|
|
<Literal>></Literal>, <Literal>>=</Literal>
|
|
and <Literal>__nonzero__</Literal>
|
|
operators are supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>weekNumber</Function></FuncDef>
|
|
<ParamDef>int *<Parameter>yearNum</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns the week number and the year number as a
|
|
tuple. (TQt v3.1+)
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDateTime</Title>
|
|
<Para>
|
|
<Literal>TQDateTime</Literal> is fully implemented, including the Python
|
|
<Literal>==</Literal>, <Literal>!=</Literal>,
|
|
<Literal><</Literal>, <Literal><=</Literal>,
|
|
<Literal>></Literal>, <Literal>>=</Literal>
|
|
and <Literal>__nonzero__</Literal>
|
|
operators.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQTime</Title>
|
|
<Para>
|
|
<Literal>TQTime</Literal> is fully implemented, including the Python
|
|
<Literal>==</Literal>, <Literal>!=</Literal>,
|
|
<Literal><</Literal>, <Literal><=</Literal>,
|
|
<Literal>></Literal>, <Literal>>=</Literal>
|
|
and <Literal>__nonzero__</Literal>
|
|
operators.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQDateEdit (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQDateEdit</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQTimeEdit (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQTimeEdit</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDateTimeEdit (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQDateTimeEdit</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQDesktopWidget (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQDesktopWidget</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQDial (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDial</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQDialog</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>exec</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed to <Literal>exec_loop</Literal> in Python.
|
|
</Para>
|
|
<Para>
|
|
This method also causes ownership of the underlying C++ dialog to be transfered
|
|
to Python. This means that the C++ dialog will be deleted when the Python
|
|
wrapper is garbage collected. Although this is a little inconsistent, it
|
|
ensures that the dialog is deleted without having to explicity code it using
|
|
<Literal>TQObject.deleteLater()</Literal> or other techniques.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQDir</Title>
|
|
<Para>
|
|
<Literal>TQDir</Literal> is fully implemented, including the Python
|
|
<Literal>len</Literal>, <Literal>[]</Literal> (for reading slices and
|
|
individual elements), <Literal>==</Literal>, <Literal>!=</Literal> and
|
|
<Literal>in</Literal> operators
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQFileInfoList</Title>
|
|
<Para>
|
|
This class isn't implemented. Whenever a <Literal>TQFileInfoList</Literal> is
|
|
the return type of a function or the type of an argument, a Python list of
|
|
<Literal>TQFileInfo</Literal> instances is used instead.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQDockArea (TQt v3+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>hasDockWindow</Function> const</FuncDef>
|
|
<ParamDef>TQDockWindow *<Parameter>w</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>index</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>w</Literal> parameter and returns the index of the
|
|
TQDockWIndow or -1 if the TQDockArea does not contain the TQDockWindow.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQDockWindow (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQDockWindow</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQColorDrag (TQt v2.1+)</Title>
|
|
<Para>
|
|
<Literal>TQColorDrag</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDragObject</Title>
|
|
<Para>
|
|
<Literal>TQDragObject</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQImageDrag</Title>
|
|
<Para>
|
|
<Literal>TQImageDrag</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQStoredDrag</Title>
|
|
<Para>
|
|
<Literal>TQStoredDrag</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQTextDrag</Title>
|
|
<Para>
|
|
<Literal>TQTextDrag</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQUriDrag (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQUriDrag</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQUrlDrag (TQt v1.x)</Title>
|
|
<Para>
|
|
<Literal>TQUrlDrag</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQDropSite</Title>
|
|
<Para>
|
|
<Literal>TQDropSite</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQErrorMessage (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQErrorMessage</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQEvent</Title>
|
|
<Para>
|
|
<Literal>TQEvent</Literal> is fully implemented.
|
|
</Para>
|
|
<Para>
|
|
Instances of <Literal>TQEvent</Literal>s are automatically converted to the
|
|
correct sub-class.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQChildEvent</Title>
|
|
<Para>
|
|
<Literal>TQChildEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCloseEvent</Title>
|
|
<Para>
|
|
<Literal>TQCloseEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQIconDragEvent (TQt v3.3+)</Title>
|
|
<Para>
|
|
<Literal>TQIconDragEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQContextMenuEvent (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQContextMenuEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCustomEvent</Title>
|
|
<Para>
|
|
<Literal>TQCustomEvent</Literal> is fully implemented. Any Python object can be
|
|
passed as the event data and its reference count is increased.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDragEnterEvent</Title>
|
|
<Para>
|
|
<Literal>TQDragEnterEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDragLeaveEvent</Title>
|
|
<Para>
|
|
<Literal>TQDragLeaveEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDragMoveEvent</Title>
|
|
<Para>
|
|
<Literal>TQDragMoveEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDropEvent</Title>
|
|
<Para>
|
|
<Literal>TQDropEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQFocusEvent</Title>
|
|
<Para>
|
|
<Literal>TQFocusEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQHideEvent</Title>
|
|
<Para>
|
|
<Literal>TQHideEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQIMComposeEvent (TQt v3.1+)</Title>
|
|
<Para>
|
|
<Literal>TQIMComposeEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQIMEvent (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQIMEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQKeyEvent</Title>
|
|
<Para>
|
|
<Literal>TQKeyEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQMouseEvent</Title>
|
|
<Para>
|
|
<Literal>TQMouseEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQMoveEvent</Title>
|
|
<Para>
|
|
<Literal>TQMoveEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQPaintEvent</Title>
|
|
<Para>
|
|
<Literal>TQPaintEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQResizeEvent</Title>
|
|
<Para>
|
|
<Literal>TQResizeEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQShowEvent</Title>
|
|
<Para>
|
|
<Literal>TQShowEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQTabletEvent (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQTabletEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQTimerEvent</Title>
|
|
<Para>
|
|
<Literal>TQTimerEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQWheelEvent (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQWheelEvent</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQEventLoop (TQt v3.1+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual int <Function>exec</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed to <Literal>exec_loop</Literal> in Python.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQFile</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>open</Function></FuncDef>
|
|
<ParamDef>int <Parameter>m</Parameter></ParamDef>
|
|
<ParamDef>FILE *<Parameter>f</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
|
|
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>Q_ULONG <Parameter>len</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes a single <Literal>len</Literal> parameter. The
|
|
<Literal>data</Literal> is returned if there was no error, otherwise
|
|
<Literal>None</Literal> is returned.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>Q_LONG <Function>readLine</Function></FuncDef>
|
|
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>Q_ULONG <Parameter>maxlen</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes a single <Literal>maxlen</Literal> parameter. The
|
|
<Literal>data</Literal> is returned if there was no error, otherwise
|
|
<Literal>None</Literal> is returned.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>static void <Function>setDecodingFunction</Function></FuncDef>
|
|
<ParamDef>EncoderFn <Parameter>f</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented. (TQt v2+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>static void <Function>setEncodingFunction</Function></FuncDef>
|
|
<ParamDef>EncoderFn <Parameter>f</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented. (TQt v2+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>Q_LONG <Function>writeBlock</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>Q_ULONG <Parameter>len</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
<Literal>len</Literal> is derived from <Literal>data</Literal> and not passed
|
|
as a parameter.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQFileDialog</Title>
|
|
<Para>
|
|
<Literal>TQFileDialog</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQFileIconProvider</Title>
|
|
<Para>
|
|
<Literal>TQFileIconProvider</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQFilePreview</Title>
|
|
<Para>
|
|
<Literal>TQFilePreview</Literal> is fully implemented. However it cannot be
|
|
used from Python in the same way as it is used from C++ because PyTQt does not
|
|
support multiple inheritance involving more than one wrapped class. A trick
|
|
that seems to work is to use composition rather than inheritance as in the
|
|
following code fragment.
|
|
</Para>
|
|
<ProgramListing>
|
|
class FilePreview(TQFilePreview):
|
|
pass
|
|
|
|
class Preview(TQLabel):
|
|
def __init__(self, parent=None):
|
|
TQLabel.__init__(self, parent)
|
|
self.preview = FilePreview()
|
|
self.preview.previewUrl = self.previewUrl
|
|
</ProgramListing>
|
|
<Para>
|
|
Note that TQFilePreview cannot be instantiated directly because it is abstract.
|
|
Thanks to Hans-Peter Jansen for this trick.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQFileInfo</Title>
|
|
<Para>
|
|
<Literal>TQFileInfo</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQFont</Title>
|
|
<Para>
|
|
<Literal>TQFont</Literal> is fully implemented, including the Python
|
|
<Literal>==</Literal> and <Literal>!=</Literal> operators.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQFontDatabase (TQt v2.1+)</Title>
|
|
<Para>
|
|
<Literal>TQFontDatabase</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQFontDialog (TQt v2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>static TQFont <Function>getFont</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
|
|
<ParamDef>const TQFont &<Parameter>def</Parameter></ParamDef>
|
|
<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
|
|
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>def</Literal>, <Literal>parent</Literal> and
|
|
<Literal>name</Literal> parameters and returns a tuple containing the
|
|
<Literal>TQFont</Literal> result and the <Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>static TQFont <Function>getFont</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
|
|
<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
|
|
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>parent</Literal> and <Literal>name</Literal> parameters
|
|
and returns a tuple containing the <Literal>TQFont</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQFontInfo</Title>
|
|
<Para>
|
|
<Literal>TQFontInfo</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQFontMetrics</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>TQRect <Function>boundingRect</Function></FuncDef>
|
|
<ParamDef>int <Parameter>x</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>y</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>w</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>h</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
|
|
<ParamDef>const TQString &<Parameter>str</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
|
|
<ParamDef>int <Parameter>tabstops</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>tabarray</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>tabarray</Literal> parameter is a Python list of integers.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQSize <Function>size</Function></FuncDef>
|
|
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
|
|
<ParamDef>const TQString &<Parameter>str</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
|
|
<ParamDef>int <Parameter>tabstops</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>tabarray</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>tabarray</Literal> parameter is a Python list of integers.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQFrame</Title>
|
|
<Para>
|
|
<Literal>TQFrame</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQGManager (TQt v1.x)</Title>
|
|
<Para>
|
|
<Literal>TQGManager</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQChain (TQt v1.x)</Title>
|
|
<Para>
|
|
<Literal>TQChain</Literal> is implemented as an opaque class.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQGrid (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQGrid</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQGridView (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQGridView</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQGroupBox</Title>
|
|
<Para>
|
|
<Literal>TQGroupBox</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQHBox (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQHBox</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQHButtonGroup (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQHButtonGroup</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQHeader</Title>
|
|
<Para>
|
|
<Literal>TQHeader</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQHGroupBox (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQHGroupBox</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQIconSet</Title>
|
|
<Para>
|
|
<Literal>TQIconSet</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQIconFactory (TQt v3.1+)</Title>
|
|
<Para>
|
|
<Literal>TQIconFactory</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQIconView (TQt v2.1+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>TQIconViewItem *<Function>makeRowLayout</Function></FuncDef>
|
|
<ParamDef>TQIconViewItem *<Parameter>begin</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>y</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQIconViewItem (TQt v2.1+)</Title>
|
|
<Para>
|
|
<Literal>TQIconViewItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQIconDrag (TQt v2.1+)</Title>
|
|
<Para>
|
|
<Literal>TQIconDrag</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQIconDragItem (TQt v2.1+)</Title>
|
|
<Para>
|
|
<Literal>TQIconDragItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQImage</Title>
|
|
<Para>
|
|
The Python <Literal>==</Literal> and <Literal>!=</Literal> operators are
|
|
supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQImage</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>xpm</Parameter>[]</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes a list of strings as its parameter.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQImage</Function></FuncDef>
|
|
<ParamDef>uchar *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>w</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>h</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>depth</Parameter></ParamDef>
|
|
<ParamDef>TQRgb *<Parameter>colorTable</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>numColors</Parameter></ParamDef>
|
|
<ParamDef>Endian <Parameter>bitOrder</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>colorTable</Literal> parameter is a list of TQRgb instances or
|
|
None. (TQt v2.1+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>uchar *<Function>bits</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The return value is a <Literal>sip.voidptr</Literal> object which is only
|
|
useful if passed to another Python module.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQRgb *<Function>colorTable</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The return value is a <Literal>sip.voidptr</Literal> object which is only
|
|
useful if passed to another Python module.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQImage <Function>convertDepthWithPalette</Function></FuncDef>
|
|
<ParamDef>int</ParamDef>
|
|
<ParamDef>TQRgb *<Parameter>p</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>pc</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>cf</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>uchar **<Function>jumpTable</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The return value is a <Literal>sip.voidptr</Literal> object which is only
|
|
useful if passed to another Python module.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>loadFromData</Function></FuncDef>
|
|
<ParamDef>const uchar *<Parameter>buf</Parameter></ParamDef>
|
|
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
|
|
<ParamDef>const char *<Parameter>format</Parameter> = 0</ParamDef>
|
|
<ParamDef>ColorMode <Parameter>mode</Parameter> = Auto</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
<Literal>len</Literal> is derived from <Literal>buf</Literal> and not passed as
|
|
a parameter.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>uchar *<Function>scanLine</Function></FuncDef>
|
|
<ParamDef>int <Parameter>i</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The return value is a <Literal>sip.voidptr</Literal> object which is only
|
|
useful if passed to another Python module.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQImageIO</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>static void <Function>defineIOHandler</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
|
|
<ParamDef>const char *<Parameter>header</Parameter></ParamDef>
|
|
<ParamDef>const char *<Parameter>flags</Parameter></ParamDef>
|
|
<ParamDef>image_io_handler <Parameter>read_image</Parameter></ParamDef>
|
|
<ParamDef>image_io_handler <Parameter>write_image</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQImageTextKeyLang</Title>
|
|
<Para>
|
|
<Literal>TQImageTextKeyLang</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQInputDialog (TQt v2.1+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>static TQString <Function>getText</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>caption</Parameter></ParamDef>
|
|
<ParamDef>const TQString &<Parameter>label</Parameter></ParamDef>
|
|
<ParamDef>const TQString &<Parameter>text</Parameter> = TQString::null</ParamDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
|
|
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
|
|
the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
|
|
(TQt v2.1 - v2.3.1)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>static TQString <Function>getText</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>caption</Parameter></ParamDef>
|
|
<ParamDef>const TQString &<Parameter>label</Parameter></ParamDef>
|
|
<ParamDef>TQLineEdit::EchoMode<Parameter>echo</Parameter></ParamDef>
|
|
<ParamDef>const TQString &<Parameter>text</Parameter> = TQString::null</ParamDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
|
|
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
|
|
the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
|
|
(TQt v2.2 - v2.3.1)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>static TQString <Function>getText</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>caption</Parameter></ParamDef>
|
|
<ParamDef>const TQString &<Parameter>label</Parameter></ParamDef>
|
|
<ParamDef>TQLineEdit::EchoMode<Parameter>echo</Parameter> = TQLineEdit::Normal</ParamDef>
|
|
<ParamDef>const TQString &<Parameter>text</Parameter> = TQString::null</ParamDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
|
|
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
|
|
the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
|
|
(TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>static int <Function>getInteger</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>caption</Parameter></ParamDef>
|
|
<ParamDef>const TQString &<Parameter>label</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>num</Parameter> = 0</ParamDef>
|
|
<ParamDef>int <Parameter>from</Parameter> = -2147483647</ParamDef>
|
|
<ParamDef>int <Parameter>to</Parameter> = 2147483647</ParamDef>
|
|
<ParamDef>int <Parameter>step</Parameter> = 1</ParamDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
|
|
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
|
|
the <Literal>int</Literal> result and the <Literal>ok</Literal> flag.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>static double <Function>getDouble</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>caption</Parameter></ParamDef>
|
|
<ParamDef>const TQString &<Parameter>label</Parameter></ParamDef>
|
|
<ParamDef>double <Parameter>num</Parameter> = 0</ParamDef>
|
|
<ParamDef>double <Parameter>from</Parameter> = -2147483647</ParamDef>
|
|
<ParamDef>double <Parameter>to</Parameter> = 2147483647</ParamDef>
|
|
<ParamDef>int <Parameter>step</Parameter> = 1</ParamDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
|
|
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
|
|
the <Literal>double</Literal> result and the <Literal>ok</Literal> flag.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>static TQString <Function>getItem</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>caption</Parameter></ParamDef>
|
|
<ParamDef>const TQString &<Parameter>label</Parameter></ParamDef>
|
|
<ParamDef>const TQStringList &<Parameter>list</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>current</Parameter> = 0</ParamDef>
|
|
<ParamDef>bool <Parameter>editable</Parameter> = TRUE</ParamDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
|
|
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
|
|
the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQInterlaceStyle (TQt v2.3.1+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
|
|
<ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>buttonDim</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
|
|
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
|
|
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQIODevice</Title>
|
|
<Para>
|
|
<Literal>TQIODevice</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQKeySequence (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQKeySequence</Literal> is fully implemented including the operators
|
|
<Literal>==</Literal>, <Literal>!=</Literal>, <Literal>TQString()</Literal> and
|
|
<Literal>int()</Literal>. A <Literal>TQString</Literal> instance or a Python
|
|
integer may be used whenever a <Literal>TQKeySequence</Literal> can be used.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQLabel</Title>
|
|
<Para>
|
|
<Literal>TQLabel</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQLayout</Title>
|
|
<Para>
|
|
<Literal>TQLayout</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQBoxLayout</Title>
|
|
<Para>
|
|
<Literal>TQBoxLayout</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQGLayoutIterator (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQGLayoutIterator</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQGridLayout</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>findWidget</Function></FuncDef>
|
|
<ParamDef>TQWidget *<Parameter>w</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>row</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>col</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>w</Literal> parameter and returns a tuple containing
|
|
the <Literal>bool</Literal> result, <Literal>row</Literal> and
|
|
<Literal>col</Literal>. (TQt v2+)
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQHBoxLayout</Title>
|
|
<Para>
|
|
<Literal>TQHBoxLayout</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQLayoutItem (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQLayoutItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQLayoutIterator (TQt v2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>TQLayoutItem *<Function>next</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This is a wrapper around the <Literal>TQLayoutIterator</Literal>
|
|
<Literal>++</Literal> operator.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQSpacerItem (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQSpacerItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQVBoxLayout</Title>
|
|
<Para>
|
|
<Literal>TQVBoxLayout</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQWidgetItem (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQWidgetItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQLCDNumber</Title>
|
|
<Para>
|
|
<Literal>TQLCDNumber</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQLibrary (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQLibrary</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQLineEdit</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>characterAt</Function></FuncDef>
|
|
<ParamDef>int <Parameter>xpos</Parameter></ParamDef>
|
|
<ParamDef>TQChar *<Parameter>chr</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>xpos</Literal> parameter and returns the int
|
|
result and the <Literal>chr</Literal> value as a tuple. (TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>del</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed <Literal>delChar</Literal> in Python. (TQt v2+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>getSelection</Function></FuncDef>
|
|
<ParamDef>int *<Parameter>start</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>end</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns the bool result and the
|
|
<Literal>start</Literal> and <Literal>end</Literal> values as a tuple.
|
|
(TQt v3+)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQList<type> (TQt v2)</Title>
|
|
<Para>
|
|
Types based on the <Literal>TQList</Literal> template are automatically
|
|
converted to and from Python lists of the type.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQListBox</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>itemYPos</Function></FuncDef>
|
|
<ParamDef>int <Parameter>index</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>yPos</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>index</Literal> parameter and returns a tuple
|
|
containing the <Literal>bool</Literal> result and <Literal>yPos</Literal>.
|
|
(TQt v1.x)
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQListBoxItem</Title>
|
|
<Para>
|
|
<Literal>TQListBoxItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQListBoxPixmap</Title>
|
|
<Para>
|
|
<Literal>TQListBoxPixmap</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQListBoxText</Title>
|
|
<Para>
|
|
<Literal>TQListBoxText</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQListView</Title>
|
|
<Para>
|
|
<Literal>TQListView</Literal> is fully implemented.
|
|
</Para>
|
|
<Para>
|
|
Note that to remove a child <Literal>TQListViewItem</Literal> you must first
|
|
call <Literal>takeItem()</Literal> and then <Literal>del()</Literal>.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQListViewItem</Title>
|
|
<Para>
|
|
<Literal>TQListViewItem</Literal> is fully implemented.
|
|
</Para>
|
|
<Para>
|
|
Note that to remove a child <Literal>TQListViewItem</Literal> you must first
|
|
call <Literal>takeItem()</Literal> and then <Literal>del()</Literal>.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCheckListItem</Title>
|
|
<Para>
|
|
<Literal>TQCheckListItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQListViewItemIterator (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQListViewItemIterator</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQLocale (TQt v3.3+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>short <Function>toShort</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>short</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>ushort <Function>toUShort</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>ushort</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>toInt</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>int</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>uint <Function>toUInt</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>uint</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>Q_LONG <Function>toLong</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>long</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>Q_ULONG <Function>toULong</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>ulong</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>float <Function>toFloat</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>float</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>double <Function>toDouble</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>double</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQMainWindow</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>TQTextStream &<Function>operator<<</Function></FuncDef>
|
|
<ParamDef>TQTextStream &<Parameter></Parameter></ParamDef>
|
|
<ParamDef>const TQMainWindow &<Parameter></Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This operator is fully implemented. (TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQTextStream &<Function>operator>></Function></FuncDef>
|
|
<ParamDef>TQTextStream &<Parameter></Parameter></ParamDef>
|
|
<ParamDef>TQMainWindow &<Parameter></Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This operator is fully implemented. (TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>getLocation</Function></FuncDef>
|
|
<ParamDef>TQToolBar *<Parameter>tb</Parameter></ParamDef>
|
|
<ParamDef>ToolBarDock &<Parameter>dock</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>index</Parameter></ParamDef>
|
|
<ParamDef>bool &<Parameter>nl</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>extraOffset</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>tb</Literal> parameter and returns a tuple of the
|
|
result, <Literal>dock</Literal>, <Literal>index</Literal>,
|
|
<Literal>nl</Literal> and <Literal>extraOffset</Literal> values. (TQt v2.1.0+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQList<TQToolBar> <Function>toolBars</Function></FuncDef>
|
|
<ParamDef>ToolBarDock <Parameter>dock</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a list of <Literal>TQToolBar</Literal> instances. (TQt v2.1.0+)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQMemArray<type> (TQt v3+)</Title>
|
|
<Para>
|
|
Types based on the <Literal>TQMemArray</Literal> template are automatically
|
|
converted to and from Python lists of the type.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQMenuBar</Title>
|
|
<Para>
|
|
<Literal>TQMenuBar</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQMenuData</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>TQMenuItem *<Function>findItem</Function></FuncDef>
|
|
<ParamDef>int <Parameter>id</Parameter></ParamDef>
|
|
<ParamDef>TQMenuData **<Parameter>parent</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCustomMenuItem (TQt v2.1+)</Title>
|
|
<Para>
|
|
<Literal>TQCustomMenuItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQMenuItem</Title>
|
|
<Para>
|
|
<Literal>TQMenuItem</Literal> is an internal TQt class.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQMessageBox</Title>
|
|
<Para>
|
|
<Literal>TQMessageBox</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQMetaObject</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>numClassInfo</Function> const</FuncDef>
|
|
<ParamDef>bool <Parameter>super</Parameter> = FALSE</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>const TQClassInfo *<Function>classInfo</Function> const</FuncDef>
|
|
<ParamDef>bool <Parameter>super</Parameter> = FALSE</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQMetaProperty</Title>
|
|
<Para>
|
|
<Literal>TQMetaProperty</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQMimeSource (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQMimeSource</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQMimeSourceFactory (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQMimeSourceFactory</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQWindowsMime (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQWindowsMime</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQMotifPlusStyle (TQt v2.2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>getButtonShift</Function></FuncDef>
|
|
<ParamDef>int &<Parameter>x</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>y</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns a tuple of the <Literal>x</Literal> and
|
|
<Literal>y</Literal> values. (TQt v2)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
|
|
<ParamDef>const TQScrollBar *<Parameter>sb</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>buttonDim</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
|
|
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
|
|
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
|
|
(TQt v2)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQMotifStyle (TQt v2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
|
|
<ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>buttonDim</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
|
|
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
|
|
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
|
|
(TQt v2)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>tabbarMetrics</Function></FuncDef>
|
|
<ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>hframe</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>vframe</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>overlap</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>t</Literal> parameter and returns a tuple of the
|
|
<Literal>hframe</Literal>, <Literal>vframe</Literal> and
|
|
<Literal>overlap</Literal> values. (TQt v2)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQMovie</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQMovie</Function></FuncDef>
|
|
<ParamDef>TQDataSource *<Parameter>src</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>bufsize</Parameter> = 1024</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>pushData</Function></FuncDef>
|
|
<ParamDef>const uchar *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>length</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
<Literal>length</Literal> is derived from <Literal>data</Literal> and not
|
|
passed as a parameter. (TQt v2.2.0+)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQMultiLineEdit</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>cursorPosition</Function> const</FuncDef>
|
|
<ParamDef>int *<Parameter>line</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>col</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns a tuple of the <Literal>line</Literal> and
|
|
<Literal>col</Literal> values. (TQt v1.x, TQt v2.x)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual void <Function>del</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed <Literal>delChar</Literal> in Python. (TQt v1.x, TQt v2.x)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>getCursorPosition</Function> const</FuncDef>
|
|
<ParamDef>int *<Parameter>line</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>col</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns a tuple of the <Literal>line</Literal> and
|
|
<Literal>col</Literal> values. (TQt v1.x, TQt v2.x)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>getMarkedRegion</Function></FuncDef>
|
|
<ParamDef>int *<Parameter>line1</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>col1</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>line2</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>col2</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns a tuple of the bool result and the
|
|
<Literal>line1</Literal>, <Literal>col1</Literal>, <Literal>line2</Literal> and
|
|
<Literal>col2</Literal> values.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQMutex (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQMutex</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQMutexLocker (TQt v3.1+)</Title>
|
|
<Para>
|
|
<Literal>TQMutexLocker</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQNetworkOperation (TQt v2.1+)</Title>
|
|
<Para>
|
|
<Literal>TQNetworkOperation</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQNetworkProtocol (TQt v2.1+)</Title>
|
|
<Para>
|
|
<Literal>TQNetworkProtocol</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQNetworkProtocolFactoryBase (TQt v2.1+)</Title>
|
|
<Para>
|
|
<Literal>TQNetworkProtocolFactoryBase</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQObject</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>disconnect</Function></FuncDef>
|
|
<ParamDef>const TQObject *<Parameter>receiver</Parameter></ParamDef>
|
|
<ParamDef>const char *<Parameter>member</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>disconnect</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>signal</Parameter> = 0</ParamDef>
|
|
<ParamDef>const TQObject *<Parameter>receiver</Parameter> = 0</ParamDef>
|
|
<ParamDef>const char *<Parameter>member</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>static bool <Function>disconnect</Function></FuncDef>
|
|
<ParamDef>const TQObject *<Parameter>sender</Parameter></ParamDef>
|
|
<ParamDef>const char *<Parameter>signal</Parameter></ParamDef>
|
|
<ParamDef>const TQObject *<Parameter>receiver</Parameter></ParamDef>
|
|
<ParamDef>const char *<Parameter>member</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
At the moment PyTQt does not support the full behaviour of the corresponding TQt
|
|
method. In particular, specifying None (ie. 0 in C++) for the
|
|
<Literal>signal</Literal> and <Literal>receiver</Literal> parameters is not yet
|
|
supported.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQObjectCleanupHandler (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQObjectCleanupHandler</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQObjectList</Title>
|
|
<Para>
|
|
This class isn't implemented. Whenever a <Literal>TQObjectList</Literal> is the
|
|
return type of a function or the type of an argument, a Python list of
|
|
<Literal>TQObject</Literal> instances is used instead.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPaintDeviceMetrics</Title>
|
|
<Para>
|
|
<Literal>TQPaintDeviceMetrics</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPaintDevice</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual bool <Function>cmd</Function></FuncDef>
|
|
<ParamDef>int</ParamDef>
|
|
<ParamDef>TQPainter *</ParamDef>
|
|
<ParamDef>TQPDevCmdParam *</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPainter</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>TQRect <Function>boundingRect</Function></FuncDef>
|
|
<ParamDef>int <Parameter>x</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>y</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>w</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>h</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
|
|
<ParamDef>const char *<Parameter>str</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
|
|
<ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>intern</Literal> parameter is not supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQRect <Function>boundingRect</Function></FuncDef>
|
|
<ParamDef>const TQRect&</ParamDef>
|
|
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
|
|
<ParamDef>const char *<Parameter>str</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
|
|
<ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>intern</Literal> parameter is not supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>drawText</Function></FuncDef>
|
|
<ParamDef>int <Parameter>x</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>y</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>w</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>h</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
|
|
<ParamDef>const char *<Parameter>str</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
|
|
<ParamDef>TQRect *<Parameter>br</Parameter> = 0</ParamDef>
|
|
<ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>intern</Literal> parameter is not supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>drawText</Function></FuncDef>
|
|
<ParamDef>const TQRect&</ParamDef>
|
|
<ParamDef>int <Parameter>flags</Parameter></ParamDef>
|
|
<ParamDef>const char *<Parameter>str</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
|
|
<ParamDef>TQRect *<Parameter>br</Parameter> = 0</ParamDef>
|
|
<ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>intern</Literal> parameter is not supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>setTabArray</Function></FuncDef>
|
|
<ParamDef>int *<Parameter>ta</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes a single parameter which is a list of tab stops.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>int *<Function>tabArray</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a list of tab stops.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPalette</Title>
|
|
<Para>
|
|
<Literal>TQPalette</Literal> is fully implemented, including the Python
|
|
<Literal>==</Literal> and <Literal>!=</Literal> operators.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPixmap</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQPixmap</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>xpm</Parameter>[]</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes a list of strings as its parameter.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>loadFromData</Function></FuncDef>
|
|
<ParamDef>const uchar *<Parameter>buf</Parameter></ParamDef>
|
|
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
|
|
<ParamDef>const char *<Parameter>format</Parameter> = 0</ParamDef>
|
|
<ParamDef>ColorMode <Parameter>mode</Parameter> = Auto</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
<Literal>len</Literal> is derived from <Literal>buf</Literal> and not passed as
|
|
a parameter.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>loadFromData</Function></FuncDef>
|
|
<ParamDef>const uchar *<Parameter>buf</Parameter></ParamDef>
|
|
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
|
|
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>conversion_flags</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPixmapCache (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQPixmapCache</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPair<type,type> (TQt v3+)</Title>
|
|
<Para>
|
|
Types based on the <Literal>TQPair</Literal> template are automatically
|
|
converted to and from Python tuples of two elements.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPen</Title>
|
|
<Para>
|
|
<Literal>TQPen</Literal> is fully implemented, including the Python
|
|
<Literal>==</Literal> and <Literal>!=</Literal> operators.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPicture</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>const char *<Function>data</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>setData</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>uint <Parameter>size</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
<Literal>size</Literal> is derived from <Literal>data</Literal> and not passed
|
|
as a parameter.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPlatinumStyle (TQt v2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
|
|
<ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>buttonDim</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
|
|
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
|
|
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
|
|
(TQt v2)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPoint</Title>
|
|
<Para>
|
|
The Python
|
|
<Literal>+</Literal>, <Literal>+=</Literal>,
|
|
<Literal>-</Literal>, <Literal>-=</Literal>, unary <Literal>-</Literal>,
|
|
<Literal>*</Literal>, <Literal>*=</Literal>,
|
|
<Literal>/</Literal>, <Literal>/=</Literal>,
|
|
<Literal>==</Literal>, <Literal>!=</Literal> and <Literal>__nonzero__</Literal>
|
|
operators are supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQCOORD &<Function>rx</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQCOORD &<Function>ry</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPointArray</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQPointArray</Function></FuncDef>
|
|
<ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
|
|
<ParamDef>const TQCOORD *<Parameter>points</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes a single parameter which is a list of points.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>point</Function></FuncDef>
|
|
<ParamDef>uint <Parameter>i</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>x</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>y</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the single parameter <Literal>i</Literal> and returns the
|
|
<Literal>x</Literal> and <Literal>y</Literal> values as a tuple.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>putPoints</Function></FuncDef>
|
|
<ParamDef>int <Parameter>index</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
|
|
<ParamDef>const TQCOORD *<Parameter>points</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes two parameters, <Literal>index</Literal> and a list of points.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>putPoints</Function></FuncDef>
|
|
<ParamDef>int <Parameter>index</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>firstx</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>firsty</Parameter></ParamDef>
|
|
<ParamDef>...</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>setPoints</Function></FuncDef>
|
|
<ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
|
|
<ParamDef>const TQCOORD *<Parameter>points</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes a single parameter which is a list of points.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>setPoints</Function></FuncDef>
|
|
<ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>firstx</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>firsty</Parameter></ParamDef>
|
|
<ParamDef>...</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPopupMenu</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>exec</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed <Literal>exec_loop</Literal> in Python.
|
|
</Para>
|
|
<Para>
|
|
This method also causes ownership of the underlying C++ menu to be transfered
|
|
to Python. This means that the C++ menu will be deleted when the Python
|
|
wrapper is garbage collected. Although this is a little inconsistent, it
|
|
ensures that the menu is deleted without having to explicity code it using
|
|
<Literal>TQObject.deleteLater()</Literal> or other techniques.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>exec</Function></FuncDef>
|
|
<ParamDef>const TQPoint &<Parameter>pos</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>indexAtPoint</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed <Literal>exec_loop</Literal> in Python.
|
|
</Para>
|
|
<Para>
|
|
This method also causes ownership of the underlying C++ menu to be transfered
|
|
to Python. This means that the C++ menu will be deleted when the Python
|
|
wrapper is garbage collected. Although this is a little inconsistent, it
|
|
ensures that the menu is deleted without having to explicity code it using
|
|
<Literal>TQObject.deleteLater()</Literal> or other techniques.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPrintDialog (X11)</Title>
|
|
<Para>
|
|
<Literal>TQPrintDialog</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPrinter</Title>
|
|
<Para>
|
|
<Literal>TQPrinter</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQProcess (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQProcess</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQProgressBar</Title>
|
|
<Para>
|
|
<Literal>TQProgressBar</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQProgressDialog</Title>
|
|
<Para>
|
|
<Literal>TQProgressDialog</Literal> is fully implemented.
|
|
value.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPtrList<type> (TQt v2+)</Title>
|
|
<Para>
|
|
Types based on the <Literal>TQPtrList</Literal> template are automatically
|
|
converted to and from Python lists of the type.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQPushButton</Title>
|
|
<Para>
|
|
<Literal>TQPushButton</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQRadioButton</Title>
|
|
<Para>
|
|
<Literal>TQRadioButton</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQRangeControl</Title>
|
|
<Para>
|
|
<Literal>TQRangeControl</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQRect</Title>
|
|
<Para>
|
|
The Python
|
|
<Literal>&</Literal>, <Literal>&=</Literal>,
|
|
<Literal>|</Literal>, <Literal>|=</Literal>,
|
|
<Literal>==</Literal>, <Literal>!=</Literal>, <Literal>in</Literal> and
|
|
<Literal>__nonzero__</Literal> operators are supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>coords</Function></FuncDef>
|
|
<ParamDef>int *<Parameter>x1</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>y1</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>x2</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>y2</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns a tuple containing the four values.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>rect</Function></FuncDef>
|
|
<ParamDef>int *<Parameter>x</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>y</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>w</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>h</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns a tuple containing the four values.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQCOORD &<Function>rBottom</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented. (TQt v2+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQCOORD &<Function>rLeft</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented. (TQt v2+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQCOORD &<Function>rRight</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented. (TQt v2+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQCOORD &<Function>rTop</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented. (TQt v2+)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQRegExp</Title>
|
|
<Para>
|
|
The Python <Literal>==</Literal> and <Literal>!=</Literal> operators are
|
|
supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>match</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>str</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>index</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>len</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes <Literal>str</Literal> and <Literal>index</Literal> parameters and
|
|
returns a tuple of the <Literal>int</Literal> result and the
|
|
<Literal>len</Literal> value. (TQt v1.x)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>match</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>str</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>index</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>len</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes <Literal>str</Literal> and <Literal>index</Literal> parameters and
|
|
returns a tuple of the <Literal>int</Literal> result and the
|
|
<Literal>len</Literal> value. (TQt v2+)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQRegion</Title>
|
|
<Para>
|
|
The Python
|
|
<Literal>|</Literal>, <Literal>|=</Literal>,
|
|
<Literal>+</Literal>, <Literal>+=</Literal>,
|
|
<Literal>&</Literal>, <Literal>&=</Literal>,
|
|
<Literal>-</Literal>, <Literal>-=</Literal>,
|
|
<Literal>^</Literal>, <Literal>^=</Literal>,
|
|
<Literal>==</Literal>, <Literal>!=</Literal>, <Literal>in</Literal> and
|
|
<Literal>__nonzero__</Literal> operators are supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQArray<TQRect> <Function>rects</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>setRects</Function></FuncDef>
|
|
<ParamDef>TQRect *<Parameter>rects</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>num</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented. (TQt v2.2+)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQScrollBar</Title>
|
|
<Para>
|
|
<Literal>TQScrollBar</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQScrollView</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>contentsToViewport</Function></FuncDef>
|
|
<ParamDef>int <Parameter>x</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>y</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>vx</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>vy</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>x</Literal> and <Literal>y</Literal> parameters and
|
|
returns a tuple containing the <Literal>vx</Literal> and <Literal>vy</Literal>
|
|
values. (TQt v2+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>viewportToContents</Function></FuncDef>
|
|
<ParamDef>int <Parameter>vx</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>vy</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>x</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>y</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>vx</Literal> and <Literal>vy</Literal> parameters and
|
|
returns a tuple containing the <Literal>x</Literal> and <Literal>y</Literal>
|
|
values. (TQt v2+)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSemaphore (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQSemaphore</Literal> is fully implemented. The <Literal>+=</Literal>
|
|
and <Literal>-=</Literal> operators have also been implemented, but require
|
|
Python v2.0 or later.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSemiModal (TQt v1, v2)</Title>
|
|
<Para>
|
|
<Literal>TQSemiModal</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSessionManager (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQSessionManager</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSettings (TQt v3+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>readBoolEntry</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>key</Parameter></ParamDef>
|
|
<ParamDef>bool <Parameter>def</Parameter> = 0</ParamDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
|
|
the <Literal>bool</Literal> result and the <Literal>ok</Literal> flag.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>double <Function>readDoubleEntry</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>key</Parameter></ParamDef>
|
|
<ParamDef>double <Parameter>def</Parameter> = 0</ParamDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
|
|
the <Literal>double</Literal> result and the <Literal>ok</Literal> flag.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQString <Function>readEntry</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>key</Parameter></ParamDef>
|
|
<ParamDef>const TQString &<Parameter>def</Parameter> = TQString::null</ParamDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
|
|
the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQStringList <Function>readListEntry</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>key</Parameter></ParamDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
|
|
the <Literal>TQStringList</Literal> result and the <Literal>ok</Literal> flag.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQStringList <Function>readListEntry</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>key</Parameter></ParamDef>
|
|
<ParamDef>const TQChar &<Parameter>separator</Parameter></ParamDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
|
|
the <Literal>TQStringList</Literal> result and the <Literal>ok</Literal> flag.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>readNumEntry</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>key</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>def</Parameter> = 0</ParamDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>ok</Literal> is not passed and the returned value is a tuple of
|
|
the <Literal>int</Literal> result and the <Literal>ok</Literal> flag.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>writeEntry</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>key</Parameter></ParamDef>
|
|
<ParamDef>bool <Parameter>value</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSGIStyle (TQt v2.2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
|
|
<ParamDef>const TQScrollBar *<Parameter>sb</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>buttonDim</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
|
|
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
|
|
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
|
|
(TQt v2)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSignalMapper</Title>
|
|
<Para>
|
|
<Literal>TQSignalMapper</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSimpleRichText (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQSimpleRichText</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSize</Title>
|
|
<Para>
|
|
The Python
|
|
<Literal>+</Literal>, <Literal>+=</Literal>,
|
|
<Literal>-</Literal>, <Literal>-=</Literal>,
|
|
<Literal>*</Literal>, <Literal>*=</Literal>,
|
|
<Literal>/</Literal>, <Literal>/=</Literal>,
|
|
<Literal>==</Literal>, <Literal>!=</Literal> and <Literal>__nonzero__</Literal>
|
|
operators are supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQCOORD &<Function>rheight</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQCOORD &<Function>rwidth</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSizeGrip (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQSizeGrip</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSizePolicy (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQSizePolicy</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSlider</Title>
|
|
<Para>
|
|
<Literal>TQSlider</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSocketNotifier</Title>
|
|
<Para>
|
|
<Literal>TQSocketNotifier</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSound (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQSound</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSpinBox</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual int <Function>mapTextToValue</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>int</Literal> result and the modified
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSplashScreen (TQt v3.2.0+)</Title>
|
|
<Para>
|
|
<Literal>TQSplashScreen</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSplitter</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>getRange</Function></FuncDef>
|
|
<ParamDef>int <Parameter>id</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>min</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>max</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>id</Literal> parameter and returns the
|
|
<Literal>min</Literal> and <Literal>max</Literal> values as a tuple. (TQt v2+)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQStatusBar</Title>
|
|
<Para>
|
|
<Literal>TQStatusBar</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQChar (TQt v2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>uchar &<Function>cell</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>uchar &<Function>row</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQString</Title>
|
|
<Para>
|
|
A Python string object (or Unicode object) can be used whenever a
|
|
<Literal>TQString</Literal> can be used. A <Literal>TQString</Literal> can be
|
|
converted to a Python string object using the Python <Literal>str()</Literal>
|
|
function, and to a Python Unicode object using the Python
|
|
<Literal>unicode()</Literal> function.
|
|
</Para>
|
|
|
|
<Para>
|
|
The Python <Literal>+</Literal>, <Literal>+=</Literal>, <Literal>*</Literal>,
|
|
<Literal>*=</Literal>, <Literal>len</Literal>, <Literal>[]</Literal>
|
|
(for reading slices and individual characters), <Literal>in</Literal> and
|
|
comparison operators are supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQCharRef <Function>at</Function></FuncDef>
|
|
<ParamDef>uint <Parameter>i</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented. (TQt v2+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQChar <Function>constref</Function> const</FuncDef>
|
|
<ParamDef>uint <Parameter>i</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented. (TQt v2+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQChar &<Function>ref</Function></FuncDef>
|
|
<ParamDef>uint <Parameter>i</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented. (TQt v2+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQString &<Function>setUnicodeCodes</Function></FuncDef>
|
|
<ParamDef>const ushort *<Parameter>unicode_as_shorts</Parameter></ParamDef>
|
|
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented. (TQt v2.1+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQString &<Function>sprintf</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>format</Parameter></ParamDef>
|
|
<ParamDef>...</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>short <Function>toShort</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>short</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>ushort <Function>toUShort</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>ushort</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>toInt</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>int</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>uint <Function>toUInt</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>uint</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>long <Function>toLong</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>long</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>ulong <Function>toULong</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>ulong</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>float <Function>toFloat</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>float</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>double <Function>toDouble</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>double</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQStringList (TQt v2+)</Title>
|
|
<Para>
|
|
The Python <Literal>len</Literal>, <Literal>[]</Literal> (for both reading and
|
|
writing slices and individual elements), <Literal>del</Literal> (for deleting
|
|
slices and individual elements), <Literal>+</Literal>, <Literal>+=</Literal>,
|
|
<Literal>*</Literal>, <Literal>*=</Literal>, <Literal>==</Literal>,
|
|
<Literal>!=</Literal> and <Literal>in</Literal> operators are supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>Iterator <Function>append</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>x</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This does not return a value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>Iterator <Function>prepend</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>x</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This does not return a value.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQStrList</Title>
|
|
<Para>
|
|
This class isn't implemented. Whenever a <Literal>TQStrList</Literal> is the
|
|
return type of a function or the type of an argument, a Python list of strings
|
|
is used instead.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQStyle (TQt v2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual void <Function>getButtonShift</Function></FuncDef>
|
|
<ParamDef>int &<Parameter>x</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>y</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns a tuple of the <Literal>x</Literal> and
|
|
<Literal>y</Literal> values. (TQt v2)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual void <Function>scrollBarMetrics</Function></FuncDef>
|
|
<ParamDef>const TQScrollBar *<Parameter>b</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>buttonDim</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Thus takes only the <Literal>b</Literal> parameter and returns a tuple of the
|
|
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
|
|
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
|
|
(TQt v2)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual void <Function>tabbarMetrics</Function></FuncDef>
|
|
<ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>hframe</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>vframe</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>overlap</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>t</Literal> parameter and returns a tuple of the
|
|
<Literal>hframe</Literal>, <Literal>vframe</Literal> and
|
|
<Literal>overlap</Literal> values. (TQt v2)
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQStyleOption (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQStyleOption</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQStyleSheet (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQStyleSheet</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQStyleSheetItem (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQStyleSheetItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSyntaxHighlighter (TQt v3.1+)</Title>
|
|
<Para>
|
|
<Literal>TQSyntaxHighlighter</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQTab</Title>
|
|
<Para>
|
|
<Literal>TQTab</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQTabBar</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>TQList<TQTab> <Function>tabList</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a list of <Literal>TQTab</Literal> instances.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQTabDialog</Title>
|
|
<Para>
|
|
<Literal>TQTabDialog</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQTableView (TQt 1.x, TQt 2.x)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>colXPos</Function></FuncDef>
|
|
<ParamDef>int <Parameter>col</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>xPos</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>col</Literal> parameter and returns a tuple containing
|
|
the <Literal>bool</Literal> result and <Literal>xPos</Literal>.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>rowYPos</Function></FuncDef>
|
|
<ParamDef>int <Parameter>row</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>yPos</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>row</Literal> parameter and returns a tuple containing
|
|
the <Literal>bool</Literal> result and <Literal>yPos</Literal>.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQTabWidget (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQTabWidget</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQTextBrowser (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQTextBrowser</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQTextCodec (TQt v2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual TQCString <Function>fromUnicode</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>uc</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>lenInOut</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The returned value is a tuple of the <Literal>TQCString</Literal> result and the
|
|
updated <Literal>lenInOut</Literal>.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQTextDecoder (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQTextDecoder</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQTextEncoder (TQt v2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual TQCString <Function>fromUnicode</Function> = 0</FuncDef>
|
|
<ParamDef>const TQString &<Parameter>uc</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>lenInOut</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The returned value is a tuple of the <Literal>TQCString</Literal> result and the
|
|
updated <Literal>lenInOut</Literal>.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQTextEdit (TQt v3+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>charAt</Function></FuncDef>
|
|
<ParamDef>const TQPoint &<Parameter>pos</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>para</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>pos</Literal> parameter and returns a tuple of the
|
|
value returned via the <Literal>para</Literal> pointer and the int result.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>del</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed <Literal>delChar</Literal> in Python.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual bool <Function>find</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>expr</Parameter></ParamDef>
|
|
<ParamDef>bool <Parameter>cs</Parameter></ParamDef>
|
|
<ParamDef>bool <Parameter>wo</Parameter></ParamDef>
|
|
<ParamDef>bool <Parameter>forward</Parameter> = TRUE</ParamDef>
|
|
<ParamDef>int *<Parameter>para</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>index</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
If the <Literal>para</Literal> and <Literal>index</Literal> parameters are
|
|
omitted then the bool result is returned. If both are supplied (as integers)
|
|
then a tuple of the bool result and the modified values of
|
|
<Literal>para</Literal> and <Literal>index</Literal> is returned.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>getCursorPosition</Function></FuncDef>
|
|
<ParamDef>int *<Parameter>para</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>index</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns a tuple of the values returned via the
|
|
<Literal>para</Literal> and <Literal>index</Literal> pointers.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>getSelection</Function></FuncDef>
|
|
<ParamDef>int *<Parameter>paraFrom</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>indexFrom</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>paraTo</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>indexTo</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>selNum</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>selNum</Literal> parameter and returns a tuple of
|
|
the <Literal>paraFrom</Literal>, <Literal>indexFrom</Literal>,
|
|
<Literal>paraTo</Literal> and <Literal>indexTo</Literal> values.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQTextStream</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQTextStream</Function></FuncDef>
|
|
<ParamDef>FILE *<Parameter>fp</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>mode</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQTextStream &<Function>readRawBytes</Function></FuncDef>
|
|
<ParamDef>char *<Parameter>buf</Parameter></ParamDef>
|
|
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQTextStream &<Function>writeRawBytes</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>buf</Parameter></ParamDef>
|
|
<ParamDef>uint <Parameter>len</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQTextIStream (TQt v2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQTextIStream</Function></FuncDef>
|
|
<ParamDef>FILE *<Parameter>fp</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>mode</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQTextOStream (TQt v2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQTextOStream</Function></FuncDef>
|
|
<ParamDef>FILE *<Parameter>fp</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>mode</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQTextView (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQTextView</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQThread (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQThread</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQTimer</Title>
|
|
<Para>
|
|
<Literal>TQTimer</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQToolBar</Title>
|
|
<Para>
|
|
<Literal>TQToolBar</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQToolBox (TQt v3.2.0+)</Title>
|
|
<Para>
|
|
<Literal>TQToolBox</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQToolButton</Title>
|
|
<Para>
|
|
<Literal>TQToolButton</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQToolTip</Title>
|
|
<Para>
|
|
<Literal>TQToolTip</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQToolTipGroup</Title>
|
|
<Para>
|
|
<Literal>TQToolTipGroup</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQTranslator (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQTranslator</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQTranslatorMessage (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQTranslatorMessage</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQUrl (TQt v2.1+)</Title>
|
|
<Para>
|
|
<Literal>TQUrl</Literal> is fully implemented, including the
|
|
<Literal>TQString()</Literal>, <Literal>==</Literal> and <Literal>!=</Literal>
|
|
operators.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQUrlInfo (TQt v2.1+)</Title>
|
|
<Para>
|
|
<Literal>TQUrlInfo</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQUrlOperator (TQt v2.1+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual bool <Function>isDir</Function></FuncDef>
|
|
<ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This returns a tuple of the <Literal>bool</Literal> result and the
|
|
<Literal>ok</Literal> value.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQUuid (TQt v3.0+)</Title>
|
|
<Para>
|
|
<Literal>TQUuid</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQValidator</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual State <Function>validate</Function></FuncDef>
|
|
<ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
|
|
<ParamDef>int& <Parameter>pos</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The returned value is a tuple of the <Literal>State</Literal> result and the
|
|
updated <Literal>pos</Literal>.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDoubleValidator</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>State <Function>validate</Function></FuncDef>
|
|
<ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
|
|
<ParamDef>int& <Parameter>pos</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The returned value is a tuple of the <Literal>State</Literal> result and the
|
|
updated <Literal>pos</Literal>.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQIntValidator</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>State <Function>validate</Function></FuncDef>
|
|
<ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
|
|
<ParamDef>int& <Parameter>pos</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The returned value is a tuple of the <Literal>State</Literal> result and the
|
|
updated <Literal>pos</Literal>.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQRegExpValidator (TQt v3+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual State <Function>validate</Function></FuncDef>
|
|
<ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
|
|
<ParamDef>int& <Parameter>pos</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The returned value is a tuple of the <Literal>State</Literal> result and the
|
|
updated <Literal>pos</Literal>.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQValueList<type> (TQt v2+)</Title>
|
|
<Para>
|
|
Types based on the <Literal>TQValueList</Literal> template are automatically
|
|
converted to and from Python lists of the type.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQVariant (TQt v2.1+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQVariant</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>val</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQVariant</Function></FuncDef>
|
|
<ParamDef>const TQBitArray &<Parameter>val</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented. (TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQVariant</Function></FuncDef>
|
|
<ParamDef>const TQValueList<TQVariant> &<Parameter>val</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQVariant</Function></FuncDef>
|
|
<ParamDef>const TQMap<TQString,TQVariant> &<Parameter>val</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQBitArray &<Function>asBitArray</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented. (TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool &<Function>asBool</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>double &<Function>asDouble</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>int &<Function>asInt</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQValueList<TQVariant> &<Function>asList</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQMap<TQString,TQVariant> &<Function>asMap</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>uint &<Function>asUInt</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQValueListConstIterator<TQVariant><Function>listBegin</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQValueListConstIterator<TQVariant><Function>listEnd</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQMapConstIterator<TQString,TQVariant><Function>mapBegin</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQMapConstIterator<TQString,TQVariant><Function>mapEnd</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQMapConstIterator<TQString,TQVariant><Function>mapFind</Function> const</FuncDef>
|
|
<ParamDef>const TQString &<Parameter>key</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQValueListConstIterator<TQString><Function>stringListBegin</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQValueListConstIterator<TQString><Function>stringListEnd</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>const TQBitArray <Function>toBitArray</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented. (TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>const TQValueList<TQVariant><Function>toList</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>const TQMap<TQString,TQVariant><Function>toMap</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQVBox (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQVBox</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQVButtonGroup (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQVButtonGroup</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQVGroupBox (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQVGroupBox</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQWaitCondition (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQWaitCondition</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQWhatsThis</Title>
|
|
<Para>
|
|
<Literal>TQWhatsThis</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQWidget</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>TQWExtra *<Function>extraData</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQFocusData *<Function>focusData</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>lower</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed to <Literal>lowerW</Literal> in Python.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>raise</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed to <Literal>raiseW</Literal> in Python.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQWidgetList</Title>
|
|
<Para>
|
|
This class isn't implemented. Whenever a <Literal>TQWidgetList</Literal> is the
|
|
return type of a function or the type of an argument, a Python list of
|
|
instances is used instead.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQWidgetStack</Title>
|
|
<Para>
|
|
<Literal>TQWidgetStack</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQWindow</Title>
|
|
<Para>
|
|
<Literal>TQWindow</Literal> is fully implemented (TQt v1.x).
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQWindowsStyle (TQt v2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>getButtonShift</Function></FuncDef>
|
|
<ParamDef>int &<Parameter>x</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>y</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns a tuple of the <Literal>x</Literal> and
|
|
<Literal>y</Literal> values. (TQt v2)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
|
|
<ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>buttonDim</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
|
|
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
|
|
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
|
|
(TQt v2)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>tabbarMetrics</Function></FuncDef>
|
|
<ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>hframe</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>vframe</Parameter></ParamDef>
|
|
<ParamDef>int &<Parameter>overlap</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes only the <Literal>t</Literal> parameter and returns a tuple of the
|
|
<Literal>hframe</Literal>, <Literal>vframe</Literal> and
|
|
<Literal>overlap</Literal> values. (TQt v2)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQWindowsXPStyle (TQt v3.0.1+, Windows)</Title>
|
|
<Para>
|
|
<Literal>TQWindowsXPStyle</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQWizard (TQt v2+)</Title>
|
|
<Para>
|
|
<Literal>TQWizard</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQWMatrix</Title>
|
|
<Para>
|
|
The Python <Literal>==</Literal>, <Literal>!=</Literal> and
|
|
<Literal>*=</Literal> operators are supported.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>TQWMatrix <Function>invert</Function> const</FuncDef>
|
|
<ParamDef>bool *<Parameter>invertible</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns a tuple of the <Literal>TQWMatrix</Literal>
|
|
result and the <Literal>invertible</Literal> value.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>map</Function> const</FuncDef>
|
|
<ParamDef>int <Parameter>x</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>y</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>tx</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>ty</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>x</Literal> and <Literal>y</Literal> parameters and
|
|
returns a tuple containing the <Literal>tx</Literal> and <Literal>ty</Literal>
|
|
values.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>map</Function> const</FuncDef>
|
|
<ParamDef>float <Parameter>x</Parameter></ParamDef>
|
|
<ParamDef>float <Parameter>y</Parameter></ParamDef>
|
|
<ParamDef>float *<Parameter>tx</Parameter></ParamDef>
|
|
<ParamDef>float *<Parameter>ty</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>x</Literal> and <Literal>y</Literal> parameters and
|
|
returns a tuple containing the <Literal>tx</Literal> and <Literal>ty</Literal>
|
|
values. (TQt v1.x)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>map</Function> const</FuncDef>
|
|
<ParamDef>double <Parameter>x</Parameter></ParamDef>
|
|
<ParamDef>double <Parameter>y</Parameter></ParamDef>
|
|
<ParamDef>double *<Parameter>tx</Parameter></ParamDef>
|
|
<ParamDef>double *<Parameter>ty</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>x</Literal> and <Literal>y</Literal> parameters and
|
|
returns a tuple containing the <Literal>tx</Literal> and <Literal>ty</Literal>
|
|
values. (TQt v2+)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQWorkspace (TQt v2.1+)</Title>
|
|
<Para>
|
|
<Literal>TQWorkspace</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
</Sect1>
|
|
<Sect1><Title><Literal>qtaxcontainer</Literal> Module Reference</Title>
|
|
<Sect2><Title>TQAxBase (Windows, TQt v3+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQAxObject</Function></FuncDef>
|
|
<ParamDef>IUnknown *<Parameter>iface</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>long <Function>queryInterface</Function></FuncDef>
|
|
<ParamDef>const TQUuid &<Parameter>uuid</Parameter></ParamDef>
|
|
<ParamDef>void **<Parameter>iface</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>PropertyBag <Function>propertyBag</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>setPropertyBag</Function></FuncDef>
|
|
<ParamDef>const PropertyBag &<Parameter>bag</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>unsigned long <Function>registerWeakActiveObject</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>guid</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This is a utility method provided by PyTQt to make it easier to use
|
|
Mark Hammond's <Literal>win32com</Literal> module to manipulate objects
|
|
created by the <Literal>qtaxcontainer</Literal> module.
|
|
</Para>
|
|
<Para>
|
|
The <Literal>RegisterActiveObject()</Literal> COM function is called to
|
|
register the <Literal>TQAxBase</Literal> instance as a weak object with the
|
|
<Literal>guid</Literal> GUID. The revoke handle is returned.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>static void <Function>revokeActiveObject</Function></FuncDef>
|
|
<ParamDef>unsigned long <Parameter>rhandle</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This is a wrapper around the <Literal>RevokeActiveObject()</Literal> COM
|
|
function and is called to revoke the object registered using
|
|
<Literal>registerWeakActiveObject()</Literal>. <Literal>rhandle</Literal> is
|
|
the revoke handle returned by <Literal>registerWeakActiveObject()</Literal>.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQAxObject (Windows, TQt v3+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQAxObject</Function></FuncDef>
|
|
<ParamDef>IUnknown *<Parameter>iface</Parameter></ParamDef>
|
|
<ParamDef>TQObject *<Parameter>parent</Parameter> = 0</ParamDef>
|
|
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQAxWidget (Windows, TQt v3+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQAxWidget</Function></FuncDef>
|
|
<ParamDef>IUnknown *<Parameter>iface</Parameter></ParamDef>
|
|
<ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
|
|
<ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
</Sect1>
|
|
<Sect1><Title><Literal>qtcanvas</Literal> Module Reference</Title>
|
|
<Sect2><Title>TQCanvas (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQCanvas</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCanvasEllipse (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQCanvasEllipse</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCanvasItem (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQCanvasItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCanvasItemList (TQt v2.2+)</Title>
|
|
<Para>
|
|
This class isn't implemented. Whenever a <Literal>TQCanvasItemList</Literal> is
|
|
the return type of a function or the type of an argument, a Python list of
|
|
<Literal>TQCanvasItem</Literal> instances is used instead.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCanvasLine (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQCanvasLine</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCanvasPixmap (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQCanvasPixmap</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCanvasPixmapArray (TQt v2.2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQPixmapArray</Function></FuncDef>
|
|
<ParamDef>TQList<TQPixmap> <Parameter>pixmaps</Parameter></ParamDef>
|
|
<ParamDef>TQList<TQPoint> <Parameter>hotspots</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>pixmaps</Literal> argument is a Python list of TQPixmap instances,
|
|
and the <Literal>hotspots</Literal> argument is a Python list of TQPoint
|
|
instances. (TQt v2.2.0 - TQt v2.3.1)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQPixmapArray</Function></FuncDef>
|
|
<ParamDef>TQValueList<TQPixmap> <Parameter>pixmaps</Parameter></ParamDef>
|
|
<ParamDef>TQPointArray <Parameter>hotspots</Parameter> = TQPointArray()</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
The <Literal>pixmaps</Literal> argument is a Python list of TQPixmap instances.
|
|
(TQt v3+)
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCanvasPolygon (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQCanvasPolygon</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCanvasPolygonalItem (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQCanvasPolygonalItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCanvasRectangle (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQCanvasRectangle</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCanvasSpline (TQt v3.0+)</Title>
|
|
<Para>
|
|
<Literal>TQCanvasSpline</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCanvasSprite (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQCanvasSprite</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCanvasText (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQCanvasText</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCanvasView (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQCanvasView</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
</Sect1>
|
|
<Sect1><Title><Literal>qtext</Literal> Module Reference</Title>
|
|
|
|
<Sect2><Title>QextScintilla</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>getCursorPosition</Function></FuncDef>
|
|
<ParamDef>int *<Parameter>line</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>index</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns a tuple of the values returned by the
|
|
<Literal>line</Literal> and <Literal>index</Literal> pointers.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>getSelection</Function></FuncDef>
|
|
<ParamDef>int *<Parameter>lineFrom</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>indexFrom</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>lineTo</Parameter></ParamDef>
|
|
<ParamDef>int *<Parameter>indexTo</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes no parameters and returns a tuple of the values returned by the
|
|
<Literal>lineFrom</Literal>, <Literal>indexFrom</Literal>,
|
|
<Literal>lineTo</Literal> and <Literal>indexTo</Literal> pointers.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaAPIs</Title>
|
|
<Para>
|
|
<Literal>QextScintillaAPIs</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaBase</Title>
|
|
<Para>
|
|
<Literal>QextScintillaBase</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaCommand</Title>
|
|
<Para>
|
|
<Literal>QextScintillaCommand</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaCommandSet</Title>
|
|
<Para>
|
|
<Literal>QextScintillaCommandSet</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaDocument</Title>
|
|
<Para>
|
|
<Literal>QextScintillaDocument</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexer</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexer</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerBash (TQScintilla v1.4+)</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerBash</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerBatch (TQScintilla v1.6+)</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerBatch</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerCPP</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerCPP</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerCSharp</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerCSharp</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerCSS (TQScintilla v1.6+)</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerCSS</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerDiff (TQScintilla v1.6+)</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerDiff</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerHTML (TQScintilla v1.1+)</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerHTML</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerIDL</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerIDL</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerJava</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerJava</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerJavaScript</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerJavaScript</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerLua (TQScintilla v1.5+)</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerLua</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerMakefile (TQScintilla v1.6+)</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerMakefile</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerPerl</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerPerl</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerPOV (TQScintilla v1.6+)</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerPOV</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerProperties (TQScintilla v1.6+)</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerProperties</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerPython</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerPython</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerRuby (TQScintilla v1.5+)</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerRuby</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerSQL (TQScintilla v1.1+)</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerSQL</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaLexerTeX (TQScintilla v1.6+)</Title>
|
|
<Para>
|
|
<Literal>QextScintillaLexerTeX</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaMacro</Title>
|
|
<Para>
|
|
<Literal>QextScintillaMacro</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>QextScintillaPrinter</Title>
|
|
<Para>
|
|
<Literal>QextScintillaPrinter</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
</Sect1>
|
|
<Sect1><Title><Literal>qtgl</Literal> Module Reference</Title>
|
|
<Sect2><Title>TQGL</Title>
|
|
<Para>
|
|
<Literal>TQGL</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQGLContext</Title>
|
|
<Para>
|
|
<Literal>TQGLContext</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQGLFormat</Title>
|
|
<Para>
|
|
<Literal>TQGLFormat</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQGLWidget</Title>
|
|
<Para>
|
|
<Literal>TQGLWidget</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQGLColormap (TQt v3.0+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>setEntries</Function></FuncDef>
|
|
<ParamDef>int <Parameter>count</Parameter></ParamDef>
|
|
<ParamDef>const TQRgb *<Parameter>colors</Parameter></ParamDef>
|
|
<ParamDef>int <Parameter>base</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
</Sect2>
|
|
</Sect1>
|
|
<Sect1><Title><Literal>qtnetwork</Literal> Module Reference</Title>
|
|
<Sect2><Title>TQDns (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDns</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQFtp (TQt v2.2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
|
|
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>Q_ULONG <Parameter>maxlen</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes a single <Literal>maxlen</Literal> parameter. The
|
|
<Literal>data</Literal> is returned if there was no error, otherwise
|
|
<Literal>None</Literal> is returned.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQHostAddress (TQt v2.2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQHostAddress</Function></FuncDef>
|
|
<ParamDef>Q_UINT8 *<Parameter>ip6Addr</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQHostAddress</Function></FuncDef>
|
|
<ParamDef>const Q_IPV6ADDR &<Parameter>ip6Addr</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>void <Function>setAddress</Function></FuncDef>
|
|
<ParamDef>Q_UINT8 *<Parameter>ip6Addr</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>Q_IPV6ADDR <Function>toIPv6Address</Function> const</FuncDef>
|
|
<ParamDef><Parameter></Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQHttp (TQt v3+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
|
|
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>Q_ULONG <Parameter>maxlen</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes a single <Literal>maxlen</Literal> parameter. The
|
|
<Literal>data</Literal> is returned if there was no error, otherwise
|
|
<Literal>None</Literal> is returned.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQHttpHeader (TQt v3.1+)</Title>
|
|
<Para>
|
|
<Literal>TQHttpHeader</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQHttpRequestHeader (TQt v3.1+)</Title>
|
|
<Para>
|
|
<Literal>TQHttpRequestHeader</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQHttpResponseHeader (TQt v3.1+)</Title>
|
|
<Para>
|
|
<Literal>TQHttpResponseHeader</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQLocalFs (TQt v2.1+)</Title>
|
|
<Para>
|
|
<Literal>TQLocalFs</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQServerSocket (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQServerSocket</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSocket (TQt v2.2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
|
|
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>Q_ULONG <Parameter>len</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes a single <Literal>len</Literal> parameter. The
|
|
<Literal>data</Literal> is returned if there was no error, otherwise
|
|
<Literal>Py_None</Literal> is returned.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>Q_LONG <Function>readLine</Function></FuncDef>
|
|
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>Q_ULONG <Parameter>maxlen</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes a single <Literal>maxlen</Literal> parameter. The
|
|
<Literal>data</Literal> is returned if there was no error, otherwise
|
|
<Literal>Py_None</Literal> is returned.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>Q_LONG <Function>writeBlock</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>Q_ULONG <Parameter>len</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
<Literal>len</Literal> is derived from <Literal>data</Literal> and not passed
|
|
as a parameter.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSocketDevice (TQt v2.2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
|
|
<ParamDef>char *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>Q_ULONG <Parameter>len</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes a single <Literal>len</Literal> parameter. The
|
|
<Literal>data</Literal> is returned if there was no error, otherwise
|
|
<Literal>None</Literal> is returned.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>Q_LONG <Function>writeBlock</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>data</Parameter></ParamDef>
|
|
<ParamDef>Q_ULONG <Parameter>len</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
<Literal>len</Literal> is derived from <Literal>data</Literal> and not passed
|
|
as a parameter.
|
|
</Para>
|
|
</Sect2>
|
|
</Sect1>
|
|
<Sect1><Title><Literal>qtpe</Literal> Module Reference</Title>
|
|
|
|
<Sect2><Title>TQPEApplication</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef><Function>TQApplication</Function></FuncDef>
|
|
<ParamDef>int& <Parameter>argc</Parameter></ParamDef>
|
|
<ParamDef>char **<Parameter>argv</Parameter></ParamDef>
|
|
<ParamDef>Type <Parameter>type</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes two parameters, the first of which is a list of argument strings.
|
|
Arguments used by TQt are removed from the list.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>exec</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed to <Literal>exec_loop</Literal> in Python.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>AppLnk</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual TQString <Function>exec</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed to <Literal>exec_property</Literal> in Python.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>AppLnkSet</Title>
|
|
<Para>
|
|
<Literal>AppLnkSet</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>Config</Title>
|
|
<Para>
|
|
<Literal>Config</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>DateFormat</Title>
|
|
<Para>
|
|
<Literal>DateFormat</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>DocLnk</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>TQString <Function>exec</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed to <Literal>exec_property</Literal> in Python.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>DocLnkSet</Title>
|
|
<Para>
|
|
<Literal>DocLnkSet</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>FileManager</Title>
|
|
<Para>
|
|
<Literal>FileManager</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>FileSelector</Title>
|
|
<Para>
|
|
<Literal>FileSelector</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>FileSelectorItem</Title>
|
|
<Para>
|
|
<Literal>FileSelectorItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>FontDatabase</Title>
|
|
<Para>
|
|
<Literal>FontDatabase</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>Global</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>static void <Function>setBuiltinCommands</Function></FuncDef>
|
|
<ParamDef>Command *</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>MenuButton</Title>
|
|
<Para>
|
|
<Literal>MenuButton</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCopEnvelope</Title>
|
|
<Para>
|
|
<Literal>TQCopEnvelope</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDawg</Title>
|
|
<Para>
|
|
<Literal>TQDawg</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQPEMenuBar</Title>
|
|
<Para>
|
|
<Literal>TQPEMenuBar</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQPEToolBar</Title>
|
|
<Para>
|
|
<Literal>TQPEToolBar</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>Resource</Title>
|
|
<Para>
|
|
<Literal>Resource</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
</Sect1>
|
|
<Sect1><Title><Literal>qtsql</Literal> Module Reference</Title>
|
|
<Sect2><Title>TQDataBrowser (TQt v3+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual void <Function>del</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed <Literal>delOnCursor</Literal> in Python.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQDataTable (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQDataTable</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQDataView (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQDataView</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQEditorFactory (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQEditorFactory</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSql (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQSql</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSqlCursor (TQt v3+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual int <Function>del</Function></FuncDef>
|
|
<ParamDef>bool <Parameter>invalidate</Parameter> = TRUE</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed <Literal>delRecords</Literal> in Python.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual int <Function>del</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>filter</Parameter></ParamDef>
|
|
<ParamDef>bool <Parameter>invalidate</Parameter> = TRUE</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed <Literal>delRecords</Literal> in Python.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>exec</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>query</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed <Literal>execQuery</Literal> in Python.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSqlDatabase (TQt v3+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>TQSqlQuery <Function>exec</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>query</Parameter> = TQString::null</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed <Literal>execStatement</Literal> in Python.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSqlDriver (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQSqlDriver</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSqlEditorFactory (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQSqlEditorFactory</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSqlError (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQSqlError</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSqlField (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQSqlField</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQSqlFieldInfo (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQSqlFieldInfo</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSqlForm (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQSqlForm</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSqlIndex (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQSqlIndex</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSqlPropertyMap (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQSqlPropertyMap</Literal> is fully implemented. However, because PyTQt
|
|
does not allow new properties to be defined, it is not possible to implement
|
|
custom editor widgets in Python and add them to a property map. These will
|
|
simply be ignored.
|
|
</Para>
|
|
|
|
<Para>
|
|
This problem may be addressed in a future release of PyTQt.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSqlQuery (TQt v3+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>TQMap<TQString,TQVariant> <Function>boundValues</Function> const</FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented. (TQt v3.2.0+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>virtual bool <Function>exec</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>query</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed <Literal>execQuery</Literal> in Python.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>exec</Function></FuncDef>
|
|
<ParamDef></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed <Literal>execQuery</Literal> in Python. (TQt v3.1+)
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSqlRecord (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQSqlRecord</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQSqlRecordInfo (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQSqlRecordInfo</Literal> is implemented as a Python list of
|
|
<Literal>TQSqlFieldInfo</Literal> instances.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSqlResult (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQSqlResult</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
<Sect2><Title>TQSqlSelectCursor (TQt v3.2.0+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>int <Function>del</Function></FuncDef>
|
|
<ParamDef>bool <Parameter>invalidate</Parameter> = TRUE</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed <Literal>delRecords</Literal> in Python.
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>exec</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>query</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This has been renamed <Literal>execQuery</Literal> in Python.
|
|
</Para>
|
|
</Sect2>
|
|
</Sect1>
|
|
<Sect1><Title><Literal>qttable</Literal> Module Reference</Title>
|
|
<Sect2><Title>TQTable (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQTable</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQTableItem (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQTableItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQCheckTableItem (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQCheckTableItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQComboTableItem (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQComboTableItem</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQTableSelection (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQTableSelection</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
</Sect1>
|
|
<Sect1><Title><Literal>qtui</Literal> Module Reference</Title>
|
|
<Sect2><Title>TQWidgetFactory (TQt v3+)</Title>
|
|
<Para>
|
|
<Literal>TQWidgetFactory</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
</Sect1>
|
|
<Sect1><Title><Literal>qtxml</Literal> Module Reference</Title>
|
|
<Sect2><Title>TQDomImplementation (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomImplementation</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomNode (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomNode</Literal> is fully implemented, including the Python
|
|
<Literal>==</Literal> and <Literal>!=</Literal> operators.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomNodeList (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomNodeList</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomDocument (TQt v2.2+)</Title>
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>setContent</Function></FuncDef>
|
|
<ParamDef>const TQCString &<Parameter>buffer</Parameter></ParamDef>
|
|
<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
|
|
<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>buffer</Literal> and
|
|
<Literal>namespaceProcessing</Literal> parameters and returns a tuple
|
|
containing the <Literal>bool</Literal> result and the
|
|
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
|
|
<Literal>errorColumn</Literal> values. (TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>setContent</Function></FuncDef>
|
|
<ParamDef>const TQByteArray &<Parameter>buffer</Parameter></ParamDef>
|
|
<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
|
|
<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>buffer</Literal> and
|
|
<Literal>namespaceProcessing</Literal> parameters and returns a tuple
|
|
containing the <Literal>bool</Literal> result and the
|
|
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
|
|
<Literal>errorColumn</Literal> values. (TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>setContent</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>text</Parameter></ParamDef>
|
|
<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
|
|
<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>text</Literal> and
|
|
<Literal>namespaceProcessing</Literal> parameters and returns a tuple
|
|
containing the <Literal>bool</Literal> result and the
|
|
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
|
|
<Literal>errorColumn</Literal> values. (TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>setContent</Function></FuncDef>
|
|
<ParamDef>const TQIODevice *<Parameter>dev</Parameter></ParamDef>
|
|
<ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
|
|
<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>dev</Literal> and
|
|
<Literal>namespaceProcessing</Literal> parameters and returns a tuple
|
|
containing the <Literal>bool</Literal> result and the
|
|
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
|
|
<Literal>errorColumn</Literal> values. (TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>setContent</Function></FuncDef>
|
|
<ParamDef>const TQCString &<Parameter>buffer</Parameter></ParamDef>
|
|
<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>buffer</Literal> parameter only and returns a tuple
|
|
containing the <Literal>bool</Literal> result and the
|
|
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
|
|
<Literal>errorColumn</Literal> values. (TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>setContent</Function></FuncDef>
|
|
<ParamDef>const TQByteArray &<Parameter>buffer</Parameter></ParamDef>
|
|
<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>buffer</Literal> parameter only and returns a tuple
|
|
containing the <Literal>bool</Literal> result and the
|
|
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
|
|
<Literal>errorColumn</Literal> values. (TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>setContent</Function></FuncDef>
|
|
<ParamDef>const TQString &<Parameter>text</Parameter></ParamDef>
|
|
<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>text</Literal> parameter only and returns a tuple
|
|
containing the <Literal>bool</Literal> result and the
|
|
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
|
|
<Literal>errorColumn</Literal> values. (TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>setContent</Function></FuncDef>
|
|
<ParamDef>const TQIODevice *<Parameter>dev</Parameter></ParamDef>
|
|
<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
This takes the <Literal>dev</Literal> parameter only and returns a tuple
|
|
containing the <Literal>bool</Literal> result and the
|
|
<Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
|
|
<Literal>errorColumn</Literal> values. (TQt v3+)
|
|
</Para>
|
|
|
|
<FuncSynopsis>
|
|
<FuncDef>bool <Function>setContent</Function></FuncDef>
|
|
<ParamDef>TQXmlInputSource *<Parameter>source</Parameter></ParamDef>
|
|
<ParamDef>TQXmlReader *<Parameter>reader</Parameter></ParamDef>
|
|
<ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
|
|
<ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
|
|
</FuncSynopsis>
|
|
<Para>
|
|
Not yet implemented. (TQt v3.2.0+)
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomDocumentFragment (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomDocumentFragment</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomDocumentType (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomDocumentType</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomNamedNodeMap (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomNamedNodeMap</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomCharacterData (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomCharacterData</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomAttr (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomAttr</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomElement (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomElement</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomText (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomText</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomComment (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomComment</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomCDATASection (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomCDATASection</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomNotation (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomNotation</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomEntity (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomEntity</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomEntityReference (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomEntityReference</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
|
|
<Sect2><Title>TQDomProcessingInstruction (TQt v2.2+)</Title>
|
|
<Para>
|
|
<Literal>TQDomProcessingInstruction</Literal> is fully implemented.
|
|
</Para>
|
|
</Sect2>
|
|
</Sect1>
|
|
</Article>
|