SIP4 python bindings for TQt
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
170KB

  1. <!DOCTYPE Article PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
  2. <Article>
  3. <ArtHeader>
  4. <Title>Python Bindings for TQt (3.18.1)</Title>
  5. <Author>
  6. <FirstName>Phil</FirstName>
  7. <Surname>Thompson</Surname>
  8. </Author>
  9. <Abstract>
  10. <Para>
  11. This document describes a set of Python bindings for the TQt widget set.
  12. Contact the author at <Email>phil@riverbankcomputing.co.uk</Email>.
  13. </Para>
  14. </Abstract>
  15. </ArtHeader>
  16. <Sect1><Title>Introduction</Title>
  17. <Para>
  18. PyTQt is a set of Python bindings for the TQt toolkit and available for all
  19. platforms supported by TQt, including Windows, Linux, UNIX, MacOS/X and embedded
  20. systems such as the Sharp Zaurus and the Compaq iPAQ. They have been tested
  21. against TQt versions 1.43 to 3.3.6, TQt Non-commercial, TQtopia 1.5.0, and Python
  22. versions 1.5 to 2.4.2. TQt/Embedded v3 is not supported. TQt v4 is supported
  23. by PyTQt v4.
  24. </Para>
  25. <Para>
  26. PyTQt is available under the GPL license for use with the GPL version of TQt, a
  27. a commercial license for use with the commercial version of TQt, a
  28. non-commercial license for use with the non-commercial version of TQt v2, and an
  29. educational license for use with the educational version of TQt.
  30. </Para>
  31. <Para>
  32. There is also an evaluation version of PyTQt for Windows. This must be used
  33. with the corresponding evaluation version of TQt.
  34. </Para>
  35. <Para>
  36. PyTQt is built using SIP (a tool for generating Python extension modules for
  37. C++ class libraries). SIP v4.6 or later must be installed in order to build
  38. and run this version of PyTQt.
  39. </Para>
  40. <Para>
  41. PyTQt for MacOS/X requires TQt v3.1.0 or later and Python v2.3 or later.
  42. </Para>
  43. <Para>
  44. The bindings are implemented as a number of Python modules
  45. </Para>
  46. <ItemizedList>
  47. <ListItem>
  48. <Para>
  49. <Literal>qt</Literal> is the main module and contains the core classes and most
  50. user interface widgets.
  51. </Para>
  52. </ListItem>
  53. <ListItem>
  54. <Para>
  55. <Literal>qtaxcontainer</Literal> contains a sub-set of the classes implemented
  56. in TQt's TQAxContainer module, part of TQt's ActiveTQt framework.
  57. </Para>
  58. </ListItem>
  59. <ListItem>
  60. <Para>
  61. <Literal>qtcanvas</Literal> contains the classes implemented in TQt's Canvas
  62. module.
  63. </Para>
  64. </ListItem>
  65. <ListItem>
  66. <Para>
  67. <Literal>qtgl</Literal> contains the classes implemented in TQt's OpenGL module.
  68. </Para>
  69. </ListItem>
  70. <ListItem>
  71. <Para>
  72. <Literal>qtnetwork</Literal> contains the classes implemented in TQt's Network
  73. module.
  74. </Para>
  75. </ListItem>
  76. <ListItem>
  77. <Para>
  78. <Literal>qtpe</Literal> contains the classes implemented in TQtopia (originally
  79. called the TQt Palmtop Environment). It is only supported with TQt/Embedded.
  80. </Para>
  81. </ListItem>
  82. <ListItem>
  83. <Para>
  84. <Literal>qtsql</Literal> contains the classes implemented in TQt's SQL module.
  85. </Para>
  86. </ListItem>
  87. <ListItem>
  88. <Para>
  89. <Literal>qttable</Literal> contains the classes implemented in TQt's Table
  90. module.
  91. </Para>
  92. </ListItem>
  93. <ListItem>
  94. <Para>
  95. <Literal>qtui</Literal> contains the classes implemented in TQt's tqui library.
  96. These allow GUIs to be created directly from TQt Designer's
  97. <Literal>.ui</Literal> files.
  98. </Para>
  99. </ListItem>
  100. <ListItem>
  101. <Para>
  102. <Literal>qtxml</Literal> contains the classes implemented in TQt's XML module.
  103. </Para>
  104. </ListItem>
  105. <ListItem>
  106. <Para>
  107. <Literal>qtext</Literal> contains useful third-party classes that are not part
  108. of TQt. At the moment it contains bindings for TQScintilla, the port to TQt of
  109. the Scintilla programmer's editor class.
  110. </Para>
  111. </ListItem>
  112. </ItemizedList>
  113. <Para>
  114. PyTQt also includes the <Literal>pyuic</Literal> and
  115. <Literal>pylupdate</Literal> utilities which correspond to the TQt
  116. <Literal>uic</Literal> and <Literal>lupdate</Literal> utilities.
  117. <Literal>pyuic</Literal> converts the GUI designs created with TQt Designer to
  118. executable Python code. <Literal>pylupdate</Literal> scans Python code,
  119. extracts all strings that are candidates for internationalisation, and creates
  120. an XML file for use by TQt Linguist.
  121. </Para>
  122. <Sect2><Title>Changes</Title>
  123. <Para>
  124. The changes visible to the Python programmer in this release are as follows.
  125. </Para>
  126. <ItemizedList>
  127. <ListItem>
  128. <Para>
  129. This version requires SIP v4.4 (or later).
  130. </Para>
  131. </ListItem>
  132. <ListItem>
  133. <Para>
  134. Concatenating Python strings and <Literal>TQString</Literal>s is now supported.
  135. </Para>
  136. </ListItem>
  137. <ListItem>
  138. <Para>
  139. <Literal>TQString</Literal> now supports the <Literal>*</Literal> and
  140. <Literal>*=</Literal> operators that behave as they do for Python strings.
  141. </Para>
  142. </ListItem>
  143. <ListItem>
  144. <Para>
  145. <Literal>TQString</Literal> is more interoperable with Python string and unicode
  146. objects. For example they can be passed as arguments to
  147. <Literal>open()</Literal> and to most (but not all) string methods.
  148. </Para>
  149. </ListItem>
  150. <ListItem>
  151. <Para>
  152. <Literal>TQPopupMenu</Literal> (and sub-classes) instances now transfer
  153. ownership of the menu to Python in the call to <Literal>exec_loop()</Literal>.
  154. This means the menu's resources are all released when the Python wrapper is
  155. garbage collected without needing to call
  156. <Literal>TQObject.deleteLater()</Literal>.
  157. </Para>
  158. </ListItem>
  159. <ListItem>
  160. <Para>
  161. <Literal>TQObject.sender()</Literal> now handles Python signals.
  162. </Para>
  163. </ListItem>
  164. <ListItem>
  165. <Para>
  166. The missing <Literal>MacintoshVersion</Literal> enum has been added.
  167. </Para>
  168. </ListItem>
  169. <ListItem>
  170. <Para>
  171. <Literal>PYQT_BUILD</Literal> has been removed.
  172. </Para>
  173. </ListItem>
  174. <ListItem>
  175. <Para>
  176. The convention for converting between a C/C++ null pointer and Python's
  177. <Literal>None</Literal> object has now been universally applied. In previous
  178. versions a null pointer to, for example, a TQt list container would often be
  179. converted to an empty list rather than <Literal>None</Literal>.
  180. </Para>
  181. </ListItem>
  182. </ItemizedList>
  183. </Sect2>
  184. </Sect1>
  185. <Sect1><Title>Other PyTQt Goodies</Title>
  186. <Sect2><Title>Using TQt Designer</Title>
  187. <Para>
  188. TQt Designer is a GPL'ed GUI design editor provided by Trolltech as part of TQt.
  189. It generates an XML description of a GUI design. TQt includes
  190. <Literal>uic</Literal> which generates C++ code from that XML.
  191. </Para>
  192. <Para>
  193. PyTQt includes <Literal>pyuic</Literal> which generates Python code from the
  194. same XML. The Python code is self contained and can be executed immediately.
  195. </Para>
  196. <Para>
  197. It is sometimes useful to be able to include some specific Python code in the
  198. output generated by <Literal>pyuic</Literal>. For example, if you are using
  199. custom widgets, <Literal>pyuic</Literal> has no way of knowing the name of the
  200. Python module containing the widget and so cannot generate the required
  201. <Literal>import</Literal> statement. To help get around this,
  202. <Literal>pyuic</Literal> will extract any lines entered in the
  203. <Literal>Comment</Literal> field of TQt Designer's
  204. <Literal>Form Settings</Literal> dialog that begin with
  205. <Literal>Python:</Literal> and copies them to the generated output.
  206. </Para>
  207. <Para>
  208. Here's a simple example showing the contents of the <Literal>Comment</Literal>
  209. field.
  210. </Para>
  211. <ProgramListing>
  212. This comment will be ignored by pyuic.
  213. Python:
  214. Python:# Import our custom widget.
  215. Python:from foo import bar
  216. </ProgramListing>
  217. <Para>
  218. Here's the corresponding output from <Literal>pyuic</Literal>.
  219. </Para>
  220. <ProgramListing>
  221. from qt import *
  222. # Import our custom widget.
  223. from foo import bar
  224. </ProgramListing>
  225. <Para>
  226. Thanks to Christian Bird, <Literal>pyuic</Literal> will extract Python code
  227. entered using TQt Designer to implement slots. In TQt Designer, when you need to
  228. edit a slot and the source editor appears, enter Python code between the curly
  229. braces. Don't worry about the correct starting indent level, each line is
  230. prepended with a correct indentation.
  231. </Para>
  232. <Para>
  233. Make sure that the <Literal>ui.h</Literal> file is in the same directory as the
  234. <Literal>.ui</Literal> file when using <Literal>pyuic</Literal>. The
  235. <Literal>.ui</Literal> file implies the name of the <Literal>.ui.h</Literal>
  236. file so there is no need to specify it on the command line.
  237. </Para>
  238. <Para>
  239. Here's an example of a simple slot.
  240. </Para>
  241. <ProgramListing>
  242. void DebMainWindowFrm::browsePushButtonClicked()
  243. {
  244. if self.debugging:
  245. TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
  246. }
  247. </ProgramListing>
  248. <Para>
  249. Here is the resulting code when <Literal>pyuic</Literal> is run.
  250. </Para>
  251. <ProgramListing>
  252. class DebMainWindowFrm(TQMainWindow):
  253. ...stuff...
  254. def browsePushButtonClicked(self):
  255. if self.debugging:
  256. TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
  257. </ProgramListing>
  258. <Para>
  259. Note that indenting is as normal and that <Literal>self</Literal> and all other
  260. parameters passed to the slot are available.
  261. </Para>
  262. <Para>
  263. If you use this, you will need to turn off all of the fancy options for the C++
  264. editor in Designer as it tries to force C++ syntax and that's naturally
  265. annoying when trying to code in Python.
  266. </Para>
  267. </Sect2>
  268. <Sect2><Title>Using TQt Linguist</Title>
  269. <Para>
  270. TQt includes the <Literal>lupdate</Literal> program which parses C++ source
  271. files converting calls to the <Literal>QT_TR_NOOP()</Literal> and
  272. <Literal>QT_TRANSLATE_NOOP()</Literal> macros to <Literal>.ts</Literal>
  273. language source files. The <Literal>lrelease</Literal> program is then used to
  274. generate <Literal>.qm</Literal> binary language files that are distributed with
  275. your application.
  276. </Para>
  277. <Para>
  278. Thanks to Detlev Offenbach, PyTQt includes the <Literal>pylupdate</Literal>
  279. program. This generates the same <Literal>.ts</Literal> language source files
  280. from your PyTQt source files.
  281. </Para>
  282. </Sect2>
  283. </Sect1>
  284. <Sect1><Title>Deploying Commercial PyTQt Applications</Title>
  285. <Para>
  286. When deploying commercial PyTQt applications it is necessary to discourage users
  287. from accessing the underlying PyTQt modules for themselves. A user that used
  288. the modules shipped with your application to develop new applications would
  289. themselves be considered a developer and would need their own commercial TQt and
  290. PyTQt licenses.
  291. </Para>
  292. <Para>
  293. One solution to this problem is the
  294. <ULink url="http://www.riverbankcomputing.co.uk/vendorid/">VendorID</ULink>
  295. package. This allows you to build Python extension modules that can only be
  296. imported by a digitally signed custom interpreter. The package enables you to
  297. create such an interpreter with your application embedded within it. The
  298. result is an interpreter that can only run your application, and PyTQt modules
  299. that can only be imported by that interpreter. You can use the package to
  300. similarly restrict access to any extension module.
  301. </Para>
  302. <Para>
  303. In order to build PyTQt with support for the VendorID package, pass the
  304. <Literal>-i</Literal> command line flag to <Literal>configure.py</Literal>.
  305. </Para>
  306. </Sect1>
  307. <Sect1><Title><Literal>pyqtconfig</Literal> and Build System Support</Title>
  308. <Para>
  309. The SIP build system (ie. the <Literal>sipconfig</Literal> module) is described
  310. in the SIP documentation. PyTQt includes the <Literal>pyqtconfig</Literal>
  311. module that can be used by configuration scripts of other bindings that are
  312. built on top of PyTQt.
  313. </Para>
  314. <Para>
  315. The <Literal>pyqtconfig</Literal> module contains the following classes:
  316. </Para>
  317. <VariableList>
  318. <VarListEntry>
  319. <Term><Literal>Configuration(sipconfig.Configuration)</Literal></Term>
  320. <ListItem>
  321. <Para>
  322. This class encapsulates additional configuration values, specific to PyTQt, that
  323. can be accessed as instance variables.
  324. </Para>
  325. <Para>
  326. The following configuration values are provided (in addition to those provided
  327. by the <Literal>sipconfig.Configuration</Literal> class):
  328. </Para>
  329. <VariableList>
  330. <VarListEntry>
  331. <Term><Literal>pyqt_bin_dir</Literal></Term>
  332. <ListItem>
  333. <Para>
  334. The name of the directory containing the <Literal>pyuic</Literal> and
  335. <Literal>pylupdate</Literal> executables.
  336. </Para>
  337. <Para></Para><Para></Para>
  338. </ListItem>
  339. </VarListEntry>
  340. <VarListEntry>
  341. <Term><Literal>pyqt_config_args</Literal></Term>
  342. <ListItem>
  343. <Para>
  344. The command line passed to <Literal>configure.py</Literal> when PyTQt was
  345. configured.
  346. </Para>
  347. <Para></Para><Para></Para>
  348. </ListItem>
  349. </VarListEntry>
  350. <VarListEntry>
  351. <Term><Literal>pyqt_mod_dir</Literal></Term>
  352. <ListItem>
  353. <Para>
  354. The name of the directory containing the PyTQt modules.
  355. </Para>
  356. <Para></Para><Para></Para>
  357. </ListItem>
  358. </VarListEntry>
  359. <VarListEntry>
  360. <Term><Literal>pyqt_modules</Literal></Term>
  361. <ListItem>
  362. <Para>
  363. A string containing the names of the PyTQt modules that were installed.
  364. </Para>
  365. <Para></Para><Para></Para>
  366. </ListItem>
  367. </VarListEntry>
  368. <VarListEntry>
  369. <Term><Literal>pyqt_qt_sip_flags</Literal></Term>
  370. <ListItem>
  371. <Para>
  372. A string of the SIP flags used to generate the code for the
  373. <Literal>qt</Literal> module and which should be added to those needed by any
  374. module that imports the <Literal>qt</Literal> module.
  375. </Para>
  376. <Para></Para><Para></Para>
  377. </ListItem>
  378. </VarListEntry>
  379. <VarListEntry>
  380. <Term><Literal>pyqt_qtaxcontainer_sip_flags</Literal></Term>
  381. <ListItem>
  382. <Para>
  383. A string of the SIP flags used to generate the code for the
  384. <Literal>qtaxcontainer</Literal> module and which should be added to those
  385. needed by any module that imports the <Literal>qtaxcontainer</Literal> module.
  386. </Para>
  387. <Para></Para><Para></Para>
  388. </ListItem>
  389. </VarListEntry>
  390. <VarListEntry>
  391. <Term><Literal>pyqt_qtcanvas_sip_flags</Literal></Term>
  392. <ListItem>
  393. <Para>
  394. A string of the SIP flags used to generate the code for the
  395. <Literal>qtcanvas</Literal> module and which should be added to those needed by
  396. any module that imports the <Literal>qtcanvas</Literal> module.
  397. </Para>
  398. <Para></Para><Para></Para>
  399. </ListItem>
  400. </VarListEntry>
  401. <VarListEntry>
  402. <Term><Literal>pyqt_qtext_sip_flags</Literal></Term>
  403. <ListItem>
  404. <Para>
  405. A string of the SIP flags used to generate the code for the
  406. <Literal>qtext</Literal> module and which should be added to those needed by
  407. any module that imports the <Literal>qtext</Literal> module.
  408. </Para>
  409. <Para></Para><Para></Para>
  410. </ListItem>
  411. </VarListEntry>
  412. <VarListEntry>
  413. <Term><Literal>pyqt_qtgl_sip_flags</Literal></Term>
  414. <ListItem>
  415. <Para>
  416. A string of the SIP flags used to generate the code for the
  417. <Literal>qtgl</Literal> module and which should be added to those needed by any
  418. module that imports the <Literal>qtgl</Literal> module.
  419. </Para>
  420. <Para></Para><Para></Para>
  421. </ListItem>
  422. </VarListEntry>
  423. <VarListEntry>
  424. <Term><Literal>pyqt_qtnetwork_sip_flags</Literal></Term>
  425. <ListItem>
  426. <Para>
  427. A string of the SIP flags used to generate the code for the
  428. <Literal>qtnetwork</Literal> module and which should be added to those needed
  429. by any module that imports the <Literal>qtnetwork</Literal> module.
  430. </Para>
  431. <Para></Para><Para></Para>
  432. </ListItem>
  433. </VarListEntry>
  434. <VarListEntry>
  435. <Term><Literal>pyqt_qtsql_sip_flags</Literal></Term>
  436. <ListItem>
  437. <Para>
  438. A string of the SIP flags used to generate the code for the
  439. <Literal>qtsql</Literal> module and which should be added to those needed by
  440. any module that imports the <Literal>qtsql</Literal> module.
  441. </Para>
  442. <Para></Para><Para></Para>
  443. </ListItem>
  444. </VarListEntry>
  445. <VarListEntry>
  446. <Term><Literal>pyqt_qttable_sip_flags</Literal></Term>
  447. <ListItem>
  448. <Para>
  449. A string of the SIP flags used to generate the code for the
  450. <Literal>qttable</Literal> module and which should be added to those needed by
  451. any module that imports the <Literal>qttable</Literal> module.
  452. </Para>
  453. <Para></Para><Para></Para>
  454. </ListItem>
  455. </VarListEntry>
  456. <VarListEntry>
  457. <Term><Literal>pyqt_qtui_sip_flags</Literal></Term>
  458. <ListItem>
  459. <Para>
  460. A string of the SIP flags used to generate the code for the
  461. <Literal>qtui</Literal> module and which should be added to those needed by any
  462. module that imports the <Literal>qtui</Literal> module.
  463. </Para>
  464. <Para></Para><Para></Para>
  465. </ListItem>
  466. </VarListEntry>
  467. <VarListEntry>
  468. <Term><Literal>pyqt_qtxml_sip_flags</Literal></Term>
  469. <ListItem>
  470. <Para>
  471. A string of the SIP flags used to generate the code for the
  472. <Literal>qtxml</Literal> module and which should be added to those needed by
  473. any module that imports the <Literal>qtxml</Literal> module.
  474. </Para>
  475. <Para></Para><Para></Para>
  476. </ListItem>
  477. </VarListEntry>
  478. <VarListEntry>
  479. <Term><Literal>pyqt_sip_dir</Literal></Term>
  480. <ListItem>
  481. <Para>
  482. The name of the base directory where the <Literal>.sip</Literal> files for each
  483. of the PyTQt modules is installed. A sub-directory exists with the same name as
  484. the module.
  485. </Para>
  486. <Para></Para><Para></Para>
  487. </ListItem>
  488. </VarListEntry>
  489. <VarListEntry>
  490. <Term><Literal>pyqt_version</Literal></Term>
  491. <ListItem>
  492. <Para>
  493. The PyTQt version as a 3 part hexadecimal number (eg. v3.10 is represented as
  494. <Literal>0x030a00</Literal>).
  495. </Para>
  496. <Para></Para><Para></Para>
  497. </ListItem>
  498. </VarListEntry>
  499. <VarListEntry>
  500. <Term><Literal>pyqt_version_str</Literal></Term>
  501. <ListItem>
  502. <Para>
  503. The PyTQt version as a string. For development snapshots it will start with
  504. <Literal>snapshot-</Literal>.
  505. </Para>
  506. <Para></Para><Para></Para>
  507. </ListItem>
  508. </VarListEntry>
  509. </VariableList>
  510. </ListItem>
  511. </VarListEntry>
  512. <VarListEntry>
  513. <Term><Literal>TQtModuleMakefile(sipconfig.SIPModuleMakefile)</Literal></Term>
  514. <ListItem>
  515. <Para>
  516. The Makefile class for modules that import the <Literal>qt</Literal> module.
  517. </Para>
  518. <VariableList>
  519. <VarListEntry>
  520. <Term><Literal>finalise(self)</Literal></Term>
  521. <ListItem>
  522. <Para>
  523. This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
  524. </Para>
  525. <Para></Para><Para></Para>
  526. </ListItem>
  527. </VarListEntry>
  528. </VariableList>
  529. </ListItem>
  530. </VarListEntry>
  531. <VarListEntry>
  532. <Term><Literal>TQtAxContainerModuleMakefile(TQtModuleMakefile)</Literal></Term>
  533. <ListItem>
  534. <Para>
  535. The Makefile class for modules that import the <Literal>qtaxcontainer</Literal>
  536. module.
  537. </Para>
  538. <VariableList>
  539. <VarListEntry>
  540. <Term><Literal>finalise(self)</Literal></Term>
  541. <ListItem>
  542. <Para>
  543. This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
  544. </Para>
  545. <Para></Para><Para></Para>
  546. </ListItem>
  547. </VarListEntry>
  548. </VariableList>
  549. </ListItem>
  550. </VarListEntry>
  551. <VarListEntry>
  552. <Term><Literal>TQtCanvasModuleMakefile(TQtModuleMakefile)</Literal></Term>
  553. <ListItem>
  554. <Para>
  555. The Makefile class for modules that import the <Literal>qtcanvas</Literal>
  556. module.
  557. </Para>
  558. <VariableList>
  559. <VarListEntry>
  560. <Term><Literal>finalise(self)</Literal></Term>
  561. <ListItem>
  562. <Para>
  563. This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
  564. </Para>
  565. <Para></Para><Para></Para>
  566. </ListItem>
  567. </VarListEntry>
  568. </VariableList>
  569. </ListItem>
  570. </VarListEntry>
  571. <VarListEntry>
  572. <Term><Literal>TQtExtModuleMakefile(TQtModuleMakefile)</Literal></Term>
  573. <ListItem>
  574. <Para>
  575. The Makefile class for modules that import the <Literal>qtext</Literal> module.
  576. </Para>
  577. <VariableList>
  578. <VarListEntry>
  579. <Term><Literal>finalise(self)</Literal></Term>
  580. <ListItem>
  581. <Para>
  582. This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
  583. </Para>
  584. <Para></Para><Para></Para>
  585. </ListItem>
  586. </VarListEntry>
  587. </VariableList>
  588. </ListItem>
  589. </VarListEntry>
  590. <VarListEntry>
  591. <Term><Literal>TQtGLModuleMakefile(TQtModuleMakefile)</Literal></Term>
  592. <ListItem>
  593. <Para>
  594. The Makefile class for modules that import the <Literal>qtgl</Literal> module.
  595. </Para>
  596. <VariableList>
  597. <VarListEntry>
  598. <Term><Literal>finalise(self)</Literal></Term>
  599. <ListItem>
  600. <Para>
  601. This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
  602. </Para>
  603. <Para></Para><Para></Para>
  604. </ListItem>
  605. </VarListEntry>
  606. </VariableList>
  607. </ListItem>
  608. </VarListEntry>
  609. <VarListEntry>
  610. <Term><Literal>TQtNetworkModuleMakefile(TQtModuleMakefile)</Literal></Term>
  611. <ListItem>
  612. <Para>
  613. The Makefile class for modules that import the <Literal>qtnetwork</Literal>
  614. module.
  615. </Para>
  616. <VariableList>
  617. <VarListEntry>
  618. <Term><Literal>finalise(self)</Literal></Term>
  619. <ListItem>
  620. <Para>
  621. This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
  622. </Para>
  623. <Para></Para><Para></Para>
  624. </ListItem>
  625. </VarListEntry>
  626. </VariableList>
  627. </ListItem>
  628. </VarListEntry>
  629. <VarListEntry>
  630. <Term><Literal>TQtTableModuleMakefile(TQtModuleMakefile)</Literal></Term>
  631. <ListItem>
  632. <Para>
  633. The Makefile class for modules that import the <Literal>qttable</Literal>
  634. module.
  635. </Para>
  636. <VariableList>
  637. <VarListEntry>
  638. <Term><Literal>finalise(self)</Literal></Term>
  639. <ListItem>
  640. <Para>
  641. This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
  642. </Para>
  643. <Para></Para><Para></Para>
  644. </ListItem>
  645. </VarListEntry>
  646. </VariableList>
  647. </ListItem>
  648. </VarListEntry>
  649. <VarListEntry>
  650. <Term><Literal>TQtSQLModuleMakefile(TQtTableModuleMakefile)</Literal></Term>
  651. <ListItem>
  652. <Para>
  653. The Makefile class for modules that import the <Literal>qtsql</Literal> module.
  654. </Para>
  655. <VariableList>
  656. <VarListEntry>
  657. <Term><Literal>finalise(self)</Literal></Term>
  658. <ListItem>
  659. <Para>
  660. This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
  661. </Para>
  662. <Para></Para><Para></Para>
  663. </ListItem>
  664. </VarListEntry>
  665. </VariableList>
  666. </ListItem>
  667. </VarListEntry>
  668. <VarListEntry>
  669. <Term><Literal>TQtUIModuleMakefile(TQtModuleMakefile)</Literal></Term>
  670. <ListItem>
  671. <Para>
  672. The Makefile class for modules that import the <Literal>qtui</Literal> module.
  673. </Para>
  674. <VariableList>
  675. <VarListEntry>
  676. <Term><Literal>finalise(self)</Literal></Term>
  677. <ListItem>
  678. <Para>
  679. This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
  680. </Para>
  681. <Para></Para><Para></Para>
  682. </ListItem>
  683. </VarListEntry>
  684. </VariableList>
  685. </ListItem>
  686. </VarListEntry>
  687. <VarListEntry>
  688. <Term><Literal>TQtXMLModuleMakefile(TQtModuleMakefile)</Literal></Term>
  689. <ListItem>
  690. <Para>
  691. The Makefile class for modules that import the <Literal>qtxml</Literal> module.
  692. </Para>
  693. <VariableList>
  694. <VarListEntry>
  695. <Term><Literal>finalise(self)</Literal></Term>
  696. <ListItem>
  697. <Para>
  698. This is a reimplementation of <Literal>sipconfig.Makefile.finalise()</Literal>.
  699. </Para>
  700. <Para></Para><Para></Para>
  701. </ListItem>
  702. </VarListEntry>
  703. </VariableList>
  704. </ListItem>
  705. </VarListEntry>
  706. </VariableList>
  707. </Sect1>
  708. <Sect1><Title>Things to be Aware Of</Title>
  709. <Sect2><Title>super and Wrapped Classes</Title>
  710. <Para>
  711. Internally PyTQt implements a lazy technique for attribute lookup where
  712. attributes are only placed in type and instance dictionaries when they are
  713. first referenced. This technique is needed to reduce the time taken to import
  714. large modules such as PyTQt.
  715. </Para>
  716. <Para>
  717. In most circumstances this technique is transparent to an application. The
  718. exception is when <Literal>super</Literal> is used with a PyTQt class. The way
  719. that <Literal>super</Literal> is currently implemented means that the lazy
  720. lookup is bypassed resulting in <Literal>AttributeError</Literal> exceptions
  721. unless the attribute has been previously referenced.
  722. </Para>
  723. <Para>
  724. Note that this restriction applies to any class wrapped by SIP and not just
  725. PyTQt.
  726. </Para>
  727. </Sect2>
  728. <Sect2><Title>Python Strings, TQt Strings and Unicode</Title>
  729. <Para>
  730. Unicode support was added to TQt in v2.0 and to Python in v1.6. In TQt, Unicode
  731. support is implemented using the <Literal>TQString</Literal> class. It is
  732. important to understand that <Literal>TQString</Literal>s, Python string objects
  733. and Python Unicode objects are all different but conversions between them are
  734. automatic in almost all cases and easy to achieve manually when needed.
  735. </Para>
  736. <Para>
  737. Whenever PyTQt expects a <Literal>TQString</Literal> as a function argument, a
  738. Python string object or a Python Unicode object can be provided instead, and
  739. PyTQt will do the necessary conversion automatically.
  740. </Para>
  741. <Para>
  742. You may also manually convert Python string and Unicode objects to
  743. <Literal>TQString</Literal>s by using the <Literal>TQString</Literal> constructor
  744. as demonstrated in the following code fragment.
  745. </Para>
  746. <ProgramListing>
  747. qs1 = TQString('Converted Python string object')
  748. qs2 = TQString(u'Converted Python Unicode object')
  749. </ProgramListing>
  750. <Para>
  751. In order to convert a <Literal>TQString</Literal> to a Python string object use
  752. the Python <Literal>str()</Literal> function. Applying
  753. <Literal>str()</Literal> to a null <Literal>TQString</Literal> and an empty
  754. <Literal>TQString</Literal> both result in an empty Python string object.
  755. </Para>
  756. <Para>
  757. In order to convert a <Literal>TQString</Literal> to a Python Unicode object use
  758. the Python <Literal>unicode()</Literal> function. Applying
  759. <Literal>unicode()</Literal> to a null <Literal>TQString</Literal> and an empty
  760. <Literal>TQString</Literal> both result in an empty Python Unicode object.
  761. </Para>
  762. </Sect2>
  763. <Sect2><Title>Access to Protected Member Functions</Title>
  764. <Para>
  765. When an instance of a C++ class is not created from Python it is not possible
  766. to access the protected member functions, or emit the signals, of that
  767. instance. Attempts to do so will raise a Python exception. Also, any Python
  768. methods corresponding to the instance's virtual member functions will never be
  769. called.
  770. </Para>
  771. </Sect2>
  772. <Sect2><Title><Literal>None</Literal> and <Literal>NULL</Literal></Title>
  773. <Para>
  774. Throughout the bindings, the <Literal>None</Literal> value can be specified
  775. wherever <Literal>NULL</Literal> is acceptable to the underlying C++ code.
  776. </Para>
  777. <Para>
  778. Equally, <Literal>NULL</Literal> is converted to <Literal>None</Literal>
  779. whenever it is returned by the underlying C++ code.
  780. </Para>
  781. </Sect2>
  782. <Sect2><Title>Support for C++ <Literal>void *</Literal> Data Types</Title>
  783. <Para>
  784. PyTQt represents <Literal>void *</Literal> values as objects of type
  785. <Literal>sip.voidptr</Literal>. Such values are often used to pass the
  786. addresses of external objects between different Python modules. To make this
  787. easier, a Python integer (or anything that Python can convert to an integer)
  788. can be used whenever a <Literal>sip.voidptr</Literal> is expected.
  789. </Para>
  790. <Para>
  791. A <Literal>sip.voidptr</Literal> may be converted to a Python integer by using
  792. the <Literal>int()</Literal> builtin function.
  793. </Para>
  794. <Para>
  795. A <Literal>sip.voidptr</Literal> may be converted to a Python string by using
  796. its <Literal>asstring()</Literal> method. The <Literal>asstring()</Literal>
  797. method takes an integer argument which is the length of the data in bytes.
  798. </Para>
  799. </Sect2>
  800. <Sect2><Title>Support for Threads</Title>
  801. <Para>
  802. PyTQt implements the full set of TQt's thread classes. Python, of course, also
  803. has its own thread extension modules. If you are using SIP v4 (or later) and
  804. Python v2.3.5 (or later) then PyTQt does not impose any additional restrictions.
  805. (Read the relevant part of the TQt documentation to understand the restrictions
  806. imposed by the TQt API.)
  807. </Para>
  808. <Para>
  809. If you are using earlier versions of either SIP or Python then it is possible
  810. to use either of the APIs so long as you follow some simple rules.
  811. </Para>
  812. <ItemizedList>
  813. <ListItem>
  814. <Para>
  815. If you use the TQt API then the very first <Literal>import</Literal> of one of
  816. the PyTQt modules must be done from the main thread.
  817. </Para>
  818. </ListItem>
  819. <ListItem>
  820. <Para>
  821. If you use the Python API then all calls to PyTQt (including any
  822. <Literal>import</Literal>s) must be done from one thread only. Therefore, if
  823. you want to make calls to PyTQt from several threads then you must use the TQt
  824. API.
  825. </Para>
  826. </ListItem>
  827. <ListItem>
  828. <Para>
  829. If you want to use both APIs in the same application then all calls to PyTQt
  830. must be done from threads created using the TQt API.
  831. </Para>
  832. </ListItem>
  833. </ItemizedList>
  834. <Para>
  835. The above comments actually apply to any SIP generated module, not just PyTQt.
  836. </Para>
  837. </Sect2>
  838. <Sect2><Title>Garbage Collection</Title>
  839. <Para>
  840. C++ does not garbage collect unreferenced class instances, whereas Python does.
  841. In the following C++ fragment both colours exist even though the first can no
  842. longer be referenced from within the program:
  843. </Para>
  844. <ProgramListing>
  845. c = new TQColor();
  846. c = new TQColor();
  847. </ProgramListing>
  848. <Para>
  849. In the corresponding Python fragment, the first colour is destroyed when
  850. the second is assigned to <Literal>c</Literal>:
  851. </Para>
  852. <ProgramListing>
  853. c = TQColor()
  854. c = TQColor()
  855. </ProgramListing>
  856. <Para>
  857. In Python, each colour must be assigned to different names. Typically this
  858. is done within class definitions, so the code fragment would be something like:
  859. </Para>
  860. <ProgramListing>
  861. self.c1 = TQColor()
  862. self.c2 = TQColor()
  863. </ProgramListing>
  864. <Para>
  865. Sometimes a TQt class instance will maintain a pointer to another instance and
  866. will eventually call the destructor of that second instance. The most common
  867. example is that a <Literal>TQObject</Literal> (and any of its sub-classes) keeps
  868. pointers to its children and will automatically call their destructors. In
  869. these cases, the corresponding Python object will also keep a reference to the
  870. corresponding child objects.
  871. </Para>
  872. <Para>
  873. So, in the following Python fragment, the first <Literal>TQLabel</Literal> is
  874. not destroyed when the second is assigned to <Literal>l</Literal> because the
  875. parent <Literal>TQWidget</Literal> still has a reference to it.
  876. </Para>
  877. <ProgramListing>
  878. p = TQWidget()
  879. l = TQLabel('First label',p)
  880. l = TQLabel('Second label',p)
  881. </ProgramListing>
  882. </Sect2>
  883. <Sect2><Title>C++ Variables</Title>
  884. <Para>
  885. Access to C++ variables is supported. They are accessed as Python instance
  886. variables. For example:
  887. </Para>
  888. <ProgramListing>
  889. tab = TQTab()
  890. tab.label = "First Tab"
  891. tab.r = TQRect(10,10,75,30)
  892. </ProgramListing>
  893. <Para>
  894. Global variables and static class variables are effectively read-only. They
  895. can be assigned to, but the underlying C++ variable will not be changed. This
  896. may change in the future.
  897. </Para>
  898. <Para>
  899. Access to protected C++ class variables is not supported. This may change in
  900. the future.
  901. </Para>
  902. </Sect2>
  903. <Sect2><Title>Multiple Inheritance</Title>
  904. <Para>
  905. It is not possible to define a new Python class that sub-classes from more than
  906. one TQt class.
  907. </Para>
  908. </Sect2>
  909. <Sect2><Title>i18n Support</Title>
  910. <Para>
  911. TQt implements i18n support through the TQt Linguist application, the
  912. <Literal>TQTranslator</Literal> class, and the
  913. <Literal>TQApplication::translate()</Literal>, <Literal>TQObject::tr()</Literal>
  914. and <Literal>TQObject::trUtf8()</Literal> methods. Usually the
  915. <Literal>tr()</Literal> method is used to obtain the correct translation of a
  916. message. The translation process uses a message context to allow the same
  917. message to be translated differently. <Literal>tr()</Literal> is actually
  918. generated by <Literal>moc</Literal> and uses the hardcoded class name as the
  919. context. On the other hand, <Literal>TQApplication::translate()</Literal>
  920. allows to context to be explicitly stated.
  921. </Para>
  922. <Para>
  923. Unfortunately, because of the way TQt implents <Literal>tr()</Literal> (and
  924. <Literal>trUtf8()</Literal>) it is not possible for PyTQt to exactly reproduce
  925. its behavour. The PyTQt implementation of <Literal>tr()</Literal> (and
  926. <Literal>trUtf8()</Literal>) uses the class name of the instance as the
  927. context. The key difference, and the source of potential problems, is that the
  928. context is determined dynamically in PyTQt, but is hardcoded in TQt. In other
  929. words, the context of a translation may change depending on an instance's class
  930. hierarchy.
  931. </Para>
  932. <ProgramListing>
  933. class A(TQObject):
  934. def __init__(self):
  935. TQObject.__init__(self)
  936. def hello(self):
  937. return self.tr("Hello")
  938. class B(A):
  939. def __init__(self):
  940. A.__init__(self)
  941. a = A()
  942. a.hello()
  943. b = B()
  944. b.hello()
  945. </ProgramListing>
  946. <Para>
  947. In the above the message is translated by <Literal>a.hello()</Literal> using a
  948. context of <Literal>A</Literal>, and by <Literal>b.hello()</Literal> using a
  949. context of <Literal>B</Literal>. In the equivalent C++ version the context
  950. would be <Literal>A</Literal> in both cases.
  951. </Para>
  952. <Para>
  953. The PyTQt behaviour is unsatisfactory and may be changed in the future. It is
  954. recommended that <Literal>TQApplication.translate()</Literal> be used in
  955. preference to <Literal>tr()</Literal> (and <Literal>trUtf8()</Literal>). This
  956. is guaranteed to work with current and future versions of PyTQt and makes it
  957. much easier to share message files between Python and C++ code. Below is the
  958. alternative implementation of <Literal>A</Literal> that uses
  959. <Literal>TQApplication.translate()</Literal>.
  960. </Para>
  961. <ProgramListing>
  962. class A(TQObject):
  963. def __init__(self):
  964. TQObject.__init__(self)
  965. def hello(self):
  966. return qApp.translate("A","Hello")
  967. </ProgramListing>
  968. <Para>
  969. Note that the code generated by <Literal>pyuic</Literal> uses
  970. <Literal>TQApplication.translate()</Literal>.
  971. </Para>
  972. </Sect2>
  973. </Sect1>
  974. <Sect1><Title>Signal and Slot Support</Title>
  975. <Para>
  976. A signal may be either a TQt signal (specified using
  977. <Literal>SIGNAL()</Literal>) or a Python signal (specified using
  978. <Literal>PYSIGNAL()</Literal>).
  979. </Para>
  980. <Para>
  981. A slot can be either a Python callable object, a TQt signal (specified using
  982. <Literal>SIGNAL()</Literal>), a Python signal (specified using
  983. <Literal>PYSIGNAL()</Literal>), or a TQt slot (specified using
  984. <Literal>SLOT()</Literal>).
  985. </Para>
  986. <Para>
  987. You connect signals to slots (and other signals) as you would from C++. For
  988. example:
  989. </Para>
  990. <ProgramListing>
  991. TQObject.connect(a,SIGNAL("TQtSig()"),pyFunction)
  992. TQObject.connect(a,SIGNAL("TQtSig()"),pyClass.pyMethod)
  993. TQObject.connect(a,SIGNAL("TQtSig()"),PYSIGNAL("PySig"))
  994. TQObject.connect(a,SIGNAL("TQtSig()"),SLOT("TQtSlot()"))
  995. TQObject.connect(a,PYSIGNAL("PySig"),pyFunction)
  996. TQObject.connect(a,PYSIGNAL("PySig"),pyClass.pyMethod)
  997. TQObject.connect(a,PYSIGNAL("PySig"),SIGNAL("TQtSig()"))
  998. TQObject.connect(a,PYSIGNAL("PySig"),SLOT("TQtSlot()"))
  999. </ProgramListing>
  1000. <Para>
  1001. When a slot is a Python method that corresponds to a TQt slot then a signal can
  1002. be connected to either the Python method or the TQt slot. The following
  1003. connections achieve the same effect.
  1004. </Para>
  1005. <ProgramListing>
  1006. sbar = TQScrollBar()
  1007. lcd = TQLCDNumber()
  1008. TQObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd.display)
  1009. TQObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))
  1010. </ProgramListing>
  1011. <Para>
  1012. The difference is that the second connection is made at the C++ level and is
  1013. more efficient.
  1014. </Para>
  1015. <Para>
  1016. Disconnecting signals works in exactly the same way.
  1017. </Para>
  1018. <Para>
  1019. Any instance of a class that is derived from the <Literal>TQObject</Literal>
  1020. class can emit a signal using the <Literal>emit</Literal> method. This takes
  1021. two arguments. The first is the Python or TQt signal, the second is a Python
  1022. tuple which are the arguments to the signal. For example:
  1023. </Para>
  1024. <ProgramListing>
  1025. a.emit(SIGNAL("clicked()"),())
  1026. a.emit(PYSIGNAL("pySig"),("Hello","World"))
  1027. </ProgramListing>
  1028. <Para>
  1029. Note that when a slot is a Python callable object its reference count is not
  1030. increased. This means that a class instance can be deleted without having to
  1031. explicitly disconnect any signals connected to its methods. However, it also
  1032. means that using lambda expressions as slots will not work unless you keep a
  1033. separate reference to the expression to prevent it from being immediately
  1034. garbage collected.
  1035. </Para>
  1036. <Para>
  1037. TQt allows a signal to be connected to a slot that requires fewer arguments than
  1038. the signal passes. The extra arguments are tquietly discarded. Python slots
  1039. can be used in the same way.
  1040. </Para>
  1041. </Sect1>
  1042. <Sect1><Title>Static Member Functions</Title>
  1043. <Para>
  1044. Static member functions are implemented as Python class functions.
  1045. For example the C++ static member function
  1046. <Literal>TQObject::connect()</Literal> is called from Python as
  1047. <Literal>TQObject.connect()</Literal> or <Literal>self.connect()</Literal> if
  1048. called from a sub-class of <Literal>TQObject</Literal>.
  1049. </Para>
  1050. </Sect1>
  1051. <Sect1><Title>Enumerated Types</Title>
  1052. <Para>
  1053. Enumerated types are implemented as a set of simple variables corresponding to
  1054. the separate enumerated values.
  1055. </Para>
  1056. <Para>
  1057. When using an enumerated value the name of the class (or a sub-class) in which
  1058. the enumerated type was defined in must be included. For example:
  1059. </Para>
  1060. <ProgramListing>
  1061. TQt.SolidPattern
  1062. TQWidget.TabFocus
  1063. TQFrame.TabFocus
  1064. </ProgramListing>
  1065. </Sect1>
  1066. <Sect1><Title>Module Reference Documentation</Title>
  1067. <Para>
  1068. The following sections should be used in conjunction with the normal class
  1069. documentation - only the differences specific to the Python bindings are
  1070. documented here.
  1071. </Para>
  1072. <Para>
  1073. In these sections, <Emphasis>Not yet implemented</Emphasis>
  1074. implies that the feature can be easily implemented if needed. <Emphasis>Not
  1075. implemented</Emphasis> implies that the feature will not be implemented, either
  1076. because it cannot be or because it is not appropriate.
  1077. </Para>
  1078. <Para>
  1079. If a class is described as being <Emphasis>fully implemented</Emphasis> then
  1080. all non-private member functions and all public class variables have been
  1081. implemented.
  1082. </Para>
  1083. <Para>
  1084. If an operator has been implemented then it is stated explicitly.
  1085. </Para>
  1086. <Para>
  1087. Classes that are not mentioned have not yet been implemented.
  1088. </Para>
  1089. </Sect1>
  1090. <Sect1><Title><Literal>qt</Literal> Module Reference</Title>
  1091. <Sect2><Title>TQt Constants</Title>
  1092. <Para>
  1093. All constant values defined by TQt have equivalent constants defined to Python.
  1094. </Para>
  1095. </Sect2>
  1096. <Sect2><Title>TQt (TQt v2+)</Title>
  1097. <Para>
  1098. <Literal>TQt</Literal> is fully implemented.
  1099. </Para>
  1100. </Sect2>
  1101. <Sect2><Title>TQAccel</Title>
  1102. <Para>
  1103. <Literal>TQAccel</Literal> is fully implemented.
  1104. </Para>
  1105. </Sect2>
  1106. <Sect2><Title>TQAction (TQt v2.2+)</Title>
  1107. <Para>
  1108. <Literal>TQAction</Literal> is fully implemented.
  1109. </Para>
  1110. </Sect2>
  1111. <Sect2><Title>TQActionGroup (TQt v2.2+)</Title>
  1112. <Para>
  1113. <Literal>TQActionGroup</Literal> is fully implemented.
  1114. </Para>
  1115. </Sect2>
  1116. <Sect2><Title>TQApplication</Title>
  1117. <FuncSynopsis>
  1118. <FuncDef><Function>TQApplication</Function></FuncDef>
  1119. <ParamDef>int &amp;<Parameter>argc</Parameter></ParamDef>
  1120. <ParamDef>char **<Parameter>argv</Parameter></ParamDef>
  1121. </FuncSynopsis>
  1122. <Para>
  1123. This takes one parameter which is a list of argument strings. Arguments
  1124. used by TQt are removed from the list.
  1125. </Para>
  1126. <FuncSynopsis>
  1127. <FuncDef><Function>TQApplication</Function></FuncDef>
  1128. <ParamDef>int &amp;<Parameter>argc</Parameter></ParamDef>
  1129. <ParamDef>char **<Parameter>argv</Parameter></ParamDef>
  1130. <ParamDef>bool <Parameter>GUIenabled</Parameter></ParamDef>
  1131. </FuncSynopsis>
  1132. <Para>
  1133. This takes two parameters, the first of which is a list of argument strings.
  1134. Arguments used by TQt are removed from the list.
  1135. </Para>
  1136. <FuncSynopsis>
  1137. <FuncDef><Function>TQApplication</Function></FuncDef>
  1138. <ParamDef>int &amp;<Parameter>argc</Parameter></ParamDef>
  1139. <ParamDef>char **<Parameter>argv</Parameter></ParamDef>
  1140. <ParamDef>Type <Parameter>type</Parameter></ParamDef>
  1141. </FuncSynopsis>
  1142. <Para>
  1143. This takes two parameters, the first of which is a list of argument strings.
  1144. Arguments used by TQt are removed from the list. (TQt v2.2+)
  1145. </Para>
  1146. <FuncSynopsis>
  1147. <FuncDef>int <Function>exec</Function></FuncDef>
  1148. <ParamDef></ParamDef>
  1149. </FuncSynopsis>
  1150. <Para>
  1151. This has been renamed to <Literal>exec_loop</Literal> in Python.
  1152. </Para>
  1153. </Sect2>
  1154. <Sect2><Title>TQAssistantClient (TQt v3.1+)</Title>
  1155. <Para>
  1156. <Literal>TQAssistantClient</Literal> is fully implemented.
  1157. </Para>
  1158. </Sect2>
  1159. <Sect2><Title>TQBitmap</Title>
  1160. <Para>
  1161. <Literal>TQBitmap</Literal> is fully implemented.
  1162. </Para>
  1163. </Sect2>
  1164. <Sect2><Title>TQBrush</Title>
  1165. <Para>
  1166. <Literal>TQBrush</Literal> is fully implemented, including the Python
  1167. <Literal>==</Literal> and <Literal>!=</Literal> operators.
  1168. </Para>
  1169. </Sect2>
  1170. <Sect2><Title>TQButton</Title>
  1171. <Para>
  1172. <Literal>TQButton</Literal> is fully implemented.
  1173. </Para>
  1174. </Sect2>
  1175. <Sect2><Title>TQButtonGroup</Title>
  1176. <Para>
  1177. <Literal>TQButtonGroup</Literal> is fully implemented.
  1178. </Para>
  1179. </Sect2>
  1180. <Sect2><Title>TQByteArray</Title>
  1181. <Para>
  1182. A Python string can be used whenever a <Literal>TQByteArray</Literal> can be
  1183. used. A <Literal>TQByteArray</Literal> can be converted to a Python string
  1184. using the Python <Literal>str()</Literal> function.
  1185. </Para>
  1186. <FuncSynopsis>
  1187. <FuncDef>TQByteArray &<Function>assign</Function></FuncDef>
  1188. <ParamDef>const char *<Parameter>data</Parameter></ParamDef>
  1189. <ParamDef>uint <Parameter>size</Parameter></ParamDef>
  1190. </FuncSynopsis>
  1191. <Para>
  1192. Not implemented.
  1193. </Para>
  1194. <FuncSynopsis>
  1195. <FuncDef>char &<Function>at</Function></FuncDef>
  1196. <ParamDef>uint <Parameter>i</Parameter></ParamDef>
  1197. </FuncSynopsis>
  1198. <Para>
  1199. Not yet implemented.
  1200. </Para>
  1201. <FuncSynopsis>
  1202. <FuncDef>int <Function>contains</Function></FuncDef>
  1203. <ParamDef>const char &<Parameter>d</Parameter></ParamDef>
  1204. </FuncSynopsis>
  1205. <Para>
  1206. Not yet implemented.
  1207. </Para>
  1208. <FuncSynopsis>
  1209. <FuncDef>bool <Function>fill</Function></FuncDef>
  1210. <ParamDef>const char &<Parameter>d</Parameter></ParamDef>
  1211. <ParamDef>int <Parameter>size</Parameter> = -1</ParamDef>
  1212. </FuncSynopsis>
  1213. <Para>
  1214. Not yet implemented.
  1215. </Para>
  1216. <FuncSynopsis>
  1217. <FuncDef>int <Function>find</Function></FuncDef>
  1218. <ParamDef>const char &<Parameter>d</Parameter></ParamDef>
  1219. <ParamDef>uint <Parameter>i</Parameter> = 0</ParamDef>
  1220. </FuncSynopsis>
  1221. <Para>
  1222. Not yet implemented.
  1223. </Para>
  1224. <FuncSynopsis>
  1225. <FuncDef>void <Function>resetRawData</Function></FuncDef>
  1226. <ParamDef>const char *<Parameter>data</Parameter></ParamDef>
  1227. <ParamDef>uint<Parameter>size</Parameter></ParamDef>
  1228. </FuncSynopsis>
  1229. <Para>
  1230. Not implemented.
  1231. </Para>
  1232. <FuncSynopsis>
  1233. <FuncDef>TQByteArray &<Function>setRawData</Function></FuncDef>
  1234. <ParamDef>const char *<Parameter>data</Parameter></ParamDef>
  1235. <ParamDef>uint<Parameter>size</Parameter></ParamDef>
  1236. </FuncSynopsis>
  1237. <Para>
  1238. Not implemented.
  1239. </Para>
  1240. </Sect2>
  1241. <Sect2><Title>TQCDEStyle (TQt v2+)</Title>
  1242. <Para>
  1243. <Literal>TQCDEStyle</Literal> is fully implemented.
  1244. </Para>
  1245. </Sect2>
  1246. <Sect2><Title>TQCheckBox</Title>
  1247. <Para>
  1248. <Literal>TQCheckBox</Literal> is fully implemented.
  1249. </Para>
  1250. </Sect2>
  1251. <Sect2><Title>TQClipboard</Title>
  1252. <FuncSynopsis>
  1253. <FuncDef>void *<Function>data</Function> const</FuncDef>
  1254. <ParamDef>const char *<Parameter>format</Parameter></ParamDef>
  1255. </FuncSynopsis>
  1256. <Para>
  1257. Not yet implemented (TQt v1.x).
  1258. </Para>
  1259. <FuncSynopsis>
  1260. <FuncDef>void <Function>setData</Function></FuncDef>
  1261. <ParamDef>const char *<Parameter>format</Parameter></ParamDef>
  1262. <ParamDef>void *<Parameter></Parameter></ParamDef>
  1263. </FuncSynopsis>
  1264. <Para>
  1265. Not yet implemented (TQt v1.x).
  1266. </Para>
  1267. </Sect2>
  1268. <Sect2><Title>TQColor</Title>
  1269. <Para>
  1270. The Python <Literal>==</Literal> and <Literal>!=</Literal> operators are
  1271. supported.
  1272. </Para>
  1273. <FuncSynopsis>
  1274. <FuncDef>void <Function>getHsv</Function></FuncDef>
  1275. <ParamDef>int *<Parameter>h</Parameter></ParamDef>
  1276. <ParamDef>int *<Parameter>s</Parameter></ParamDef>
  1277. <ParamDef>int *<Parameter>v</Parameter></ParamDef>
  1278. </FuncSynopsis>
  1279. <Para>
  1280. This takes no parameters and returns the <Literal>h</Literal>,
  1281. <Literal>s</Literal> and <Literal>v</Literal> values as a tuple.
  1282. </Para>
  1283. <FuncSynopsis>
  1284. <FuncDef>void <Function>getRgb</Function></FuncDef>
  1285. <ParamDef>int *<Parameter>r</Parameter></ParamDef>
  1286. <ParamDef>int *<Parameter>g</Parameter></ParamDef>
  1287. <ParamDef>int *<Parameter>b</Parameter></ParamDef>
  1288. </FuncSynopsis>
  1289. <Para>
  1290. This takes no parameters and returns the <Literal>r</Literal>,
  1291. <Literal>g</Literal> and <Literal>b</Literal> values as a tuple.
  1292. </Para>
  1293. <FuncSynopsis>
  1294. <FuncDef>void <Function>hsv</Function></FuncDef>
  1295. <ParamDef>int *<Parameter>h</Parameter></ParamDef>
  1296. <ParamDef>int *<Parameter>s</Parameter></ParamDef>
  1297. <ParamDef>int *<Parameter>v</Parameter></ParamDef>
  1298. </FuncSynopsis>
  1299. <Para>
  1300. This takes no parameters and returns the <Literal>h</Literal>,
  1301. <Literal>s</Literal> and <Literal>v</Literal> values as a tuple.
  1302. </Para>
  1303. <FuncSynopsis>
  1304. <FuncDef>void <Function>rgb</Function></FuncDef>
  1305. <ParamDef>int *<Parameter>r</Parameter></ParamDef>
  1306. <ParamDef>int *<Parameter>g</Parameter></ParamDef>
  1307. <ParamDef>int *<Parameter>b</Parameter></ParamDef>
  1308. </FuncSynopsis>
  1309. <Para>
  1310. This takes no parameters and returns the <Literal>r</Literal>,
  1311. <Literal>g</Literal> and <Literal>b</Literal> values as a tuple.
  1312. </Para>
  1313. </Sect2>
  1314. <Sect2><Title>TQColorDialog (TQt v2+)</Title>
  1315. <FuncSynopsis>
  1316. <FuncDef>static TQRgb <Function>getRgba</Function></FuncDef>
  1317. <ParamDef>TQRgb <Parameter>initial</Parameter></ParamDef>
  1318. <ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
  1319. <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
  1320. <ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
  1321. </FuncSynopsis>
  1322. <Para>
  1323. This takes the <Literal>initial</Literal>, <Literal>parent</Literal> and
  1324. <Literal>name</Literal> parameters and returns a tuple containing the
  1325. <Literal>TQRgb</Literal> result and the <Literal>ok</Literal> value.
  1326. </Para>
  1327. </Sect2>
  1328. <Sect2><Title>TQColorGroup</Title>
  1329. <Para>
  1330. <Literal>TQColorGroup</Literal> is fully implemented.
  1331. </Para>
  1332. </Sect2>
  1333. <Sect2><Title>TQComboBox</Title>
  1334. <Para>
  1335. <Literal>TQComboBox</Literal> is fully implemented.
  1336. </Para>
  1337. </Sect2>
  1338. <Sect2><Title>TQCommonStyle (TQt v2+)</Title>
  1339. <FuncSynopsis>
  1340. <FuncDef>virtual void <Function>getButtonShift</Function></FuncDef>
  1341. <ParamDef>int &amp;<Parameter>x</Parameter></ParamDef>
  1342. <ParamDef>int &amp;<Parameter>y</Parameter></ParamDef>
  1343. </FuncSynopsis>
  1344. <Para>
  1345. This takes no parameters and returns a tuple of the <Literal>x</Literal> and
  1346. <Literal>y</Literal> values. (TQt v2)
  1347. </Para>
  1348. <FuncSynopsis>
  1349. <FuncDef>virtual void <Function>tabbarMetrics</Function></FuncDef>
  1350. <ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
  1351. <ParamDef>int &amp;<Parameter>hframe</Parameter></ParamDef>
  1352. <ParamDef>int &amp;<Parameter>vframe</Parameter></ParamDef>
  1353. <ParamDef>int &amp;<Parameter>overlap</Parameter></ParamDef>
  1354. </FuncSynopsis>
  1355. <Para>
  1356. This takes only the <Literal>t</Literal> parameter and returns a tuple of the
  1357. <Literal>hframe</Literal>, <Literal>vframe</Literal> and
  1358. <Literal>overlap</Literal> values. (TQt v2)
  1359. </Para>
  1360. </Sect2>
  1361. <Sect2><Title>TQCString (TQt v2+)</Title>
  1362. <Para>
  1363. A Python string can be used whenever a <Literal>TQCString</Literal> can be used.
  1364. A <Literal>TQCString</Literal> can be converted to a Python string using the
  1365. Python <Literal>str()</Literal> function.
  1366. </Para>
  1367. <FuncSynopsis>
  1368. <FuncDef>TQCString &amp;<Function>sprintf</Function></FuncDef>
  1369. <ParamDef>const char *<Parameter>format</Parameter></ParamDef>
  1370. <ParamDef>...</ParamDef>
  1371. </FuncSynopsis>
  1372. <Para>
  1373. Not implemented.
  1374. </Para>
  1375. <FuncSynopsis>
  1376. <FuncDef>short <Function>toShort</Function></FuncDef>
  1377. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  1378. </FuncSynopsis>
  1379. <Para>
  1380. This returns a tuple of the <Literal>short</Literal> result and the
  1381. <Literal>ok</Literal> value.
  1382. </Para>
  1383. <FuncSynopsis>
  1384. <FuncDef>ushort <Function>toUShort</Function></FuncDef>
  1385. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  1386. </FuncSynopsis>
  1387. <Para>
  1388. This returns a tuple of the <Literal>ushort</Literal> result and the
  1389. <Literal>ok</Literal> value.
  1390. </Para>
  1391. <FuncSynopsis>
  1392. <FuncDef>int <Function>toInt</Function></FuncDef>
  1393. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  1394. </FuncSynopsis>
  1395. <Para>
  1396. This returns a tuple of the <Literal>int</Literal> result and the
  1397. <Literal>ok</Literal> value.
  1398. </Para>
  1399. <FuncSynopsis>
  1400. <FuncDef>uint <Function>toUInt</Function></FuncDef>
  1401. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  1402. </FuncSynopsis>
  1403. <Para>
  1404. This returns a tuple of the <Literal>uint</Literal> result and the
  1405. <Literal>ok</Literal> value.
  1406. </Para>
  1407. <FuncSynopsis>
  1408. <FuncDef>long <Function>toLong</Function></FuncDef>
  1409. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  1410. </FuncSynopsis>
  1411. <Para>
  1412. This returns a tuple of the <Literal>long</Literal> result and the
  1413. <Literal>ok</Literal> value.
  1414. </Para>
  1415. <FuncSynopsis>
  1416. <FuncDef>ulong <Function>toULong</Function></FuncDef>
  1417. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  1418. </FuncSynopsis>
  1419. <Para>
  1420. This returns a tuple of the <Literal>ulong</Literal> result and the
  1421. <Literal>ok</Literal> value.
  1422. </Para>
  1423. <FuncSynopsis>
  1424. <FuncDef>float <Function>toFloat</Function></FuncDef>
  1425. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  1426. </FuncSynopsis>
  1427. <Para>
  1428. This returns a tuple of the <Literal>float</Literal> result and the
  1429. <Literal>ok</Literal> value.
  1430. </Para>
  1431. <FuncSynopsis>
  1432. <FuncDef>double <Function>toDouble</Function></FuncDef>
  1433. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  1434. </FuncSynopsis>
  1435. <Para>
  1436. This returns a tuple of the <Literal>double</Literal> result and the
  1437. <Literal>ok</Literal> value.
  1438. </Para>
  1439. </Sect2>
  1440. <Sect2><Title>TQCursor</Title>
  1441. <Para>
  1442. <Literal>TQCursor</Literal> is fully implemented.
  1443. </Para>
  1444. </Sect2>
  1445. <Sect2><Title>TQDataStream</Title>
  1446. <FuncSynopsis>
  1447. <FuncDef>TQDataStream &amp;<Function>readBytes</Function></FuncDef>
  1448. <ParamDef>const char *&amp;<Parameter>s</Parameter></ParamDef>
  1449. <ParamDef>uint &amp;<Parameter>l</Parameter></ParamDef>
  1450. </FuncSynopsis>
  1451. <Para>
  1452. This takes no parameters. The <Literal>TQDataStream</Literal> result and the
  1453. data read are returned as a tuple.
  1454. </Para>
  1455. <FuncSynopsis>
  1456. <FuncDef>TQDataStream &amp;<Function>readRawBytes</Function></FuncDef>
  1457. <ParamDef>const char *<Parameter>s</Parameter></ParamDef>
  1458. <ParamDef>uint <Parameter>l</Parameter></ParamDef>
  1459. </FuncSynopsis>
  1460. <Para>
  1461. This takes only the <Literal>l</Literal> parameter. The
  1462. <Literal>TQDataStream</Literal> result and the data read are returned as a
  1463. tuple.
  1464. </Para>
  1465. <FuncSynopsis>
  1466. <FuncDef>TQDataStream &amp;<Function>writeBytes</Function></FuncDef>
  1467. <ParamDef>const char *<Parameter>s</Parameter></ParamDef>
  1468. <ParamDef>uint <Parameter>len</Parameter></ParamDef>
  1469. </FuncSynopsis>
  1470. <Para>
  1471. <Literal>len</Literal> is derived from <Literal>s</Literal> and not passed as a
  1472. parameter.
  1473. </Para>
  1474. <FuncSynopsis>
  1475. <FuncDef>TQDataStream &amp;<Function>writeRawBytes</Function></FuncDef>
  1476. <ParamDef>const char *<Parameter>s</Parameter></ParamDef>
  1477. <ParamDef>uint <Parameter>len</Parameter></ParamDef>
  1478. </FuncSynopsis>
  1479. <Para>
  1480. <Literal>len</Literal> is derived from <Literal>s</Literal> and not passed as a
  1481. parameter.
  1482. </Para>
  1483. </Sect2>
  1484. <Sect2><Title>TQDate</Title>
  1485. <Para>
  1486. The Python
  1487. <Literal>==</Literal>, <Literal>!=</Literal>,
  1488. <Literal>&lt;</Literal>, <Literal>&lt;=</Literal>,
  1489. <Literal>&gt;</Literal>, <Literal>&gt;=</Literal>
  1490. and <Literal>__nonzero__</Literal>
  1491. operators are supported.
  1492. </Para>
  1493. <FuncSynopsis>
  1494. <FuncDef>int <Function>weekNumber</Function></FuncDef>
  1495. <ParamDef>int *<Parameter>yearNum</Parameter> = 0</ParamDef>
  1496. </FuncSynopsis>
  1497. <Para>
  1498. This takes no parameters and returns the week number and the year number as a
  1499. tuple. (TQt v3.1+)
  1500. </Para>
  1501. </Sect2>
  1502. <Sect2><Title>TQDateTime</Title>
  1503. <Para>
  1504. <Literal>TQDateTime</Literal> is fully implemented, including the Python
  1505. <Literal>==</Literal>, <Literal>!=</Literal>,
  1506. <Literal>&lt;</Literal>, <Literal>&lt;=</Literal>,
  1507. <Literal>&gt;</Literal>, <Literal>&gt;=</Literal>
  1508. and <Literal>__nonzero__</Literal>
  1509. operators.
  1510. </Para>
  1511. </Sect2>
  1512. <Sect2><Title>TQTime</Title>
  1513. <Para>
  1514. <Literal>TQTime</Literal> is fully implemented, including the Python
  1515. <Literal>==</Literal>, <Literal>!=</Literal>,
  1516. <Literal>&lt;</Literal>, <Literal>&lt;=</Literal>,
  1517. <Literal>&gt;</Literal>, <Literal>&gt;=</Literal>
  1518. and <Literal>__nonzero__</Literal>
  1519. operators.
  1520. </Para>
  1521. </Sect2>
  1522. <Sect2><Title>TQDateEdit (TQt v3+)</Title>
  1523. <Para>
  1524. <Literal>TQDateEdit</Literal> is fully implemented.
  1525. </Para>
  1526. </Sect2>
  1527. <Sect2><Title>TQTimeEdit (TQt v3+)</Title>
  1528. <Para>
  1529. <Literal>TQTimeEdit</Literal> is fully implemented.
  1530. </Para>
  1531. </Sect2>
  1532. <Sect2><Title>TQDateTimeEdit (TQt v3+)</Title>
  1533. <Para>
  1534. <Literal>TQDateTimeEdit</Literal> is fully implemented.
  1535. </Para>
  1536. </Sect2>
  1537. <Sect2><Title>TQDesktopWidget (TQt v3+)</Title>
  1538. <Para>
  1539. <Literal>TQDesktopWidget</Literal> is fully implemented.
  1540. </Para>
  1541. </Sect2>
  1542. <Sect2><Title>TQDial (TQt v2.2+)</Title>
  1543. <Para>
  1544. <Literal>TQDial</Literal> is fully implemented.
  1545. </Para>
  1546. </Sect2>
  1547. <Sect2><Title>TQDialog</Title>
  1548. <FuncSynopsis>
  1549. <FuncDef>int <Function>exec</Function></FuncDef>
  1550. <ParamDef></ParamDef>
  1551. </FuncSynopsis>
  1552. <Para>
  1553. This has been renamed to <Literal>exec_loop</Literal> in Python.
  1554. </Para>
  1555. <Para>
  1556. This method also causes ownership of the underlying C++ dialog to be transfered
  1557. to Python. This means that the C++ dialog will be deleted when the Python
  1558. wrapper is garbage collected. Although this is a little inconsistent, it
  1559. ensures that the dialog is deleted without having to explicity code it using
  1560. <Literal>TQObject.deleteLater()</Literal> or other techniques.
  1561. </Para>
  1562. </Sect2>
  1563. <Sect2><Title>TQDir</Title>
  1564. <Para>
  1565. <Literal>TQDir</Literal> is fully implemented, including the Python
  1566. <Literal>len</Literal>, <Literal>[]</Literal> (for reading slices and
  1567. individual elements), <Literal>==</Literal>, <Literal>!=</Literal> and
  1568. <Literal>in</Literal> operators
  1569. </Para>
  1570. </Sect2>
  1571. <Sect2><Title>TQFileInfoList</Title>
  1572. <Para>
  1573. This class isn't implemented. Whenever a <Literal>TQFileInfoList</Literal> is
  1574. the return type of a function or the type of an argument, a Python list of
  1575. <Literal>TQFileInfo</Literal> instances is used instead.
  1576. </Para>
  1577. </Sect2>
  1578. <Sect2><Title>TQDockArea (TQt v3+)</Title>
  1579. <FuncSynopsis>
  1580. <FuncDef>bool <Function>hasDockWindow</Function> const</FuncDef>
  1581. <ParamDef>TQDockWindow *<Parameter>w</Parameter></ParamDef>
  1582. <ParamDef>int *<Parameter>index</Parameter> = 0</ParamDef>
  1583. </FuncSynopsis>
  1584. <Para>
  1585. This takes the <Literal>w</Literal> parameter and returns the index of the
  1586. TQDockWIndow or -1 if the TQDockArea does not contain the TQDockWindow.
  1587. </Para>
  1588. </Sect2>
  1589. <Sect2><Title>TQDockWindow (TQt v3+)</Title>
  1590. <Para>
  1591. <Literal>TQDockWindow</Literal> is fully implemented.
  1592. </Para>
  1593. </Sect2>
  1594. <Sect2><Title>TQColorDrag (TQt v2.1+)</Title>
  1595. <Para>
  1596. <Literal>TQColorDrag</Literal> is fully implemented.
  1597. </Para>
  1598. </Sect2>
  1599. <Sect2><Title>TQDragObject</Title>
  1600. <Para>
  1601. <Literal>TQDragObject</Literal> is fully implemented.
  1602. </Para>
  1603. </Sect2>
  1604. <Sect2><Title>TQImageDrag</Title>
  1605. <Para>
  1606. <Literal>TQImageDrag</Literal> is fully implemented.
  1607. </Para>
  1608. </Sect2>
  1609. <Sect2><Title>TQStoredDrag</Title>
  1610. <Para>
  1611. <Literal>TQStoredDrag</Literal> is fully implemented.
  1612. </Para>
  1613. </Sect2>
  1614. <Sect2><Title>TQTextDrag</Title>
  1615. <Para>
  1616. <Literal>TQTextDrag</Literal> is fully implemented.
  1617. </Para>
  1618. </Sect2>
  1619. <Sect2><Title>TQUriDrag (TQt v2+)</Title>
  1620. <Para>
  1621. <Literal>TQUriDrag</Literal> is fully implemented.
  1622. </Para>
  1623. </Sect2>
  1624. <Sect2><Title>TQUrlDrag (TQt v1.x)</Title>
  1625. <Para>
  1626. <Literal>TQUrlDrag</Literal> is fully implemented.
  1627. </Para>
  1628. </Sect2>
  1629. <Sect2><Title>TQDropSite</Title>
  1630. <Para>
  1631. <Literal>TQDropSite</Literal> is fully implemented.
  1632. </Para>
  1633. </Sect2>
  1634. <Sect2><Title>TQErrorMessage (TQt v3+)</Title>
  1635. <Para>
  1636. <Literal>TQErrorMessage</Literal> is fully implemented.
  1637. </Para>
  1638. </Sect2>
  1639. <Sect2><Title>TQEvent</Title>
  1640. <Para>
  1641. <Literal>TQEvent</Literal> is fully implemented.
  1642. </Para>
  1643. <Para>
  1644. Instances of <Literal>TQEvent</Literal>s are automatically converted to the
  1645. correct sub-class.
  1646. </Para>
  1647. </Sect2>
  1648. <Sect2><Title>TQChildEvent</Title>
  1649. <Para>
  1650. <Literal>TQChildEvent</Literal> is fully implemented.
  1651. </Para>
  1652. </Sect2>
  1653. <Sect2><Title>TQCloseEvent</Title>
  1654. <Para>
  1655. <Literal>TQCloseEvent</Literal> is fully implemented.
  1656. </Para>
  1657. </Sect2>
  1658. <Sect2><Title>TQIconDragEvent (TQt v3.3+)</Title>
  1659. <Para>
  1660. <Literal>TQIconDragEvent</Literal> is fully implemented.
  1661. </Para>
  1662. </Sect2>
  1663. <Sect2><Title>TQContextMenuEvent (TQt v3+)</Title>
  1664. <Para>
  1665. <Literal>TQContextMenuEvent</Literal> is fully implemented.
  1666. </Para>
  1667. </Sect2>
  1668. <Sect2><Title>TQCustomEvent</Title>
  1669. <Para>
  1670. <Literal>TQCustomEvent</Literal> is fully implemented. Any Python object can be
  1671. passed as the event data and its reference count is increased.
  1672. </Para>
  1673. </Sect2>
  1674. <Sect2><Title>TQDragEnterEvent</Title>
  1675. <Para>
  1676. <Literal>TQDragEnterEvent</Literal> is fully implemented.
  1677. </Para>
  1678. </Sect2>
  1679. <Sect2><Title>TQDragLeaveEvent</Title>
  1680. <Para>
  1681. <Literal>TQDragLeaveEvent</Literal> is fully implemented.
  1682. </Para>
  1683. </Sect2>
  1684. <Sect2><Title>TQDragMoveEvent</Title>
  1685. <Para>
  1686. <Literal>TQDragMoveEvent</Literal> is fully implemented.
  1687. </Para>
  1688. </Sect2>
  1689. <Sect2><Title>TQDropEvent</Title>
  1690. <Para>
  1691. <Literal>TQDropEvent</Literal> is fully implemented.
  1692. </Para>
  1693. </Sect2>
  1694. <Sect2><Title>TQFocusEvent</Title>
  1695. <Para>
  1696. <Literal>TQFocusEvent</Literal> is fully implemented.
  1697. </Para>
  1698. </Sect2>
  1699. <Sect2><Title>TQHideEvent</Title>
  1700. <Para>
  1701. <Literal>TQHideEvent</Literal> is fully implemented.
  1702. </Para>
  1703. </Sect2>
  1704. <Sect2><Title>TQIMComposeEvent (TQt v3.1+)</Title>
  1705. <Para>
  1706. <Literal>TQIMComposeEvent</Literal> is fully implemented.
  1707. </Para>
  1708. </Sect2>
  1709. <Sect2><Title>TQIMEvent (TQt v3+)</Title>
  1710. <Para>
  1711. <Literal>TQIMEvent</Literal> is fully implemented.
  1712. </Para>
  1713. </Sect2>
  1714. <Sect2><Title>TQKeyEvent</Title>
  1715. <Para>
  1716. <Literal>TQKeyEvent</Literal> is fully implemented.
  1717. </Para>
  1718. </Sect2>
  1719. <Sect2><Title>TQMouseEvent</Title>
  1720. <Para>
  1721. <Literal>TQMouseEvent</Literal> is fully implemented.
  1722. </Para>
  1723. </Sect2>
  1724. <Sect2><Title>TQMoveEvent</Title>
  1725. <Para>
  1726. <Literal>TQMoveEvent</Literal> is fully implemented.
  1727. </Para>
  1728. </Sect2>
  1729. <Sect2><Title>TQPaintEvent</Title>
  1730. <Para>
  1731. <Literal>TQPaintEvent</Literal> is fully implemented.
  1732. </Para>
  1733. </Sect2>
  1734. <Sect2><Title>TQResizeEvent</Title>
  1735. <Para>
  1736. <Literal>TQResizeEvent</Literal> is fully implemented.
  1737. </Para>
  1738. </Sect2>
  1739. <Sect2><Title>TQShowEvent</Title>
  1740. <Para>
  1741. <Literal>TQShowEvent</Literal> is fully implemented.
  1742. </Para>
  1743. </Sect2>
  1744. <Sect2><Title>TQTabletEvent (TQt v3+)</Title>
  1745. <Para>
  1746. <Literal>TQTabletEvent</Literal> is fully implemented.
  1747. </Para>
  1748. </Sect2>
  1749. <Sect2><Title>TQTimerEvent</Title>
  1750. <Para>
  1751. <Literal>TQTimerEvent</Literal> is fully implemented.
  1752. </Para>
  1753. </Sect2>
  1754. <Sect2><Title>TQWheelEvent (TQt v2+)</Title>
  1755. <Para>
  1756. <Literal>TQWheelEvent</Literal> is fully implemented.
  1757. </Para>
  1758. </Sect2>
  1759. <Sect2><Title>TQEventLoop (TQt v3.1+)</Title>
  1760. <FuncSynopsis>
  1761. <FuncDef>virtual int <Function>exec</Function></FuncDef>
  1762. <ParamDef></ParamDef>
  1763. </FuncSynopsis>
  1764. <Para>
  1765. This has been renamed to <Literal>exec_loop</Literal> in Python.
  1766. </Para>
  1767. </Sect2>
  1768. <Sect2><Title>TQFile</Title>
  1769. <FuncSynopsis>
  1770. <FuncDef>bool <Function>open</Function></FuncDef>
  1771. <ParamDef>int <Parameter>m</Parameter></ParamDef>
  1772. <ParamDef>FILE *<Parameter>f</Parameter></ParamDef>
  1773. </FuncSynopsis>
  1774. <Para>
  1775. Not implemented.
  1776. </Para>
  1777. <FuncSynopsis>
  1778. <FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
  1779. <ParamDef>char *<Parameter>data</Parameter></ParamDef>
  1780. <ParamDef>Q_ULONG <Parameter>len</Parameter></ParamDef>
  1781. </FuncSynopsis>
  1782. <Para>
  1783. This takes a single <Literal>len</Literal> parameter. The
  1784. <Literal>data</Literal> is returned if there was no error, otherwise
  1785. <Literal>None</Literal> is returned.
  1786. </Para>
  1787. <FuncSynopsis>
  1788. <FuncDef>Q_LONG <Function>readLine</Function></FuncDef>
  1789. <ParamDef>char *<Parameter>data</Parameter></ParamDef>
  1790. <ParamDef>Q_ULONG <Parameter>maxlen</Parameter></ParamDef>
  1791. </FuncSynopsis>
  1792. <Para>
  1793. This takes a single <Literal>maxlen</Literal> parameter. The
  1794. <Literal>data</Literal> is returned if there was no error, otherwise
  1795. <Literal>None</Literal> is returned.
  1796. </Para>
  1797. <FuncSynopsis>
  1798. <FuncDef>static void <Function>setDecodingFunction</Function></FuncDef>
  1799. <ParamDef>EncoderFn <Parameter>f</Parameter></ParamDef>
  1800. </FuncSynopsis>
  1801. <Para>
  1802. Not yet implemented. (TQt v2+)
  1803. </Para>
  1804. <FuncSynopsis>
  1805. <FuncDef>static void <Function>setEncodingFunction</Function></FuncDef>
  1806. <ParamDef>EncoderFn <Parameter>f</Parameter></ParamDef>
  1807. </FuncSynopsis>
  1808. <Para>
  1809. Not yet implemented. (TQt v2+)
  1810. </Para>
  1811. <FuncSynopsis>
  1812. <FuncDef>Q_LONG <Function>writeBlock</Function></FuncDef>
  1813. <ParamDef>const char *<Parameter>data</Parameter></ParamDef>
  1814. <ParamDef>Q_ULONG <Parameter>len</Parameter></ParamDef>
  1815. </FuncSynopsis>
  1816. <Para>
  1817. <Literal>len</Literal> is derived from <Literal>data</Literal> and not passed
  1818. as a parameter.
  1819. </Para>
  1820. </Sect2>
  1821. <Sect2><Title>TQFileDialog</Title>
  1822. <Para>
  1823. <Literal>TQFileDialog</Literal> is fully implemented.
  1824. </Para>
  1825. </Sect2>
  1826. <Sect2><Title>TQFileIconProvider</Title>
  1827. <Para>
  1828. <Literal>TQFileIconProvider</Literal> is fully implemented.
  1829. </Para>
  1830. </Sect2>
  1831. <Sect2><Title>TQFilePreview</Title>
  1832. <Para>
  1833. <Literal>TQFilePreview</Literal> is fully implemented. However it cannot be
  1834. used from Python in the same way as it is used from C++ because PyTQt does not
  1835. support multiple inheritance involving more than one wrapped class. A trick
  1836. that seems to work is to use composition rather than inheritance as in the
  1837. following code fragment.
  1838. </Para>
  1839. <ProgramListing>
  1840. class FilePreview(TQFilePreview):
  1841. pass
  1842. class Preview(TQLabel):
  1843. def __init__(self, parent=None):
  1844. TQLabel.__init__(self, parent)
  1845. self.preview = FilePreview()
  1846. self.preview.previewUrl = self.previewUrl
  1847. </ProgramListing>
  1848. <Para>
  1849. Note that TQFilePreview cannot be instantiated directly because it is abstract.
  1850. Thanks to Hans-Peter Jansen for this trick.
  1851. </Para>
  1852. </Sect2>
  1853. <Sect2><Title>TQFileInfo</Title>
  1854. <Para>
  1855. <Literal>TQFileInfo</Literal> is fully implemented.
  1856. </Para>
  1857. </Sect2>
  1858. <Sect2><Title>TQFont</Title>
  1859. <Para>
  1860. <Literal>TQFont</Literal> is fully implemented, including the Python
  1861. <Literal>==</Literal> and <Literal>!=</Literal> operators.
  1862. </Para>
  1863. </Sect2>
  1864. <Sect2><Title>TQFontDatabase (TQt v2.1+)</Title>
  1865. <Para>
  1866. <Literal>TQFontDatabase</Literal> is fully implemented.
  1867. </Para>
  1868. </Sect2>
  1869. <Sect2><Title>TQFontDialog (TQt v2+)</Title>
  1870. <FuncSynopsis>
  1871. <FuncDef>static TQFont <Function>getFont</Function></FuncDef>
  1872. <ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
  1873. <ParamDef>const TQFont &<Parameter>def</Parameter></ParamDef>
  1874. <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
  1875. <ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
  1876. </FuncSynopsis>
  1877. <Para>
  1878. This takes the <Literal>def</Literal>, <Literal>parent</Literal> and
  1879. <Literal>name</Literal> parameters and returns a tuple containing the
  1880. <Literal>TQFont</Literal> result and the <Literal>ok</Literal> value.
  1881. </Para>
  1882. <FuncSynopsis>
  1883. <FuncDef>static TQFont <Function>getFont</Function></FuncDef>
  1884. <ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
  1885. <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
  1886. <ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
  1887. </FuncSynopsis>
  1888. <Para>
  1889. This takes the <Literal>parent</Literal> and <Literal>name</Literal> parameters
  1890. and returns a tuple containing the <Literal>TQFont</Literal> result and the
  1891. <Literal>ok</Literal> value.
  1892. </Para>
  1893. </Sect2>
  1894. <Sect2><Title>TQFontInfo</Title>
  1895. <Para>
  1896. <Literal>TQFontInfo</Literal> is fully implemented.
  1897. </Para>
  1898. </Sect2>
  1899. <Sect2><Title>TQFontMetrics</Title>
  1900. <FuncSynopsis>
  1901. <FuncDef>TQRect <Function>boundingRect</Function></FuncDef>
  1902. <ParamDef>int <Parameter>x</Parameter></ParamDef>
  1903. <ParamDef>int <Parameter>y</Parameter></ParamDef>
  1904. <ParamDef>int <Parameter>w</Parameter></ParamDef>
  1905. <ParamDef>int <Parameter>h</Parameter></ParamDef>
  1906. <ParamDef>int <Parameter>flags</Parameter></ParamDef>
  1907. <ParamDef>const TQString &amp;<Parameter>str</Parameter></ParamDef>
  1908. <ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
  1909. <ParamDef>int <Parameter>tabstops</Parameter> = 0</ParamDef>
  1910. <ParamDef>int *<Parameter>tabarray</Parameter> = 0</ParamDef>
  1911. </FuncSynopsis>
  1912. <Para>
  1913. The <Literal>tabarray</Literal> parameter is a Python list of integers.
  1914. </Para>
  1915. <FuncSynopsis>
  1916. <FuncDef>TQSize <Function>size</Function></FuncDef>
  1917. <ParamDef>int <Parameter>flags</Parameter></ParamDef>
  1918. <ParamDef>const TQString &amp;<Parameter>str</Parameter></ParamDef>
  1919. <ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
  1920. <ParamDef>int <Parameter>tabstops</Parameter> = 0</ParamDef>
  1921. <ParamDef>int *<Parameter>tabarray</Parameter> = 0</ParamDef>
  1922. </FuncSynopsis>
  1923. <Para>
  1924. The <Literal>tabarray</Literal> parameter is a Python list of integers.
  1925. </Para>
  1926. </Sect2>
  1927. <Sect2><Title>TQFrame</Title>
  1928. <Para>
  1929. <Literal>TQFrame</Literal> is fully implemented.
  1930. </Para>
  1931. </Sect2>
  1932. <Sect2><Title>TQGManager (TQt v1.x)</Title>
  1933. <Para>
  1934. <Literal>TQGManager</Literal> is fully implemented.
  1935. </Para>
  1936. </Sect2>
  1937. <Sect2><Title>TQChain (TQt v1.x)</Title>
  1938. <Para>
  1939. <Literal>TQChain</Literal> is implemented as an opaque class.
  1940. </Para>
  1941. </Sect2>
  1942. <Sect2><Title>TQGrid (TQt v2+)</Title>
  1943. <Para>
  1944. <Literal>TQGrid</Literal> is fully implemented.
  1945. </Para>
  1946. </Sect2>
  1947. <Sect2><Title>TQGridView (TQt v3+)</Title>
  1948. <Para>
  1949. <Literal>TQGridView</Literal> is fully implemented.
  1950. </Para>
  1951. </Sect2>
  1952. <Sect2><Title>TQGroupBox</Title>
  1953. <Para>
  1954. <Literal>TQGroupBox</Literal> is fully implemented.
  1955. </Para>
  1956. </Sect2>
  1957. <Sect2><Title>TQHBox (TQt v2+)</Title>
  1958. <Para>
  1959. <Literal>TQHBox</Literal> is fully implemented.
  1960. </Para>
  1961. </Sect2>
  1962. <Sect2><Title>TQHButtonGroup (TQt v2+)</Title>
  1963. <Para>
  1964. <Literal>TQHButtonGroup</Literal> is fully implemented.
  1965. </Para>
  1966. </Sect2>
  1967. <Sect2><Title>TQHeader</Title>
  1968. <Para>
  1969. <Literal>TQHeader</Literal> is fully implemented.
  1970. </Para>
  1971. </Sect2>
  1972. <Sect2><Title>TQHGroupBox (TQt v2+)</Title>
  1973. <Para>
  1974. <Literal>TQHGroupBox</Literal> is fully implemented.
  1975. </Para>
  1976. </Sect2>
  1977. <Sect2><Title>TQIconSet</Title>
  1978. <Para>
  1979. <Literal>TQIconSet</Literal> is fully implemented.
  1980. </Para>
  1981. </Sect2>
  1982. <Sect2><Title>TQIconFactory (TQt v3.1+)</Title>
  1983. <Para>
  1984. <Literal>TQIconFactory</Literal> is fully implemented.
  1985. </Para>
  1986. </Sect2>
  1987. <Sect2><Title>TQIconView (TQt v2.1+)</Title>
  1988. <FuncSynopsis>
  1989. <FuncDef>TQIconViewItem *<Function>makeRowLayout</Function></FuncDef>
  1990. <ParamDef>TQIconViewItem *<Parameter>begin</Parameter></ParamDef>
  1991. <ParamDef>int &<Parameter>y</Parameter></ParamDef>
  1992. </FuncSynopsis>
  1993. <Para>
  1994. Not yet implemented.
  1995. </Para>
  1996. </Sect2>
  1997. <Sect2><Title>TQIconViewItem (TQt v2.1+)</Title>
  1998. <Para>
  1999. <Literal>TQIconViewItem</Literal> is fully implemented.
  2000. </Para>
  2001. </Sect2>
  2002. <Sect2><Title>TQIconDrag (TQt v2.1+)</Title>
  2003. <Para>
  2004. <Literal>TQIconDrag</Literal> is fully implemented.
  2005. </Para>
  2006. </Sect2>
  2007. <Sect2><Title>TQIconDragItem (TQt v2.1+)</Title>
  2008. <Para>
  2009. <Literal>TQIconDragItem</Literal> is fully implemented.
  2010. </Para>
  2011. </Sect2>
  2012. <Sect2><Title>TQImage</Title>
  2013. <Para>
  2014. The Python <Literal>==</Literal> and <Literal>!=</Literal> operators are
  2015. supported.
  2016. </Para>
  2017. <FuncSynopsis>
  2018. <FuncDef><Function>TQImage</Function></FuncDef>
  2019. <ParamDef>const char *<Parameter>xpm</Parameter>[]</ParamDef>
  2020. </FuncSynopsis>
  2021. <Para>
  2022. This takes a list of strings as its parameter.
  2023. </Para>
  2024. <FuncSynopsis>
  2025. <FuncDef><Function>TQImage</Function></FuncDef>
  2026. <ParamDef>uchar *<Parameter>data</Parameter></ParamDef>
  2027. <ParamDef>int <Parameter>w</Parameter></ParamDef>
  2028. <ParamDef>int <Parameter>h</Parameter></ParamDef>
  2029. <ParamDef>int <Parameter>depth</Parameter></ParamDef>
  2030. <ParamDef>TQRgb *<Parameter>colorTable</Parameter></ParamDef>
  2031. <ParamDef>int <Parameter>numColors</Parameter></ParamDef>
  2032. <ParamDef>Endian <Parameter>bitOrder</Parameter></ParamDef>
  2033. </FuncSynopsis>
  2034. <Para>
  2035. The <Literal>colorTable</Literal> parameter is a list of TQRgb instances or
  2036. None. (TQt v2.1+)
  2037. </Para>
  2038. <FuncSynopsis>
  2039. <FuncDef>uchar *<Function>bits</Function></FuncDef>
  2040. <ParamDef></ParamDef>
  2041. </FuncSynopsis>
  2042. <Para>
  2043. The return value is a <Literal>sip.voidptr</Literal> object which is only
  2044. useful if passed to another Python module.
  2045. </Para>
  2046. <FuncSynopsis>
  2047. <FuncDef>TQRgb *<Function>colorTable</Function></FuncDef>
  2048. <ParamDef></ParamDef>
  2049. </FuncSynopsis>
  2050. <Para>
  2051. The return value is a <Literal>sip.voidptr</Literal> object which is only
  2052. useful if passed to another Python module.
  2053. </Para>
  2054. <FuncSynopsis>
  2055. <FuncDef>TQImage <Function>convertDepthWithPalette</Function></FuncDef>
  2056. <ParamDef>int</ParamDef>
  2057. <ParamDef>TQRgb *<Parameter>p</Parameter></ParamDef>
  2058. <ParamDef>int <Parameter>pc</Parameter></ParamDef>
  2059. <ParamDef>int <Parameter>cf</Parameter> = 0</ParamDef>
  2060. </FuncSynopsis>
  2061. <Para>
  2062. Not implemented.
  2063. </Para>
  2064. <FuncSynopsis>
  2065. <FuncDef>uchar **<Function>jumpTable</Function></FuncDef>
  2066. <ParamDef></ParamDef>
  2067. </FuncSynopsis>
  2068. <Para>
  2069. The return value is a <Literal>sip.voidptr</Literal> object which is only
  2070. useful if passed to another Python module.
  2071. </Para>
  2072. <FuncSynopsis>
  2073. <FuncDef>bool <Function>loadFromData</Function></FuncDef>
  2074. <ParamDef>const uchar *<Parameter>buf</Parameter></ParamDef>
  2075. <ParamDef>uint <Parameter>len</Parameter></ParamDef>
  2076. <ParamDef>const char *<Parameter>format</Parameter> = 0</ParamDef>
  2077. <ParamDef>ColorMode <Parameter>mode</Parameter> = Auto</ParamDef>
  2078. </FuncSynopsis>
  2079. <Para>
  2080. <Literal>len</Literal> is derived from <Literal>buf</Literal> and not passed as
  2081. a parameter.
  2082. </Para>
  2083. <FuncSynopsis>
  2084. <FuncDef>uchar *<Function>scanLine</Function></FuncDef>
  2085. <ParamDef>int <Parameter>i</Parameter></ParamDef>
  2086. </FuncSynopsis>
  2087. <Para>
  2088. The return value is a <Literal>sip.voidptr</Literal> object which is only
  2089. useful if passed to another Python module.
  2090. </Para>
  2091. </Sect2>
  2092. <Sect2><Title>TQImageIO</Title>
  2093. <FuncSynopsis>
  2094. <FuncDef>static void <Function>defineIOHandler</Function></FuncDef>
  2095. <ParamDef>const char *<Parameter>format</Parameter></ParamDef>
  2096. <ParamDef>const char *<Parameter>header</Parameter></ParamDef>
  2097. <ParamDef>const char *<Parameter>flags</Parameter></ParamDef>
  2098. <ParamDef>image_io_handler <Parameter>read_image</Parameter></ParamDef>
  2099. <ParamDef>image_io_handler <Parameter>write_image</Parameter></ParamDef>
  2100. </FuncSynopsis>
  2101. <Para>
  2102. Not implemented.
  2103. </Para>
  2104. </Sect2>
  2105. <Sect2><Title>TQImageTextKeyLang</Title>
  2106. <Para>
  2107. <Literal>TQImageTextKeyLang</Literal> is fully implemented.
  2108. </Para>
  2109. </Sect2>
  2110. <Sect2><Title>TQInputDialog (TQt v2.1+)</Title>
  2111. <FuncSynopsis>
  2112. <FuncDef>static TQString <Function>getText</Function></FuncDef>
  2113. <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
  2114. <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
  2115. <ParamDef>const TQString &amp;<Parameter>text</Parameter> = TQString::null</ParamDef>
  2116. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  2117. <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
  2118. <ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
  2119. </FuncSynopsis>
  2120. <Para>
  2121. The <Literal>ok</Literal> is not passed and the returned value is a tuple of
  2122. the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
  2123. (TQt v2.1 - v2.3.1)
  2124. </Para>
  2125. <FuncSynopsis>
  2126. <FuncDef>static TQString <Function>getText</Function></FuncDef>
  2127. <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
  2128. <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
  2129. <ParamDef>TQLineEdit::EchoMode<Parameter>echo</Parameter></ParamDef>
  2130. <ParamDef>const TQString &amp;<Parameter>text</Parameter> = TQString::null</ParamDef>
  2131. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  2132. <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
  2133. <ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
  2134. </FuncSynopsis>
  2135. <Para>
  2136. The <Literal>ok</Literal> is not passed and the returned value is a tuple of
  2137. the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
  2138. (TQt v2.2 - v2.3.1)
  2139. </Para>
  2140. <FuncSynopsis>
  2141. <FuncDef>static TQString <Function>getText</Function></FuncDef>
  2142. <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
  2143. <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
  2144. <ParamDef>TQLineEdit::EchoMode<Parameter>echo</Parameter> = TQLineEdit::Normal</ParamDef>
  2145. <ParamDef>const TQString &amp;<Parameter>text</Parameter> = TQString::null</ParamDef>
  2146. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  2147. <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
  2148. <ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
  2149. </FuncSynopsis>
  2150. <Para>
  2151. The <Literal>ok</Literal> is not passed and the returned value is a tuple of
  2152. the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
  2153. (TQt v3+)
  2154. </Para>
  2155. <FuncSynopsis>
  2156. <FuncDef>static int <Function>getInteger</Function></FuncDef>
  2157. <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
  2158. <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
  2159. <ParamDef>int <Parameter>num</Parameter> = 0</ParamDef>
  2160. <ParamDef>int <Parameter>from</Parameter> = -2147483647</ParamDef>
  2161. <ParamDef>int <Parameter>to</Parameter> = 2147483647</ParamDef>
  2162. <ParamDef>int <Parameter>step</Parameter> = 1</ParamDef>
  2163. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  2164. <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
  2165. <ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
  2166. </FuncSynopsis>
  2167. <Para>
  2168. The <Literal>ok</Literal> is not passed and the returned value is a tuple of
  2169. the <Literal>int</Literal> result and the <Literal>ok</Literal> flag.
  2170. </Para>
  2171. <FuncSynopsis>
  2172. <FuncDef>static double <Function>getDouble</Function></FuncDef>
  2173. <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
  2174. <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
  2175. <ParamDef>double <Parameter>num</Parameter> = 0</ParamDef>
  2176. <ParamDef>double <Parameter>from</Parameter> = -2147483647</ParamDef>
  2177. <ParamDef>double <Parameter>to</Parameter> = 2147483647</ParamDef>
  2178. <ParamDef>int <Parameter>step</Parameter> = 1</ParamDef>
  2179. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  2180. <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
  2181. <ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
  2182. </FuncSynopsis>
  2183. <Para>
  2184. The <Literal>ok</Literal> is not passed and the returned value is a tuple of
  2185. the <Literal>double</Literal> result and the <Literal>ok</Literal> flag.
  2186. </Para>
  2187. <FuncSynopsis>
  2188. <FuncDef>static TQString <Function>getItem</Function></FuncDef>
  2189. <ParamDef>const TQString &amp;<Parameter>caption</Parameter></ParamDef>
  2190. <ParamDef>const TQString &amp;<Parameter>label</Parameter></ParamDef>
  2191. <ParamDef>const TQStringList &<Parameter>list</Parameter></ParamDef>
  2192. <ParamDef>int <Parameter>current</Parameter> = 0</ParamDef>
  2193. <ParamDef>bool <Parameter>editable</Parameter> = TRUE</ParamDef>
  2194. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  2195. <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
  2196. <ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
  2197. </FuncSynopsis>
  2198. <Para>
  2199. The <Literal>ok</Literal> is not passed and the returned value is a tuple of
  2200. the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
  2201. </Para>
  2202. </Sect2>
  2203. <Sect2><Title>TQInterlaceStyle (TQt v2.3.1+)</Title>
  2204. <FuncSynopsis>
  2205. <FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
  2206. <ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
  2207. <ParamDef>int &amp;<Parameter>sliderMin</Parameter></ParamDef>
  2208. <ParamDef>int &amp;<Parameter>sliderMax</Parameter></ParamDef>
  2209. <ParamDef>int &amp;<Parameter>sliderLength</Parameter></ParamDef>
  2210. <ParamDef>int &amp;<Parameter>buttonDim</Parameter></ParamDef>
  2211. </FuncSynopsis>
  2212. <Para>
  2213. This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
  2214. <Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
  2215. <Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
  2216. </Para>
  2217. </Sect2>
  2218. <Sect2><Title>TQIODevice</Title>
  2219. <Para>
  2220. <Literal>TQIODevice</Literal> is fully implemented.
  2221. </Para>
  2222. </Sect2>
  2223. <Sect2><Title>TQKeySequence (TQt v3+)</Title>
  2224. <Para>
  2225. <Literal>TQKeySequence</Literal> is fully implemented including the operators
  2226. <Literal>==</Literal>, <Literal>!=</Literal>, <Literal>TQString()</Literal> and
  2227. <Literal>int()</Literal>. A <Literal>TQString</Literal> instance or a Python
  2228. integer may be used whenever a <Literal>TQKeySequence</Literal> can be used.
  2229. </Para>
  2230. </Sect2>
  2231. <Sect2><Title>TQLabel</Title>
  2232. <Para>
  2233. <Literal>TQLabel</Literal> is fully implemented.
  2234. </Para>
  2235. </Sect2>
  2236. <Sect2><Title>TQLayout</Title>
  2237. <Para>
  2238. <Literal>TQLayout</Literal> is fully implemented.
  2239. </Para>
  2240. </Sect2>
  2241. <Sect2><Title>TQBoxLayout</Title>
  2242. <Para>
  2243. <Literal>TQBoxLayout</Literal> is fully implemented.
  2244. </Para>
  2245. </Sect2>
  2246. <Sect2><Title>TQGLayoutIterator (TQt v2+)</Title>
  2247. <Para>
  2248. <Literal>TQGLayoutIterator</Literal> is fully implemented.
  2249. </Para>
  2250. </Sect2>
  2251. <Sect2><Title>TQGridLayout</Title>
  2252. <FuncSynopsis>
  2253. <FuncDef>bool <Function>findWidget</Function></FuncDef>
  2254. <ParamDef>TQWidget *<Parameter>w</Parameter></ParamDef>
  2255. <ParamDef>int *<Parameter>row</Parameter></ParamDef>
  2256. <ParamDef>int *<Parameter>col</Parameter></ParamDef>
  2257. </FuncSynopsis>
  2258. <Para>
  2259. This takes the <Literal>w</Literal> parameter and returns a tuple containing
  2260. the <Literal>bool</Literal> result, <Literal>row</Literal> and
  2261. <Literal>col</Literal>. (TQt v2+)
  2262. </Para>
  2263. </Sect2>
  2264. <Sect2><Title>TQHBoxLayout</Title>
  2265. <Para>
  2266. <Literal>TQHBoxLayout</Literal> is fully implemented.
  2267. </Para>
  2268. </Sect2>
  2269. <Sect2><Title>TQLayoutItem (TQt v2+)</Title>
  2270. <Para>
  2271. <Literal>TQLayoutItem</Literal> is fully implemented.
  2272. </Para>
  2273. </Sect2>
  2274. <Sect2><Title>TQLayoutIterator (TQt v2+)</Title>
  2275. <FuncSynopsis>
  2276. <FuncDef>TQLayoutItem *<Function>next</Function></FuncDef>
  2277. <ParamDef></ParamDef>
  2278. </FuncSynopsis>
  2279. <Para>
  2280. This is a wrapper around the <Literal>TQLayoutIterator</Literal>
  2281. <Literal>++</Literal> operator.
  2282. </Para>
  2283. </Sect2>
  2284. <Sect2><Title>TQSpacerItem (TQt v2+)</Title>
  2285. <Para>
  2286. <Literal>TQSpacerItem</Literal> is fully implemented.
  2287. </Para>
  2288. </Sect2>
  2289. <Sect2><Title>TQVBoxLayout</Title>
  2290. <Para>
  2291. <Literal>TQVBoxLayout</Literal> is fully implemented.
  2292. </Para>
  2293. </Sect2>
  2294. <Sect2><Title>TQWidgetItem (TQt v2+)</Title>
  2295. <Para>
  2296. <Literal>TQWidgetItem</Literal> is fully implemented.
  2297. </Para>
  2298. </Sect2>
  2299. <Sect2><Title>TQLCDNumber</Title>
  2300. <Para>
  2301. <Literal>TQLCDNumber</Literal> is fully implemented.
  2302. </Para>
  2303. </Sect2>
  2304. <Sect2><Title>TQLibrary (TQt v3+)</Title>
  2305. <Para>
  2306. <Literal>TQLibrary</Literal> is fully implemented.
  2307. </Para>
  2308. </Sect2>
  2309. <Sect2><Title>TQLineEdit</Title>
  2310. <FuncSynopsis>
  2311. <FuncDef>int <Function>characterAt</Function></FuncDef>
  2312. <ParamDef>int <Parameter>xpos</Parameter></ParamDef>
  2313. <ParamDef>TQChar *<Parameter>chr</Parameter></ParamDef>
  2314. </FuncSynopsis>
  2315. <Para>
  2316. This takes only the <Literal>xpos</Literal> parameter and returns the int
  2317. result and the <Literal>chr</Literal> value as a tuple. (TQt v3+)
  2318. </Para>
  2319. <FuncSynopsis>
  2320. <FuncDef>void <Function>del</Function></FuncDef>
  2321. <ParamDef></ParamDef>
  2322. </FuncSynopsis>
  2323. <Para>
  2324. This has been renamed <Literal>delChar</Literal> in Python. (TQt v2+)
  2325. </Para>
  2326. <FuncSynopsis>
  2327. <FuncDef>bool <Function>getSelection</Function></FuncDef>
  2328. <ParamDef>int *<Parameter>start</Parameter></ParamDef>
  2329. <ParamDef>int *<Parameter>end</Parameter></ParamDef>
  2330. </FuncSynopsis>
  2331. <Para>
  2332. This takes no parameters and returns the bool result and the
  2333. <Literal>start</Literal> and <Literal>end</Literal> values as a tuple.
  2334. (TQt v3+)
  2335. </Para>
  2336. </Sect2>
  2337. <Sect2><Title>TQList&lt;type&gt; (TQt v2)</Title>
  2338. <Para>
  2339. Types based on the <Literal>TQList</Literal> template are automatically
  2340. converted to and from Python lists of the type.
  2341. </Para>
  2342. </Sect2>
  2343. <Sect2><Title>TQListBox</Title>
  2344. <FuncSynopsis>
  2345. <FuncDef>bool <Function>itemYPos</Function></FuncDef>
  2346. <ParamDef>int <Parameter>index</Parameter></ParamDef>
  2347. <ParamDef>int *<Parameter>yPos</Parameter></ParamDef>
  2348. </FuncSynopsis>
  2349. <Para>
  2350. This takes the <Literal>index</Literal> parameter and returns a tuple
  2351. containing the <Literal>bool</Literal> result and <Literal>yPos</Literal>.
  2352. (TQt v1.x)
  2353. </Para>
  2354. </Sect2>
  2355. <Sect2><Title>TQListBoxItem</Title>
  2356. <Para>
  2357. <Literal>TQListBoxItem</Literal> is fully implemented.
  2358. </Para>
  2359. </Sect2>
  2360. <Sect2><Title>TQListBoxPixmap</Title>
  2361. <Para>
  2362. <Literal>TQListBoxPixmap</Literal> is fully implemented.
  2363. </Para>
  2364. </Sect2>
  2365. <Sect2><Title>TQListBoxText</Title>
  2366. <Para>
  2367. <Literal>TQListBoxText</Literal> is fully implemented.
  2368. </Para>
  2369. </Sect2>
  2370. <Sect2><Title>TQListView</Title>
  2371. <Para>
  2372. <Literal>TQListView</Literal> is fully implemented.
  2373. </Para>
  2374. <Para>
  2375. Note that to remove a child <Literal>TQListViewItem</Literal> you must first
  2376. call <Literal>takeItem()</Literal> and then <Literal>del()</Literal>.
  2377. </Para>
  2378. </Sect2>
  2379. <Sect2><Title>TQListViewItem</Title>
  2380. <Para>
  2381. <Literal>TQListViewItem</Literal> is fully implemented.
  2382. </Para>
  2383. <Para>
  2384. Note that to remove a child <Literal>TQListViewItem</Literal> you must first
  2385. call <Literal>takeItem()</Literal> and then <Literal>del()</Literal>.
  2386. </Para>
  2387. </Sect2>
  2388. <Sect2><Title>TQCheckListItem</Title>
  2389. <Para>
  2390. <Literal>TQCheckListItem</Literal> is fully implemented.
  2391. </Para>
  2392. </Sect2>
  2393. <Sect2><Title>TQListViewItemIterator (TQt v2+)</Title>
  2394. <Para>
  2395. <Literal>TQListViewItemIterator</Literal> is fully implemented.
  2396. </Para>
  2397. </Sect2>
  2398. <Sect2><Title>TQLocale (TQt v3.3+)</Title>
  2399. <FuncSynopsis>
  2400. <FuncDef>short <Function>toShort</Function></FuncDef>
  2401. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  2402. </FuncSynopsis>
  2403. <Para>
  2404. This returns a tuple of the <Literal>short</Literal> result and the
  2405. <Literal>ok</Literal> value.
  2406. </Para>
  2407. <FuncSynopsis>
  2408. <FuncDef>ushort <Function>toUShort</Function></FuncDef>
  2409. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  2410. </FuncSynopsis>
  2411. <Para>
  2412. This returns a tuple of the <Literal>ushort</Literal> result and the
  2413. <Literal>ok</Literal> value.
  2414. </Para>
  2415. <FuncSynopsis>
  2416. <FuncDef>int <Function>toInt</Function></FuncDef>
  2417. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  2418. </FuncSynopsis>
  2419. <Para>
  2420. This returns a tuple of the <Literal>int</Literal> result and the
  2421. <Literal>ok</Literal> value.
  2422. </Para>
  2423. <FuncSynopsis>
  2424. <FuncDef>uint <Function>toUInt</Function></FuncDef>
  2425. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  2426. </FuncSynopsis>
  2427. <Para>
  2428. This returns a tuple of the <Literal>uint</Literal> result and the
  2429. <Literal>ok</Literal> value.
  2430. </Para>
  2431. <FuncSynopsis>
  2432. <FuncDef>Q_LONG <Function>toLong</Function></FuncDef>
  2433. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  2434. </FuncSynopsis>
  2435. <Para>
  2436. This returns a tuple of the <Literal>long</Literal> result and the
  2437. <Literal>ok</Literal> value.
  2438. </Para>
  2439. <FuncSynopsis>
  2440. <FuncDef>Q_ULONG <Function>toULong</Function></FuncDef>
  2441. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  2442. </FuncSynopsis>
  2443. <Para>
  2444. This returns a tuple of the <Literal>ulong</Literal> result and the
  2445. <Literal>ok</Literal> value.
  2446. </Para>
  2447. <FuncSynopsis>
  2448. <FuncDef>float <Function>toFloat</Function></FuncDef>
  2449. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  2450. </FuncSynopsis>
  2451. <Para>
  2452. This returns a tuple of the <Literal>float</Literal> result and the
  2453. <Literal>ok</Literal> value.
  2454. </Para>
  2455. <FuncSynopsis>
  2456. <FuncDef>double <Function>toDouble</Function></FuncDef>
  2457. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  2458. </FuncSynopsis>
  2459. <Para>
  2460. This returns a tuple of the <Literal>double</Literal> result and the
  2461. <Literal>ok</Literal> value.
  2462. </Para>
  2463. </Sect2>
  2464. <Sect2><Title>TQMainWindow</Title>
  2465. <FuncSynopsis>
  2466. <FuncDef>TQTextStream &amp;<Function>operator&lt&lt;</Function></FuncDef>
  2467. <ParamDef>TQTextStream &amp;<Parameter></Parameter></ParamDef>
  2468. <ParamDef>const TQMainWindow &amp;<Parameter></Parameter></ParamDef>
  2469. </FuncSynopsis>
  2470. <Para>
  2471. This operator is fully implemented. (TQt v3+)
  2472. </Para>
  2473. <FuncSynopsis>
  2474. <FuncDef>TQTextStream &amp;<Function>operator&gt&gt;</Function></FuncDef>
  2475. <ParamDef>TQTextStream &amp;<Parameter></Parameter></ParamDef>
  2476. <ParamDef>TQMainWindow &amp;<Parameter></Parameter></ParamDef>
  2477. </FuncSynopsis>
  2478. <Para>
  2479. This operator is fully implemented. (TQt v3+)
  2480. </Para>
  2481. <FuncSynopsis>
  2482. <FuncDef>bool <Function>getLocation</Function></FuncDef>
  2483. <ParamDef>TQToolBar *<Parameter>tb</Parameter></ParamDef>
  2484. <ParamDef>ToolBarDock &amp;<Parameter>dock</Parameter></ParamDef>
  2485. <ParamDef>int &amp;<Parameter>index</Parameter></ParamDef>
  2486. <ParamDef>bool &amp;<Parameter>nl</Parameter></ParamDef>
  2487. <ParamDef>int &amp;<Parameter>extraOffset</Parameter></ParamDef>
  2488. </FuncSynopsis>
  2489. <Para>
  2490. This takes only the <Literal>tb</Literal> parameter and returns a tuple of the
  2491. result, <Literal>dock</Literal>, <Literal>index</Literal>,
  2492. <Literal>nl</Literal> and <Literal>extraOffset</Literal> values. (TQt v2.1.0+)
  2493. </Para>
  2494. <FuncSynopsis>
  2495. <FuncDef>TQList&lt;TQToolBar&gt; <Function>toolBars</Function></FuncDef>
  2496. <ParamDef>ToolBarDock <Parameter>dock</Parameter></ParamDef>
  2497. </FuncSynopsis>
  2498. <Para>
  2499. This returns a list of <Literal>TQToolBar</Literal> instances. (TQt v2.1.0+)
  2500. </Para>
  2501. </Sect2>
  2502. <Sect2><Title>TQMemArray&lt;type&gt; (TQt v3+)</Title>
  2503. <Para>
  2504. Types based on the <Literal>TQMemArray</Literal> template are automatically
  2505. converted to and from Python lists of the type.
  2506. </Para>
  2507. </Sect2>
  2508. <Sect2><Title>TQMenuBar</Title>
  2509. <Para>
  2510. <Literal>TQMenuBar</Literal> is fully implemented.
  2511. </Para>
  2512. </Sect2>
  2513. <Sect2><Title>TQMenuData</Title>
  2514. <FuncSynopsis>
  2515. <FuncDef>TQMenuItem *<Function>findItem</Function></FuncDef>
  2516. <ParamDef>int <Parameter>id</Parameter></ParamDef>
  2517. <ParamDef>TQMenuData **<Parameter>parent</Parameter></ParamDef>
  2518. </FuncSynopsis>
  2519. <Para>
  2520. Not implemented.
  2521. </Para>
  2522. </Sect2>
  2523. <Sect2><Title>TQCustomMenuItem (TQt v2.1+)</Title>
  2524. <Para>
  2525. <Literal>TQCustomMenuItem</Literal> is fully implemented.
  2526. </Para>
  2527. </Sect2>
  2528. <Sect2><Title>TQMenuItem</Title>
  2529. <Para>
  2530. <Literal>TQMenuItem</Literal> is an internal TQt class.
  2531. </Para>
  2532. </Sect2>
  2533. <Sect2><Title>TQMessageBox</Title>
  2534. <Para>
  2535. <Literal>TQMessageBox</Literal> is fully implemented.
  2536. </Para>
  2537. </Sect2>
  2538. <Sect2><Title>TQMetaObject</Title>
  2539. <FuncSynopsis>
  2540. <FuncDef>int <Function>numClassInfo</Function> const</FuncDef>
  2541. <ParamDef>bool <Parameter>super</Parameter> = FALSE</ParamDef>
  2542. </FuncSynopsis>
  2543. <Para>
  2544. Not implemented.
  2545. </Para>
  2546. <FuncSynopsis>
  2547. <FuncDef>const TQClassInfo *<Function>classInfo</Function> const</FuncDef>
  2548. <ParamDef>bool <Parameter>super</Parameter> = FALSE</ParamDef>
  2549. </FuncSynopsis>
  2550. <Para>
  2551. Not implemented.
  2552. </Para>
  2553. </Sect2>
  2554. <Sect2><Title>TQMetaProperty</Title>
  2555. <Para>
  2556. <Literal>TQMetaProperty</Literal> is fully implemented.
  2557. </Para>
  2558. </Sect2>
  2559. <Sect2><Title>TQMimeSource (TQt v2+)</Title>
  2560. <Para>
  2561. <Literal>TQMimeSource</Literal> is fully implemented.
  2562. </Para>
  2563. </Sect2>
  2564. <Sect2><Title>TQMimeSourceFactory (TQt v2+)</Title>
  2565. <Para>
  2566. <Literal>TQMimeSourceFactory</Literal> is fully implemented.
  2567. </Para>
  2568. </Sect2>
  2569. <Sect2><Title>TQWindowsMime (TQt v3+)</Title>
  2570. <Para>
  2571. <Literal>TQWindowsMime</Literal> is fully implemented.
  2572. </Para>
  2573. </Sect2>
  2574. <Sect2><Title>TQMotifPlusStyle (TQt v2.2+)</Title>
  2575. <FuncSynopsis>
  2576. <FuncDef>void <Function>getButtonShift</Function></FuncDef>
  2577. <ParamDef>int &amp;<Parameter>x</Parameter></ParamDef>
  2578. <ParamDef>int &amp;<Parameter>y</Parameter></ParamDef>
  2579. </FuncSynopsis>
  2580. <Para>
  2581. This takes no parameters and returns a tuple of the <Literal>x</Literal> and
  2582. <Literal>y</Literal> values. (TQt v2)
  2583. </Para>
  2584. <FuncSynopsis>
  2585. <FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
  2586. <ParamDef>const TQScrollBar *<Parameter>sb</Parameter></ParamDef>
  2587. <ParamDef>int &amp;<Parameter>sliderMin</Parameter></ParamDef>
  2588. <ParamDef>int &amp;<Parameter>sliderMax</Parameter></ParamDef>
  2589. <ParamDef>int &amp;<Parameter>sliderLength</Parameter></ParamDef>
  2590. <ParamDef>int &amp;<Parameter>buttonDim</Parameter></ParamDef>
  2591. </FuncSynopsis>
  2592. <Para>
  2593. This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
  2594. <Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
  2595. <Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
  2596. (TQt v2)
  2597. </Para>
  2598. </Sect2>
  2599. <Sect2><Title>TQMotifStyle (TQt v2+)</Title>
  2600. <FuncSynopsis>
  2601. <FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
  2602. <ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
  2603. <ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
  2604. <ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
  2605. <ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
  2606. <ParamDef>int &<Parameter>buttonDim</Parameter></ParamDef>
  2607. </FuncSynopsis>
  2608. <Para>
  2609. This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
  2610. <Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
  2611. <Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
  2612. (TQt v2)
  2613. </Para>
  2614. <FuncSynopsis>
  2615. <FuncDef>void <Function>tabbarMetrics</Function></FuncDef>
  2616. <ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
  2617. <ParamDef>int &<Parameter>hframe</Parameter></ParamDef>
  2618. <ParamDef>int &<Parameter>vframe</Parameter></ParamDef>
  2619. <ParamDef>int &<Parameter>overlap</Parameter></ParamDef>
  2620. </FuncSynopsis>
  2621. <Para>
  2622. This takes only the <Literal>t</Literal> parameter and returns a tuple of the
  2623. <Literal>hframe</Literal>, <Literal>vframe</Literal> and
  2624. <Literal>overlap</Literal> values. (TQt v2)
  2625. </Para>
  2626. </Sect2>
  2627. <Sect2><Title>TQMovie</Title>
  2628. <FuncSynopsis>
  2629. <FuncDef><Function>TQMovie</Function></FuncDef>
  2630. <ParamDef>TQDataSource *<Parameter>src</Parameter></ParamDef>
  2631. <ParamDef>int <Parameter>bufsize</Parameter> = 1024</ParamDef>
  2632. </FuncSynopsis>
  2633. <Para>
  2634. Not implemented.
  2635. </Para>
  2636. <FuncSynopsis>
  2637. <FuncDef>void <Function>pushData</Function></FuncDef>
  2638. <ParamDef>const uchar *<Parameter>data</Parameter></ParamDef>
  2639. <ParamDef>int <Parameter>length</Parameter></ParamDef>
  2640. </FuncSynopsis>
  2641. <Para>
  2642. <Literal>length</Literal> is derived from <Literal>data</Literal> and not
  2643. passed as a parameter. (TQt v2.2.0+)
  2644. </Para>
  2645. </Sect2>
  2646. <Sect2><Title>TQMultiLineEdit</Title>
  2647. <FuncSynopsis>
  2648. <FuncDef>void <Function>cursorPosition</Function> const</FuncDef>
  2649. <ParamDef>int *<Parameter>line</Parameter></ParamDef>
  2650. <ParamDef>int *<Parameter>col</Parameter></ParamDef>
  2651. </FuncSynopsis>
  2652. <Para>
  2653. This takes no parameters and returns a tuple of the <Literal>line</Literal> and
  2654. <Literal>col</Literal> values. (TQt v1.x, TQt v2.x)
  2655. </Para>
  2656. <FuncSynopsis>
  2657. <FuncDef>virtual void <Function>del</Function></FuncDef>
  2658. <ParamDef></ParamDef>
  2659. </FuncSynopsis>
  2660. <Para>
  2661. This has been renamed <Literal>delChar</Literal> in Python. (TQt v1.x, TQt v2.x)
  2662. </Para>
  2663. <FuncSynopsis>
  2664. <FuncDef>void <Function>getCursorPosition</Function> const</FuncDef>
  2665. <ParamDef>int *<Parameter>line</Parameter></ParamDef>
  2666. <ParamDef>int *<Parameter>col</Parameter></ParamDef>
  2667. </FuncSynopsis>
  2668. <Para>
  2669. This takes no parameters and returns a tuple of the <Literal>line</Literal> and
  2670. <Literal>col</Literal> values. (TQt v1.x, TQt v2.x)
  2671. </Para>
  2672. <FuncSynopsis>
  2673. <FuncDef>bool <Function>getMarkedRegion</Function></FuncDef>
  2674. <ParamDef>int *<Parameter>line1</Parameter></ParamDef>
  2675. <ParamDef>int *<Parameter>col1</Parameter></ParamDef>
  2676. <ParamDef>int *<Parameter>line2</Parameter></ParamDef>
  2677. <ParamDef>int *<Parameter>col2</Parameter></ParamDef>
  2678. </FuncSynopsis>
  2679. <Para>
  2680. This takes no parameters and returns a tuple of the bool result and the
  2681. <Literal>line1</Literal>, <Literal>col1</Literal>, <Literal>line2</Literal> and
  2682. <Literal>col2</Literal> values.
  2683. </Para>
  2684. </Sect2>
  2685. <Sect2><Title>TQMutex (TQt v2.2+)</Title>
  2686. <Para>
  2687. <Literal>TQMutex</Literal> is fully implemented.
  2688. </Para>
  2689. </Sect2>
  2690. <Sect2><Title>TQMutexLocker (TQt v3.1+)</Title>
  2691. <Para>
  2692. <Literal>TQMutexLocker</Literal> is fully implemented.
  2693. </Para>
  2694. </Sect2>
  2695. <Sect2><Title>TQNetworkOperation (TQt v2.1+)</Title>
  2696. <Para>
  2697. <Literal>TQNetworkOperation</Literal> is fully implemented.
  2698. </Para>
  2699. </Sect2>
  2700. <Sect2><Title>TQNetworkProtocol (TQt v2.1+)</Title>
  2701. <Para>
  2702. <Literal>TQNetworkProtocol</Literal> is fully implemented.
  2703. </Para>
  2704. </Sect2>
  2705. <Sect2><Title>TQNetworkProtocolFactoryBase (TQt v2.1+)</Title>
  2706. <Para>
  2707. <Literal>TQNetworkProtocolFactoryBase</Literal> is fully implemented.
  2708. </Para>
  2709. </Sect2>
  2710. <Sect2><Title>TQObject</Title>
  2711. <FuncSynopsis>
  2712. <FuncDef>bool <Function>disconnect</Function></FuncDef>
  2713. <ParamDef>const TQObject *<Parameter>receiver</Parameter></ParamDef>
  2714. <ParamDef>const char *<Parameter>member</Parameter> = 0</ParamDef>
  2715. </FuncSynopsis>
  2716. <Para>
  2717. Not yet implemented.
  2718. </Para>
  2719. <FuncSynopsis>
  2720. <FuncDef>bool <Function>disconnect</Function></FuncDef>
  2721. <ParamDef>const char *<Parameter>signal</Parameter> = 0</ParamDef>
  2722. <ParamDef>const TQObject *<Parameter>receiver</Parameter> = 0</ParamDef>
  2723. <ParamDef>const char *<Parameter>member</Parameter> = 0</ParamDef>
  2724. </FuncSynopsis>
  2725. <Para>
  2726. Not yet implemented.
  2727. </Para>
  2728. <FuncSynopsis>
  2729. <FuncDef>static bool <Function>disconnect</Function></FuncDef>
  2730. <ParamDef>const TQObject *<Parameter>sender</Parameter></ParamDef>
  2731. <ParamDef>const char *<Parameter>signal</Parameter></ParamDef>
  2732. <ParamDef>const TQObject *<Parameter>receiver</Parameter></ParamDef>
  2733. <ParamDef>const char *<Parameter>member</Parameter></ParamDef>
  2734. </FuncSynopsis>
  2735. <Para>
  2736. At the moment PyTQt does not support the full behaviour of the corresponding TQt
  2737. method. In particular, specifying None (ie. 0 in C++) for the
  2738. <Literal>signal</Literal> and <Literal>receiver</Literal> parameters is not yet
  2739. supported.
  2740. </Para>
  2741. </Sect2>
  2742. <Sect2><Title>TQObjectCleanupHandler (TQt v3+)</Title>
  2743. <Para>
  2744. <Literal>TQObjectCleanupHandler</Literal> is fully implemented.
  2745. </Para>
  2746. </Sect2>
  2747. <Sect2><Title>TQObjectList</Title>
  2748. <Para>
  2749. This class isn't implemented. Whenever a <Literal>TQObjectList</Literal> is the
  2750. return type of a function or the type of an argument, a Python list of
  2751. <Literal>TQObject</Literal> instances is used instead.
  2752. </Para>
  2753. </Sect2>
  2754. <Sect2><Title>TQPaintDeviceMetrics</Title>
  2755. <Para>
  2756. <Literal>TQPaintDeviceMetrics</Literal> is fully implemented.
  2757. </Para>
  2758. </Sect2>
  2759. <Sect2><Title>TQPaintDevice</Title>
  2760. <FuncSynopsis>
  2761. <FuncDef>virtual bool <Function>cmd</Function></FuncDef>
  2762. <ParamDef>int</ParamDef>
  2763. <ParamDef>TQPainter *</ParamDef>
  2764. <ParamDef>TQPDevCmdParam *</ParamDef>
  2765. </FuncSynopsis>
  2766. <Para>
  2767. Not implemented.
  2768. </Para>
  2769. </Sect2>
  2770. <Sect2><Title>TQPainter</Title>
  2771. <FuncSynopsis>
  2772. <FuncDef>TQRect <Function>boundingRect</Function></FuncDef>
  2773. <ParamDef>int <Parameter>x</Parameter></ParamDef>
  2774. <ParamDef>int <Parameter>y</Parameter></ParamDef>
  2775. <ParamDef>int <Parameter>w</Parameter></ParamDef>
  2776. <ParamDef>int <Parameter>h</Parameter></ParamDef>
  2777. <ParamDef>int <Parameter>flags</Parameter></ParamDef>
  2778. <ParamDef>const char *<Parameter>str</Parameter></ParamDef>
  2779. <ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
  2780. <ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
  2781. </FuncSynopsis>
  2782. <Para>
  2783. The <Literal>intern</Literal> parameter is not supported.
  2784. </Para>
  2785. <FuncSynopsis>
  2786. <FuncDef>TQRect <Function>boundingRect</Function></FuncDef>
  2787. <ParamDef>const TQRect&</ParamDef>
  2788. <ParamDef>int <Parameter>flags</Parameter></ParamDef>
  2789. <ParamDef>const char *<Parameter>str</Parameter></ParamDef>
  2790. <ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
  2791. <ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
  2792. </FuncSynopsis>
  2793. <Para>
  2794. The <Literal>intern</Literal> parameter is not supported.
  2795. </Para>
  2796. <FuncSynopsis>
  2797. <FuncDef>void <Function>drawText</Function></FuncDef>
  2798. <ParamDef>int <Parameter>x</Parameter></ParamDef>
  2799. <ParamDef>int <Parameter>y</Parameter></ParamDef>
  2800. <ParamDef>int <Parameter>w</Parameter></ParamDef>
  2801. <ParamDef>int <Parameter>h</Parameter></ParamDef>
  2802. <ParamDef>int <Parameter>flags</Parameter></ParamDef>
  2803. <ParamDef>const char *<Parameter>str</Parameter></ParamDef>
  2804. <ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
  2805. <ParamDef>TQRect *<Parameter>br</Parameter> = 0</ParamDef>
  2806. <ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
  2807. </FuncSynopsis>
  2808. <Para>
  2809. The <Literal>intern</Literal> parameter is not supported.
  2810. </Para>
  2811. <FuncSynopsis>
  2812. <FuncDef>void <Function>drawText</Function></FuncDef>
  2813. <ParamDef>const TQRect&</ParamDef>
  2814. <ParamDef>int <Parameter>flags</Parameter></ParamDef>
  2815. <ParamDef>const char *<Parameter>str</Parameter></ParamDef>
  2816. <ParamDef>int <Parameter>len</Parameter> = -1</ParamDef>
  2817. <ParamDef>TQRect *<Parameter>br</Parameter> = 0</ParamDef>
  2818. <ParamDef>char **<Parameter>intern</Parameter> = 0</ParamDef>
  2819. </FuncSynopsis>
  2820. <Para>
  2821. The <Literal>intern</Literal> parameter is not supported.
  2822. </Para>
  2823. <FuncSynopsis>
  2824. <FuncDef>void <Function>setTabArray</Function></FuncDef>
  2825. <ParamDef>int *<Parameter>ta</Parameter></ParamDef>
  2826. </FuncSynopsis>
  2827. <Para>
  2828. This takes a single parameter which is a list of tab stops.
  2829. </Para>
  2830. <FuncSynopsis>
  2831. <FuncDef>int *<Function>tabArray</Function></FuncDef>
  2832. <ParamDef></ParamDef>
  2833. </FuncSynopsis>
  2834. <Para>
  2835. This returns a list of tab stops.
  2836. </Para>
  2837. </Sect2>
  2838. <Sect2><Title>TQPalette</Title>
  2839. <Para>
  2840. <Literal>TQPalette</Literal> is fully implemented, including the Python
  2841. <Literal>==</Literal> and <Literal>!=</Literal> operators.
  2842. </Para>
  2843. </Sect2>
  2844. <Sect2><Title>TQPixmap</Title>
  2845. <FuncSynopsis>
  2846. <FuncDef><Function>TQPixmap</Function></FuncDef>
  2847. <ParamDef>const char *<Parameter>xpm</Parameter>[]</ParamDef>
  2848. </FuncSynopsis>
  2849. <Para>
  2850. This takes a list of strings as its parameter.
  2851. </Para>
  2852. <FuncSynopsis>
  2853. <FuncDef>bool <Function>loadFromData</Function></FuncDef>
  2854. <ParamDef>const uchar *<Parameter>buf</Parameter></ParamDef>
  2855. <ParamDef>uint <Parameter>len</Parameter></ParamDef>
  2856. <ParamDef>const char *<Parameter>format</Parameter> = 0</ParamDef>
  2857. <ParamDef>ColorMode <Parameter>mode</Parameter> = Auto</ParamDef>
  2858. </FuncSynopsis>
  2859. <Para>
  2860. <Literal>len</Literal> is derived from <Literal>buf</Literal> and not passed as
  2861. a parameter.
  2862. </Para>
  2863. <FuncSynopsis>
  2864. <FuncDef>bool <Function>loadFromData</Function></FuncDef>
  2865. <ParamDef>const uchar *<Parameter>buf</Parameter></ParamDef>
  2866. <ParamDef>uint <Parameter>len</Parameter></ParamDef>
  2867. <ParamDef>const char *<Parameter>format</Parameter></ParamDef>
  2868. <ParamDef>int <Parameter>conversion_flags</Parameter></ParamDef>
  2869. </FuncSynopsis>
  2870. <Para>
  2871. Not implemented.
  2872. </Para>
  2873. </Sect2>
  2874. <Sect2><Title>TQPixmapCache (TQt v3+)</Title>
  2875. <Para>
  2876. <Literal>TQPixmapCache</Literal> is fully implemented.
  2877. </Para>
  2878. </Sect2>
  2879. <Sect2><Title>TQPair&lt;type,type&gt; (TQt v3+)</Title>
  2880. <Para>
  2881. Types based on the <Literal>TQPair</Literal> template are automatically
  2882. converted to and from Python tuples of two elements.
  2883. </Para>
  2884. </Sect2>
  2885. <Sect2><Title>TQPen</Title>
  2886. <Para>
  2887. <Literal>TQPen</Literal> is fully implemented, including the Python
  2888. <Literal>==</Literal> and <Literal>!=</Literal> operators.
  2889. </Para>
  2890. </Sect2>
  2891. <Sect2><Title>TQPicture</Title>
  2892. <FuncSynopsis>
  2893. <FuncDef>const char *<Function>data</Function></FuncDef>
  2894. <ParamDef></ParamDef>
  2895. </FuncSynopsis>
  2896. <Para>
  2897. Not implemented.
  2898. </Para>
  2899. <FuncSynopsis>
  2900. <FuncDef>void <Function>setData</Function></FuncDef>
  2901. <ParamDef>const char *<Parameter>data</Parameter></ParamDef>
  2902. <ParamDef>uint <Parameter>size</Parameter></ParamDef>
  2903. </FuncSynopsis>
  2904. <Para>
  2905. <Literal>size</Literal> is derived from <Literal>data</Literal> and not passed
  2906. as a parameter.
  2907. </Para>
  2908. </Sect2>
  2909. <Sect2><Title>TQPlatinumStyle (TQt v2+)</Title>
  2910. <FuncSynopsis>
  2911. <FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
  2912. <ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
  2913. <ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
  2914. <ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
  2915. <ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
  2916. <ParamDef>int &<Parameter>buttonDim</Parameter></ParamDef>
  2917. </FuncSynopsis>
  2918. <Para>
  2919. This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
  2920. <Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
  2921. <Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
  2922. (TQt v2)
  2923. </Para>
  2924. </Sect2>
  2925. <Sect2><Title>TQPoint</Title>
  2926. <Para>
  2927. The Python
  2928. <Literal>+</Literal>, <Literal>+=</Literal>,
  2929. <Literal>-</Literal>, <Literal>-=</Literal>, unary <Literal>-</Literal>,
  2930. <Literal>*</Literal>, <Literal>*=</Literal>,
  2931. <Literal>/</Literal>, <Literal>/=</Literal>,
  2932. <Literal>==</Literal>, <Literal>!=</Literal> and <Literal>__nonzero__</Literal>
  2933. operators are supported.
  2934. </Para>
  2935. <FuncSynopsis>
  2936. <FuncDef>TQCOORD &amp;<Function>rx</Function></FuncDef>
  2937. <ParamDef></ParamDef>
  2938. </FuncSynopsis>
  2939. <Para>
  2940. Not implemented.
  2941. </Para>
  2942. <FuncSynopsis>
  2943. <FuncDef>TQCOORD &amp;<Function>ry</Function></FuncDef>
  2944. <ParamDef></ParamDef>
  2945. </FuncSynopsis>
  2946. <Para>
  2947. Not implemented.
  2948. </Para>
  2949. </Sect2>
  2950. <Sect2><Title>TQPointArray</Title>
  2951. <FuncSynopsis>
  2952. <FuncDef><Function>TQPointArray</Function></FuncDef>
  2953. <ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
  2954. <ParamDef>const TQCOORD *<Parameter>points</Parameter></ParamDef>
  2955. </FuncSynopsis>
  2956. <Para>
  2957. This takes a single parameter which is a list of points.
  2958. </Para>
  2959. <FuncSynopsis>
  2960. <FuncDef>void <Function>point</Function></FuncDef>
  2961. <ParamDef>uint <Parameter>i</Parameter></ParamDef>
  2962. <ParamDef>int *<Parameter>x</Parameter></ParamDef>
  2963. <ParamDef>int *<Parameter>y</Parameter></ParamDef>
  2964. </FuncSynopsis>
  2965. <Para>
  2966. This takes the single parameter <Literal>i</Literal> and returns the
  2967. <Literal>x</Literal> and <Literal>y</Literal> values as a tuple.
  2968. </Para>
  2969. <FuncSynopsis>
  2970. <FuncDef>bool <Function>putPoints</Function></FuncDef>
  2971. <ParamDef>int <Parameter>index</Parameter></ParamDef>
  2972. <ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
  2973. <ParamDef>const TQCOORD *<Parameter>points</Parameter></ParamDef>
  2974. </FuncSynopsis>
  2975. <Para>
  2976. This takes two parameters, <Literal>index</Literal> and a list of points.
  2977. </Para>
  2978. <FuncSynopsis>
  2979. <FuncDef>bool <Function>putPoints</Function></FuncDef>
  2980. <ParamDef>int <Parameter>index</Parameter></ParamDef>
  2981. <ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
  2982. <ParamDef>int <Parameter>firstx</Parameter></ParamDef>
  2983. <ParamDef>int <Parameter>firsty</Parameter></ParamDef>
  2984. <ParamDef>...</ParamDef>
  2985. </FuncSynopsis>
  2986. <Para>
  2987. Not implemented.
  2988. </Para>
  2989. <FuncSynopsis>
  2990. <FuncDef>bool <Function>setPoints</Function></FuncDef>
  2991. <ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
  2992. <ParamDef>const TQCOORD *<Parameter>points</Parameter></ParamDef>
  2993. </FuncSynopsis>
  2994. <Para>
  2995. This takes a single parameter which is a list of points.
  2996. </Para>
  2997. <FuncSynopsis>
  2998. <FuncDef>bool <Function>setPoints</Function></FuncDef>
  2999. <ParamDef>int <Parameter>nPoints</Parameter></ParamDef>
  3000. <ParamDef>int <Parameter>firstx</Parameter></ParamDef>
  3001. <ParamDef>int <Parameter>firsty</Parameter></ParamDef>
  3002. <ParamDef>...</ParamDef>
  3003. </FuncSynopsis>
  3004. <Para>
  3005. Not implemented.
  3006. </Para>
  3007. </Sect2>
  3008. <Sect2><Title>TQPopupMenu</Title>
  3009. <FuncSynopsis>
  3010. <FuncDef>int <Function>exec</Function></FuncDef>
  3011. <ParamDef></ParamDef>
  3012. </FuncSynopsis>
  3013. <Para>
  3014. This has been renamed <Literal>exec_loop</Literal> in Python.
  3015. </Para>
  3016. <Para>
  3017. This method also causes ownership of the underlying C++ menu to be transfered
  3018. to Python. This means that the C++ menu will be deleted when the Python
  3019. wrapper is garbage collected. Although this is a little inconsistent, it
  3020. ensures that the menu is deleted without having to explicity code it using
  3021. <Literal>TQObject.deleteLater()</Literal> or other techniques.
  3022. </Para>
  3023. <FuncSynopsis>
  3024. <FuncDef>int <Function>exec</Function></FuncDef>
  3025. <ParamDef>const TQPoint &<Parameter>pos</Parameter></ParamDef>
  3026. <ParamDef>int <Parameter>indexAtPoint</Parameter> = 0</ParamDef>
  3027. </FuncSynopsis>
  3028. <Para>
  3029. This has been renamed <Literal>exec_loop</Literal> in Python.
  3030. </Para>
  3031. <Para>
  3032. This method also causes ownership of the underlying C++ menu to be transfered
  3033. to Python. This means that the C++ menu will be deleted when the Python
  3034. wrapper is garbage collected. Although this is a little inconsistent, it
  3035. ensures that the menu is deleted without having to explicity code it using
  3036. <Literal>TQObject.deleteLater()</Literal> or other techniques.
  3037. </Para>
  3038. </Sect2>
  3039. <Sect2><Title>TQPrintDialog (X11)</Title>
  3040. <Para>
  3041. <Literal>TQPrintDialog</Literal> is fully implemented.
  3042. </Para>
  3043. </Sect2>
  3044. <Sect2><Title>TQPrinter</Title>
  3045. <Para>
  3046. <Literal>TQPrinter</Literal> is fully implemented.
  3047. </Para>
  3048. </Sect2>
  3049. <Sect2><Title>TQProcess (TQt v3+)</Title>
  3050. <Para>
  3051. <Literal>TQProcess</Literal> is fully implemented.
  3052. </Para>
  3053. </Sect2>
  3054. <Sect2><Title>TQProgressBar</Title>
  3055. <Para>
  3056. <Literal>TQProgressBar</Literal> is fully implemented.
  3057. </Para>
  3058. </Sect2>
  3059. <Sect2><Title>TQProgressDialog</Title>
  3060. <Para>
  3061. <Literal>TQProgressDialog</Literal> is fully implemented.
  3062. value.
  3063. </Para>
  3064. </Sect2>
  3065. <Sect2><Title>TQPtrList&lt;type&gt; (TQt v2+)</Title>
  3066. <Para>
  3067. Types based on the <Literal>TQPtrList</Literal> template are automatically
  3068. converted to and from Python lists of the type.
  3069. </Para>
  3070. </Sect2>
  3071. <Sect2><Title>TQPushButton</Title>
  3072. <Para>
  3073. <Literal>TQPushButton</Literal> is fully implemented.
  3074. </Para>
  3075. </Sect2>
  3076. <Sect2><Title>TQRadioButton</Title>
  3077. <Para>
  3078. <Literal>TQRadioButton</Literal> is fully implemented.
  3079. </Para>
  3080. </Sect2>
  3081. <Sect2><Title>TQRangeControl</Title>
  3082. <Para>
  3083. <Literal>TQRangeControl</Literal> is fully implemented.
  3084. </Para>
  3085. </Sect2>
  3086. <Sect2><Title>TQRect</Title>
  3087. <Para>
  3088. The Python
  3089. <Literal>&amp;</Literal>, <Literal>&amp;=</Literal>,
  3090. <Literal>|</Literal>, <Literal>|=</Literal>,
  3091. <Literal>==</Literal>, <Literal>!=</Literal>, <Literal>in</Literal> and
  3092. <Literal>__nonzero__</Literal> operators are supported.
  3093. </Para>
  3094. <FuncSynopsis>
  3095. <FuncDef>void <Function>coords</Function></FuncDef>
  3096. <ParamDef>int *<Parameter>x1</Parameter></ParamDef>
  3097. <ParamDef>int *<Parameter>y1</Parameter></ParamDef>
  3098. <ParamDef>int *<Parameter>x2</Parameter></ParamDef>
  3099. <ParamDef>int *<Parameter>y2</Parameter></ParamDef>
  3100. </FuncSynopsis>
  3101. <Para>
  3102. This takes no parameters and returns a tuple containing the four values.
  3103. </Para>
  3104. <FuncSynopsis>
  3105. <FuncDef>void <Function>rect</Function></FuncDef>
  3106. <ParamDef>int *<Parameter>x</Parameter></ParamDef>
  3107. <ParamDef>int *<Parameter>y</Parameter></ParamDef>
  3108. <ParamDef>int *<Parameter>w</Parameter></ParamDef>
  3109. <ParamDef>int *<Parameter>h</Parameter></ParamDef>
  3110. </FuncSynopsis>
  3111. <Para>
  3112. This takes no parameters and returns a tuple containing the four values.
  3113. </Para>
  3114. <FuncSynopsis>
  3115. <FuncDef>TQCOORD &amp;<Function>rBottom</Function></FuncDef>
  3116. <ParamDef></ParamDef>
  3117. </FuncSynopsis>
  3118. <Para>
  3119. Not implemented. (TQt v2+)
  3120. </Para>
  3121. <FuncSynopsis>
  3122. <FuncDef>TQCOORD &amp;<Function>rLeft</Function></FuncDef>
  3123. <ParamDef></ParamDef>
  3124. </FuncSynopsis>
  3125. <Para>
  3126. Not implemented. (TQt v2+)
  3127. </Para>
  3128. <FuncSynopsis>
  3129. <FuncDef>TQCOORD &amp;<Function>rRight</Function></FuncDef>
  3130. <ParamDef></ParamDef>
  3131. </FuncSynopsis>
  3132. <Para>
  3133. Not implemented. (TQt v2+)
  3134. </Para>
  3135. <FuncSynopsis>
  3136. <FuncDef>TQCOORD &amp;<Function>rTop</Function></FuncDef>
  3137. <ParamDef></ParamDef>
  3138. </FuncSynopsis>
  3139. <Para>
  3140. Not implemented. (TQt v2+)
  3141. </Para>
  3142. </Sect2>
  3143. <Sect2><Title>TQRegExp</Title>
  3144. <Para>
  3145. The Python <Literal>==</Literal> and <Literal>!=</Literal> operators are
  3146. supported.
  3147. </Para>
  3148. <FuncSynopsis>
  3149. <FuncDef>int <Function>match</Function></FuncDef>
  3150. <ParamDef>const char *<Parameter>str</Parameter></ParamDef>
  3151. <ParamDef>int <Parameter>index</Parameter> = 0</ParamDef>
  3152. <ParamDef>int *<Parameter>len</Parameter> = 0</ParamDef>
  3153. </FuncSynopsis>
  3154. <Para>
  3155. This takes <Literal>str</Literal> and <Literal>index</Literal> parameters and
  3156. returns a tuple of the <Literal>int</Literal> result and the
  3157. <Literal>len</Literal> value. (TQt v1.x)
  3158. </Para>
  3159. <FuncSynopsis>
  3160. <FuncDef>int <Function>match</Function></FuncDef>
  3161. <ParamDef>const TQString &<Parameter>str</Parameter></ParamDef>
  3162. <ParamDef>int <Parameter>index</Parameter> = 0</ParamDef>
  3163. <ParamDef>int *<Parameter>len</Parameter> = 0</ParamDef>
  3164. </FuncSynopsis>
  3165. <Para>
  3166. This takes <Literal>str</Literal> and <Literal>index</Literal> parameters and
  3167. returns a tuple of the <Literal>int</Literal> result and the
  3168. <Literal>len</Literal> value. (TQt v2+)
  3169. </Para>
  3170. </Sect2>
  3171. <Sect2><Title>TQRegion</Title>
  3172. <Para>
  3173. The Python
  3174. <Literal>|</Literal>, <Literal>|=</Literal>,
  3175. <Literal>+</Literal>, <Literal>+=</Literal>,
  3176. <Literal>&amp;</Literal>, <Literal>&amp;=</Literal>,
  3177. <Literal>-</Literal>, <Literal>-=</Literal>,
  3178. <Literal>^</Literal>, <Literal>^=</Literal>,
  3179. <Literal>==</Literal>, <Literal>!=</Literal>, <Literal>in</Literal> and
  3180. <Literal>__nonzero__</Literal> operators are supported.
  3181. </Para>
  3182. <FuncSynopsis>
  3183. <FuncDef>TQArray&lt;TQRect&gt; <Function>rects</Function></FuncDef>
  3184. <ParamDef></ParamDef>
  3185. </FuncSynopsis>
  3186. <Para>
  3187. Not implemented.
  3188. </Para>
  3189. <FuncSynopsis>
  3190. <FuncDef>void <Function>setRects</Function></FuncDef>
  3191. <ParamDef>TQRect *<Parameter>rects</Parameter></ParamDef>
  3192. <ParamDef>int <Parameter>num</Parameter></ParamDef>
  3193. </FuncSynopsis>
  3194. <Para>
  3195. Not yet implemented. (TQt v2.2+)
  3196. </Para>
  3197. </Sect2>
  3198. <Sect2><Title>TQScrollBar</Title>
  3199. <Para>
  3200. <Literal>TQScrollBar</Literal> is fully implemented.
  3201. </Para>
  3202. </Sect2>
  3203. <Sect2><Title>TQScrollView</Title>
  3204. <FuncSynopsis>
  3205. <FuncDef>void <Function>contentsToViewport</Function></FuncDef>
  3206. <ParamDef>int <Parameter>x</Parameter></ParamDef>
  3207. <ParamDef>int <Parameter>y</Parameter></ParamDef>
  3208. <ParamDef>int &<Parameter>vx</Parameter></ParamDef>
  3209. <ParamDef>int &<Parameter>vy</Parameter></ParamDef>
  3210. </FuncSynopsis>
  3211. <Para>
  3212. This takes the <Literal>x</Literal> and <Literal>y</Literal> parameters and
  3213. returns a tuple containing the <Literal>vx</Literal> and <Literal>vy</Literal>
  3214. values. (TQt v2+)
  3215. </Para>
  3216. <FuncSynopsis>
  3217. <FuncDef>void <Function>viewportToContents</Function></FuncDef>
  3218. <ParamDef>int <Parameter>vx</Parameter></ParamDef>
  3219. <ParamDef>int <Parameter>vy</Parameter></ParamDef>
  3220. <ParamDef>int &<Parameter>x</Parameter></ParamDef>
  3221. <ParamDef>int &<Parameter>y</Parameter></ParamDef>
  3222. </FuncSynopsis>
  3223. <Para>
  3224. This takes the <Literal>vx</Literal> and <Literal>vy</Literal> parameters and
  3225. returns a tuple containing the <Literal>x</Literal> and <Literal>y</Literal>
  3226. values. (TQt v2+)
  3227. </Para>
  3228. </Sect2>
  3229. <Sect2><Title>TQSemaphore (TQt v2.2+)</Title>
  3230. <Para>
  3231. <Literal>TQSemaphore</Literal> is fully implemented. The <Literal>+=</Literal>
  3232. and <Literal>-=</Literal> operators have also been implemented, but require
  3233. Python v2.0 or later.
  3234. </Para>
  3235. </Sect2>
  3236. <Sect2><Title>TQSemiModal (TQt v1, v2)</Title>
  3237. <Para>
  3238. <Literal>TQSemiModal</Literal> is fully implemented.
  3239. </Para>
  3240. </Sect2>
  3241. <Sect2><Title>TQSessionManager (TQt v2+)</Title>
  3242. <Para>
  3243. <Literal>TQSessionManager</Literal> is fully implemented.
  3244. </Para>
  3245. </Sect2>
  3246. <Sect2><Title>TQSettings (TQt v3+)</Title>
  3247. <FuncSynopsis>
  3248. <FuncDef>bool <Function>readBoolEntry</Function></FuncDef>
  3249. <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
  3250. <ParamDef>bool <Parameter>def</Parameter> = 0</ParamDef>
  3251. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  3252. </FuncSynopsis>
  3253. <Para>
  3254. The <Literal>ok</Literal> is not passed and the returned value is a tuple of
  3255. the <Literal>bool</Literal> result and the <Literal>ok</Literal> flag.
  3256. </Para>
  3257. <FuncSynopsis>
  3258. <FuncDef>double <Function>readDoubleEntry</Function></FuncDef>
  3259. <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
  3260. <ParamDef>double <Parameter>def</Parameter> = 0</ParamDef>
  3261. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  3262. </FuncSynopsis>
  3263. <Para>
  3264. The <Literal>ok</Literal> is not passed and the returned value is a tuple of
  3265. the <Literal>double</Literal> result and the <Literal>ok</Literal> flag.
  3266. </Para>
  3267. <FuncSynopsis>
  3268. <FuncDef>TQString <Function>readEntry</Function></FuncDef>
  3269. <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
  3270. <ParamDef>const TQString &amp;<Parameter>def</Parameter> = TQString::null</ParamDef>
  3271. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  3272. </FuncSynopsis>
  3273. <Para>
  3274. The <Literal>ok</Literal> is not passed and the returned value is a tuple of
  3275. the <Literal>TQString</Literal> result and the <Literal>ok</Literal> flag.
  3276. </Para>
  3277. <FuncSynopsis>
  3278. <FuncDef>TQStringList <Function>readListEntry</Function></FuncDef>
  3279. <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
  3280. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  3281. </FuncSynopsis>
  3282. <Para>
  3283. The <Literal>ok</Literal> is not passed and the returned value is a tuple of
  3284. the <Literal>TQStringList</Literal> result and the <Literal>ok</Literal> flag.
  3285. </Para>
  3286. <FuncSynopsis>
  3287. <FuncDef>TQStringList <Function>readListEntry</Function></FuncDef>
  3288. <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
  3289. <ParamDef>const TQChar &amp;<Parameter>separator</Parameter></ParamDef>
  3290. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  3291. </FuncSynopsis>
  3292. <Para>
  3293. The <Literal>ok</Literal> is not passed and the returned value is a tuple of
  3294. the <Literal>TQStringList</Literal> result and the <Literal>ok</Literal> flag.
  3295. </Para>
  3296. <FuncSynopsis>
  3297. <FuncDef>int <Function>readNumEntry</Function></FuncDef>
  3298. <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
  3299. <ParamDef>int <Parameter>def</Parameter> = 0</ParamDef>
  3300. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  3301. </FuncSynopsis>
  3302. <Para>
  3303. The <Literal>ok</Literal> is not passed and the returned value is a tuple of
  3304. the <Literal>int</Literal> result and the <Literal>ok</Literal> flag.
  3305. </Para>
  3306. <FuncSynopsis>
  3307. <FuncDef>bool <Function>writeEntry</Function></FuncDef>
  3308. <ParamDef>const TQString &amp;<Parameter>key</Parameter></ParamDef>
  3309. <ParamDef>bool <Parameter>value</Parameter></ParamDef>
  3310. </FuncSynopsis>
  3311. <Para>
  3312. Not implemented.
  3313. </Para>
  3314. </Sect2>
  3315. <Sect2><Title>TQSGIStyle (TQt v2.2+)</Title>
  3316. <FuncSynopsis>
  3317. <FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
  3318. <ParamDef>const TQScrollBar *<Parameter>sb</Parameter></ParamDef>
  3319. <ParamDef>int &amp;<Parameter>sliderMin</Parameter></ParamDef>
  3320. <ParamDef>int &amp;<Parameter>sliderMax</Parameter></ParamDef>
  3321. <ParamDef>int &amp;<Parameter>sliderLength</Parameter></ParamDef>
  3322. <ParamDef>int &amp;<Parameter>buttonDim</Parameter></ParamDef>
  3323. </FuncSynopsis>
  3324. <Para>
  3325. This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
  3326. <Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
  3327. <Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
  3328. (TQt v2)
  3329. </Para>
  3330. </Sect2>
  3331. <Sect2><Title>TQSignalMapper</Title>
  3332. <Para>
  3333. <Literal>TQSignalMapper</Literal> is fully implemented.
  3334. </Para>
  3335. </Sect2>
  3336. <Sect2><Title>TQSimpleRichText (TQt v2+)</Title>
  3337. <Para>
  3338. <Literal>TQSimpleRichText</Literal> is fully implemented.
  3339. </Para>
  3340. </Sect2>
  3341. <Sect2><Title>TQSize</Title>
  3342. <Para>
  3343. The Python
  3344. <Literal>+</Literal>, <Literal>+=</Literal>,
  3345. <Literal>-</Literal>, <Literal>-=</Literal>,
  3346. <Literal>*</Literal>, <Literal>*=</Literal>,
  3347. <Literal>/</Literal>, <Literal>/=</Literal>,
  3348. <Literal>==</Literal>, <Literal>!=</Literal> and <Literal>__nonzero__</Literal>
  3349. operators are supported.
  3350. </Para>
  3351. <FuncSynopsis>
  3352. <FuncDef>TQCOORD &amp;<Function>rheight</Function></FuncDef>
  3353. <ParamDef></ParamDef>
  3354. </FuncSynopsis>
  3355. <Para>
  3356. Not implemented.
  3357. </Para>
  3358. <FuncSynopsis>
  3359. <FuncDef>TQCOORD &amp;<Function>rwidth</Function></FuncDef>
  3360. <ParamDef></ParamDef>
  3361. </FuncSynopsis>
  3362. <Para>
  3363. Not implemented.
  3364. </Para>
  3365. </Sect2>
  3366. <Sect2><Title>TQSizeGrip (TQt v2+)</Title>
  3367. <Para>
  3368. <Literal>TQSizeGrip</Literal> is fully implemented.
  3369. </Para>
  3370. </Sect2>
  3371. <Sect2><Title>TQSizePolicy (TQt v2+)</Title>
  3372. <Para>
  3373. <Literal>TQSizePolicy</Literal> is fully implemented.
  3374. </Para>
  3375. </Sect2>
  3376. <Sect2><Title>TQSlider</Title>
  3377. <Para>
  3378. <Literal>TQSlider</Literal> is fully implemented.
  3379. </Para>
  3380. </Sect2>
  3381. <Sect2><Title>TQSocketNotifier</Title>
  3382. <Para>
  3383. <Literal>TQSocketNotifier</Literal> is fully implemented.
  3384. </Para>
  3385. </Sect2>
  3386. <Sect2><Title>TQSound (TQt v2.2+)</Title>
  3387. <Para>
  3388. <Literal>TQSound</Literal> is fully implemented.
  3389. </Para>
  3390. </Sect2>
  3391. <Sect2><Title>TQSpinBox</Title>
  3392. <FuncSynopsis>
  3393. <FuncDef>virtual int <Function>mapTextToValue</Function></FuncDef>
  3394. <ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
  3395. </FuncSynopsis>
  3396. <Para>
  3397. This returns a tuple of the <Literal>int</Literal> result and the modified
  3398. <Literal>ok</Literal> value.
  3399. </Para>
  3400. </Sect2>
  3401. <Sect2><Title>TQSplashScreen (TQt v3.2.0+)</Title>
  3402. <Para>
  3403. <Literal>TQSplashScreen</Literal> is fully implemented.
  3404. </Para>
  3405. </Sect2>
  3406. <Sect2><Title>TQSplitter</Title>
  3407. <FuncSynopsis>
  3408. <FuncDef>void <Function>getRange</Function></FuncDef>
  3409. <ParamDef>int <Parameter>id</Parameter></ParamDef>
  3410. <ParamDef>int *<Parameter>min</Parameter></ParamDef>
  3411. <ParamDef>int *<Parameter>max</Parameter></ParamDef>
  3412. </FuncSynopsis>
  3413. <Para>
  3414. This takes the <Literal>id</Literal> parameter and returns the
  3415. <Literal>min</Literal> and <Literal>max</Literal> values as a tuple. (TQt v2+)
  3416. </Para>
  3417. </Sect2>
  3418. <Sect2><Title>TQStatusBar</Title>
  3419. <Para>
  3420. <Literal>TQStatusBar</Literal> is fully implemented.
  3421. </Para>
  3422. </Sect2>
  3423. <Sect2><Title>TQChar (TQt v2+)</Title>
  3424. <FuncSynopsis>
  3425. <FuncDef>uchar &<Function>cell</Function> const</FuncDef>
  3426. <ParamDef></ParamDef>
  3427. </FuncSynopsis>
  3428. <Para>
  3429. Not implemented.
  3430. </Para>
  3431. <FuncSynopsis>
  3432. <FuncDef>uchar &<Function>row</Function> const</FuncDef>
  3433. <ParamDef></ParamDef>
  3434. </FuncSynopsis>
  3435. <Para>
  3436. Not implemented.
  3437. </Para>
  3438. </Sect2>
  3439. <Sect2><Title>TQString</Title>
  3440. <Para>
  3441. A Python string object (or Unicode object) can be used whenever a
  3442. <Literal>TQString</Literal> can be used. A <Literal>TQString</Literal> can be
  3443. converted to a Python string object using the Python <Literal>str()</Literal>
  3444. function, and to a Python Unicode object using the Python
  3445. <Literal>unicode()</Literal> function.
  3446. </Para>
  3447. <Para>
  3448. The Python <Literal>+</Literal>, <Literal>+=</Literal>, <Literal>*</Literal>,
  3449. <Literal>*=</Literal>, <Literal>len</Literal>, <Literal>[]</Literal>
  3450. (for reading slices and individual characters), <Literal>in</Literal> and
  3451. comparison operators are supported.
  3452. </Para>
  3453. <FuncSynopsis>
  3454. <FuncDef>TQCharRef <Function>at</Function></FuncDef>
  3455. <ParamDef>uint <Parameter>i</Parameter></ParamDef>
  3456. </FuncSynopsis>
  3457. <Para>
  3458. Not yet implemented. (TQt v2+)
  3459. </Para>
  3460. <FuncSynopsis>
  3461. <FuncDef>TQChar <Function>constref</Function> const</FuncDef>
  3462. <ParamDef>uint <Parameter>i</Parameter></ParamDef>
  3463. </FuncSynopsis>
  3464. <Para>
  3465. Not yet implemented. (TQt v2+)
  3466. </Para>
  3467. <FuncSynopsis>
  3468. <FuncDef>TQChar &<Function>ref</Function></FuncDef>
  3469. <ParamDef>uint <Parameter>i</Parameter></ParamDef>
  3470. </FuncSynopsis>
  3471. <Para>
  3472. Not yet implemented. (TQt v2+)
  3473. </Para>
  3474. <FuncSynopsis>
  3475. <FuncDef>TQString &<Function>setUnicodeCodes</Function></FuncDef>
  3476. <ParamDef>const ushort *<Parameter>unicode_as_shorts</Parameter></ParamDef>
  3477. <ParamDef>uint <Parameter>len</Parameter></ParamDef>
  3478. </FuncSynopsis>
  3479. <Para>
  3480. Not yet implemented. (TQt v2.1+)
  3481. </Para>
  3482. <FuncSynopsis>
  3483. <FuncDef>TQString &<Function>sprintf</Function></FuncDef>
  3484. <ParamDef>const char *<Parameter>format</Parameter></ParamDef>
  3485. <ParamDef>...</ParamDef>
  3486. </FuncSynopsis>
  3487. <Para>
  3488. Not implemented.
  3489. </Para>
  3490. <FuncSynopsis>
  3491. <FuncDef>short <Function>toShort</Function></FuncDef>
  3492. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  3493. </FuncSynopsis>
  3494. <Para>
  3495. This returns a tuple of the <Literal>short</Literal> result and the
  3496. <Literal>ok</Literal> value.
  3497. </Para>
  3498. <FuncSynopsis>
  3499. <FuncDef>ushort <Function>toUShort</Function></FuncDef>
  3500. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  3501. </FuncSynopsis>
  3502. <Para>
  3503. This returns a tuple of the <Literal>ushort</Literal> result and the
  3504. <Literal>ok</Literal> value.
  3505. </Para>
  3506. <FuncSynopsis>
  3507. <FuncDef>int <Function>toInt</Function></FuncDef>
  3508. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  3509. </FuncSynopsis>
  3510. <Para>
  3511. This returns a tuple of the <Literal>int</Literal> result and the
  3512. <Literal>ok</Literal> value.
  3513. </Para>
  3514. <FuncSynopsis>
  3515. <FuncDef>uint <Function>toUInt</Function></FuncDef>
  3516. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  3517. </FuncSynopsis>
  3518. <Para>
  3519. This returns a tuple of the <Literal>uint</Literal> result and the
  3520. <Literal>ok</Literal> value.
  3521. </Para>
  3522. <FuncSynopsis>
  3523. <FuncDef>long <Function>toLong</Function></FuncDef>
  3524. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  3525. </FuncSynopsis>
  3526. <Para>
  3527. This returns a tuple of the <Literal>long</Literal> result and the
  3528. <Literal>ok</Literal> value.
  3529. </Para>
  3530. <FuncSynopsis>
  3531. <FuncDef>ulong <Function>toULong</Function></FuncDef>
  3532. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  3533. </FuncSynopsis>
  3534. <Para>
  3535. This returns a tuple of the <Literal>ulong</Literal> result and the
  3536. <Literal>ok</Literal> value.
  3537. </Para>
  3538. <FuncSynopsis>
  3539. <FuncDef>float <Function>toFloat</Function></FuncDef>
  3540. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  3541. </FuncSynopsis>
  3542. <Para>
  3543. This returns a tuple of the <Literal>float</Literal> result and the
  3544. <Literal>ok</Literal> value.
  3545. </Para>
  3546. <FuncSynopsis>
  3547. <FuncDef>double <Function>toDouble</Function></FuncDef>
  3548. <ParamDef>bool *<Parameter>ok</Parameter> = 0</ParamDef>
  3549. </FuncSynopsis>
  3550. <Para>
  3551. This returns a tuple of the <Literal>double</Literal> result and the
  3552. <Literal>ok</Literal> value.
  3553. </Para>
  3554. </Sect2>
  3555. <Sect2><Title>TQStringList (TQt v2+)</Title>
  3556. <Para>
  3557. The Python <Literal>len</Literal>, <Literal>[]</Literal> (for both reading and
  3558. writing slices and individual elements), <Literal>del</Literal> (for deleting
  3559. slices and individual elements), <Literal>+</Literal>, <Literal>+=</Literal>,
  3560. <Literal>*</Literal>, <Literal>*=</Literal>, <Literal>==</Literal>,
  3561. <Literal>!=</Literal> and <Literal>in</Literal> operators are supported.
  3562. </Para>
  3563. <FuncSynopsis>
  3564. <FuncDef>Iterator <Function>append</Function></FuncDef>
  3565. <ParamDef>const TQString &<Parameter>x</Parameter></ParamDef>
  3566. </FuncSynopsis>
  3567. <Para>
  3568. This does not return a value.
  3569. </Para>
  3570. <FuncSynopsis>
  3571. <FuncDef>Iterator <Function>prepend</Function></FuncDef>
  3572. <ParamDef>const TQString &<Parameter>x</Parameter></ParamDef>
  3573. </FuncSynopsis>
  3574. <Para>
  3575. This does not return a value.
  3576. </Para>
  3577. </Sect2>
  3578. <Sect2><Title>TQStrList</Title>
  3579. <Para>
  3580. This class isn't implemented. Whenever a <Literal>TQStrList</Literal> is the
  3581. return type of a function or the type of an argument, a Python list of strings
  3582. is used instead.
  3583. </Para>
  3584. </Sect2>
  3585. <Sect2><Title>TQStyle (TQt v2+)</Title>
  3586. <FuncSynopsis>
  3587. <FuncDef>virtual void <Function>getButtonShift</Function></FuncDef>
  3588. <ParamDef>int &amp;<Parameter>x</Parameter></ParamDef>
  3589. <ParamDef>int &amp;<Parameter>y</Parameter></ParamDef>
  3590. </FuncSynopsis>
  3591. <Para>
  3592. This takes no parameters and returns a tuple of the <Literal>x</Literal> and
  3593. <Literal>y</Literal> values. (TQt v2)
  3594. </Para>
  3595. <FuncSynopsis>
  3596. <FuncDef>virtual void <Function>scrollBarMetrics</Function></FuncDef>
  3597. <ParamDef>const TQScrollBar *<Parameter>b</Parameter></ParamDef>
  3598. <ParamDef>int &amp;<Parameter>sliderMin</Parameter></ParamDef>
  3599. <ParamDef>int &amp;<Parameter>sliderMax</Parameter></ParamDef>
  3600. <ParamDef>int &amp;<Parameter>sliderLength</Parameter></ParamDef>
  3601. <ParamDef>int &amp;<Parameter>buttonDim</Parameter></ParamDef>
  3602. </FuncSynopsis>
  3603. <Para>
  3604. Thus takes only the <Literal>b</Literal> parameter and returns a tuple of the
  3605. <Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
  3606. <Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
  3607. (TQt v2)
  3608. </Para>
  3609. <FuncSynopsis>
  3610. <FuncDef>virtual void <Function>tabbarMetrics</Function></FuncDef>
  3611. <ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
  3612. <ParamDef>int &amp;<Parameter>hframe</Parameter></ParamDef>
  3613. <ParamDef>int &amp;<Parameter>vframe</Parameter></ParamDef>
  3614. <ParamDef>int &amp;<Parameter>overlap</Parameter></ParamDef>
  3615. </FuncSynopsis>
  3616. <Para>
  3617. This takes only the <Literal>t</Literal> parameter and returns a tuple of the
  3618. <Literal>hframe</Literal>, <Literal>vframe</Literal> and
  3619. <Literal>overlap</Literal> values. (TQt v2)
  3620. </Para>
  3621. </Sect2>
  3622. <Sect2><Title>TQStyleOption (TQt v3+)</Title>
  3623. <Para>
  3624. <Literal>TQStyleOption</Literal> is fully implemented.
  3625. </Para>
  3626. </Sect2>
  3627. <Sect2><Title>TQStyleSheet (TQt v2+)</Title>
  3628. <Para>
  3629. <Literal>TQStyleSheet</Literal> is fully implemented.
  3630. </Para>
  3631. </Sect2>
  3632. <Sect2><Title>TQStyleSheetItem (TQt v2+)</Title>
  3633. <Para>
  3634. <Literal>TQStyleSheetItem</Literal> is fully implemented.
  3635. </Para>
  3636. </Sect2>
  3637. <Sect2><Title>TQSyntaxHighlighter (TQt v3.1+)</Title>
  3638. <Para>
  3639. <Literal>TQSyntaxHighlighter</Literal> is fully implemented.
  3640. </Para>
  3641. </Sect2>
  3642. <Sect2><Title>TQTab</Title>
  3643. <Para>
  3644. <Literal>TQTab</Literal> is fully implemented.
  3645. </Para>
  3646. </Sect2>
  3647. <Sect2><Title>TQTabBar</Title>
  3648. <FuncSynopsis>
  3649. <FuncDef>TQList&lt;TQTab&gt; <Function>tabList</Function></FuncDef>
  3650. <ParamDef></ParamDef>
  3651. </FuncSynopsis>
  3652. <Para>
  3653. This returns a list of <Literal>TQTab</Literal> instances.
  3654. </Para>
  3655. </Sect2>
  3656. <Sect2><Title>TQTabDialog</Title>
  3657. <Para>
  3658. <Literal>TQTabDialog</Literal> is fully implemented.
  3659. </Para>
  3660. </Sect2>
  3661. <Sect2><Title>TQTableView (TQt 1.x, TQt 2.x)</Title>
  3662. <FuncSynopsis>
  3663. <FuncDef>bool <Function>colXPos</Function></FuncDef>
  3664. <ParamDef>int <Parameter>col</Parameter></ParamDef>
  3665. <ParamDef>int *<Parameter>xPos</Parameter></ParamDef>
  3666. </FuncSynopsis>
  3667. <Para>
  3668. This takes the <Literal>col</Literal> parameter and returns a tuple containing
  3669. the <Literal>bool</Literal> result and <Literal>xPos</Literal>.
  3670. </Para>
  3671. <FuncSynopsis>
  3672. <FuncDef>bool <Function>rowYPos</Function></FuncDef>
  3673. <ParamDef>int <Parameter>row</Parameter></ParamDef>
  3674. <ParamDef>int *<Parameter>yPos</Parameter></ParamDef>
  3675. </FuncSynopsis>
  3676. <Para>
  3677. This takes the <Literal>row</Literal> parameter and returns a tuple containing
  3678. the <Literal>bool</Literal> result and <Literal>yPos</Literal>.
  3679. </Para>
  3680. </Sect2>
  3681. <Sect2><Title>TQTabWidget (TQt v2+)</Title>
  3682. <Para>
  3683. <Literal>TQTabWidget</Literal> is fully implemented.
  3684. </Para>
  3685. </Sect2>
  3686. <Sect2><Title>TQTextBrowser (TQt v2+)</Title>
  3687. <Para>
  3688. <Literal>TQTextBrowser</Literal> is fully implemented.
  3689. </Para>
  3690. </Sect2>
  3691. <Sect2><Title>TQTextCodec (TQt v2+)</Title>
  3692. <FuncSynopsis>
  3693. <FuncDef>virtual TQCString <Function>fromUnicode</Function></FuncDef>
  3694. <ParamDef>const TQString &amp;<Parameter>uc</Parameter></ParamDef>
  3695. <ParamDef>int &amp;<Parameter>lenInOut</Parameter></ParamDef>
  3696. </FuncSynopsis>
  3697. <Para>
  3698. The returned value is a tuple of the <Literal>TQCString</Literal> result and the
  3699. updated <Literal>lenInOut</Literal>.
  3700. </Para>
  3701. </Sect2>
  3702. <Sect2><Title>TQTextDecoder (TQt v2+)</Title>
  3703. <Para>
  3704. <Literal>TQTextDecoder</Literal> is fully implemented.
  3705. </Para>
  3706. </Sect2>
  3707. <Sect2><Title>TQTextEncoder (TQt v2+)</Title>
  3708. <FuncSynopsis>
  3709. <FuncDef>virtual TQCString <Function>fromUnicode</Function> = 0</FuncDef>
  3710. <ParamDef>const TQString &amp;<Parameter>uc</Parameter></ParamDef>
  3711. <ParamDef>int &amp;<Parameter>lenInOut</Parameter></ParamDef>
  3712. </FuncSynopsis>
  3713. <Para>
  3714. The returned value is a tuple of the <Literal>TQCString</Literal> result and the
  3715. updated <Literal>lenInOut</Literal>.
  3716. </Para>
  3717. </Sect2>
  3718. <Sect2><Title>TQTextEdit (TQt v3+)</Title>
  3719. <FuncSynopsis>
  3720. <FuncDef>int <Function>charAt</Function></FuncDef>
  3721. <ParamDef>const TQPoint &amp;<Parameter>pos</Parameter></ParamDef>
  3722. <ParamDef>int *<Parameter>para</Parameter> = 0</ParamDef>
  3723. </FuncSynopsis>
  3724. <Para>
  3725. This takes only the <Literal>pos</Literal> parameter and returns a tuple of the
  3726. value returned via the <Literal>para</Literal> pointer and the int result.
  3727. </Para>
  3728. <FuncSynopsis>
  3729. <FuncDef>void <Function>del</Function></FuncDef>
  3730. <ParamDef></ParamDef>
  3731. </FuncSynopsis>
  3732. <Para>
  3733. This has been renamed <Literal>delChar</Literal> in Python.
  3734. </Para>
  3735. <FuncSynopsis>
  3736. <FuncDef>virtual bool <Function>find</Function></FuncDef>
  3737. <ParamDef>const TQString &amp;<Parameter>expr</Parameter></ParamDef>
  3738. <ParamDef>bool <Parameter>cs</Parameter></ParamDef>
  3739. <ParamDef>bool <Parameter>wo</Parameter></ParamDef>
  3740. <ParamDef>bool <Parameter>forward</Parameter> = TRUE</ParamDef>
  3741. <ParamDef>int *<Parameter>para</Parameter> = 0</ParamDef>
  3742. <ParamDef>int *<Parameter>index</Parameter> = 0</ParamDef>
  3743. </FuncSynopsis>
  3744. <Para>
  3745. If the <Literal>para</Literal> and <Literal>index</Literal> parameters are
  3746. omitted then the bool result is returned. If both are supplied (as integers)
  3747. then a tuple of the bool result and the modified values of
  3748. <Literal>para</Literal> and <Literal>index</Literal> is returned.
  3749. </Para>
  3750. <FuncSynopsis>
  3751. <FuncDef>void <Function>getCursorPosition</Function></FuncDef>
  3752. <ParamDef>int *<Parameter>para</Parameter></ParamDef>
  3753. <ParamDef>int *<Parameter>index</Parameter></ParamDef>
  3754. </FuncSynopsis>
  3755. <Para>
  3756. This takes no parameters and returns a tuple of the values returned via the
  3757. <Literal>para</Literal> and <Literal>index</Literal> pointers.
  3758. </Para>
  3759. <FuncSynopsis>
  3760. <FuncDef>void <Function>getSelection</Function></FuncDef>
  3761. <ParamDef>int *<Parameter>paraFrom</Parameter></ParamDef>
  3762. <ParamDef>int *<Parameter>indexFrom</Parameter></ParamDef>
  3763. <ParamDef>int *<Parameter>paraTo</Parameter></ParamDef>
  3764. <ParamDef>int *<Parameter>indexTo</Parameter></ParamDef>
  3765. <ParamDef>int <Parameter>selNum</Parameter> = 0</ParamDef>
  3766. </FuncSynopsis>
  3767. <Para>
  3768. This takes only the <Literal>selNum</Literal> parameter and returns a tuple of
  3769. the <Literal>paraFrom</Literal>, <Literal>indexFrom</Literal>,
  3770. <Literal>paraTo</Literal> and <Literal>indexTo</Literal> values.
  3771. </Para>
  3772. </Sect2>
  3773. <Sect2><Title>TQTextStream</Title>
  3774. <FuncSynopsis>
  3775. <FuncDef><Function>TQTextStream</Function></FuncDef>
  3776. <ParamDef>FILE *<Parameter>fp</Parameter></ParamDef>
  3777. <ParamDef>int <Parameter>mode</Parameter></ParamDef>
  3778. </FuncSynopsis>
  3779. <Para>
  3780. Not implemented.
  3781. </Para>
  3782. <FuncSynopsis>
  3783. <FuncDef>TQTextStream &<Function>readRawBytes</Function></FuncDef>
  3784. <ParamDef>char *<Parameter>buf</Parameter></ParamDef>
  3785. <ParamDef>uint <Parameter>len</Parameter></ParamDef>
  3786. </FuncSynopsis>
  3787. <Para>
  3788. Not yet implemented.
  3789. </Para>
  3790. <FuncSynopsis>
  3791. <FuncDef>TQTextStream &<Function>writeRawBytes</Function></FuncDef>
  3792. <ParamDef>const char *<Parameter>buf</Parameter></ParamDef>
  3793. <ParamDef>uint <Parameter>len</Parameter></ParamDef>
  3794. </FuncSynopsis>
  3795. <Para>
  3796. Not yet implemented.
  3797. </Para>
  3798. </Sect2>
  3799. <Sect2><Title>TQTextIStream (TQt v2+)</Title>
  3800. <FuncSynopsis>
  3801. <FuncDef><Function>TQTextIStream</Function></FuncDef>
  3802. <ParamDef>FILE *<Parameter>fp</Parameter></ParamDef>
  3803. <ParamDef>int <Parameter>mode</Parameter></ParamDef>
  3804. </FuncSynopsis>
  3805. <Para>
  3806. Not implemented.
  3807. </Para>
  3808. </Sect2>
  3809. <Sect2><Title>TQTextOStream (TQt v2+)</Title>
  3810. <FuncSynopsis>
  3811. <FuncDef><Function>TQTextOStream</Function></FuncDef>
  3812. <ParamDef>FILE *<Parameter>fp</Parameter></ParamDef>
  3813. <ParamDef>int <Parameter>mode</Parameter></ParamDef>
  3814. </FuncSynopsis>
  3815. <Para>
  3816. Not implemented.
  3817. </Para>
  3818. </Sect2>
  3819. <Sect2><Title>TQTextView (TQt v2+)</Title>
  3820. <Para>
  3821. <Literal>TQTextView</Literal> is fully implemented.
  3822. </Para>
  3823. </Sect2>
  3824. <Sect2><Title>TQThread (TQt v2.2+)</Title>
  3825. <Para>
  3826. <Literal>TQThread</Literal> is fully implemented.
  3827. </Para>
  3828. </Sect2>
  3829. <Sect2><Title>TQTimer</Title>
  3830. <Para>
  3831. <Literal>TQTimer</Literal> is fully implemented.
  3832. </Para>
  3833. </Sect2>
  3834. <Sect2><Title>TQToolBar</Title>
  3835. <Para>
  3836. <Literal>TQToolBar</Literal> is fully implemented.
  3837. </Para>
  3838. </Sect2>
  3839. <Sect2><Title>TQToolBox (TQt v3.2.0+)</Title>
  3840. <Para>
  3841. <Literal>TQToolBox</Literal> is fully implemented.
  3842. </Para>
  3843. </Sect2>
  3844. <Sect2><Title>TQToolButton</Title>
  3845. <Para>
  3846. <Literal>TQToolButton</Literal> is fully implemented.
  3847. </Para>
  3848. </Sect2>
  3849. <Sect2><Title>TQToolTip</Title>
  3850. <Para>
  3851. <Literal>TQToolTip</Literal> is fully implemented.
  3852. </Para>
  3853. </Sect2>
  3854. <Sect2><Title>TQToolTipGroup</Title>
  3855. <Para>
  3856. <Literal>TQToolTipGroup</Literal> is fully implemented.
  3857. </Para>
  3858. </Sect2>
  3859. <Sect2><Title>TQTranslator (TQt v2+)</Title>
  3860. <Para>
  3861. <Literal>TQTranslator</Literal> is fully implemented.
  3862. </Para>
  3863. </Sect2>
  3864. <Sect2><Title>TQTranslatorMessage (TQt v2.2+)</Title>
  3865. <Para>
  3866. <Literal>TQTranslatorMessage</Literal> is fully implemented.
  3867. </Para>
  3868. </Sect2>
  3869. <Sect2><Title>TQUrl (TQt v2.1+)</Title>
  3870. <Para>
  3871. <Literal>TQUrl</Literal> is fully implemented, including the
  3872. <Literal>TQString()</Literal>, <Literal>==</Literal> and <Literal>!=</Literal>
  3873. operators.
  3874. </Para>
  3875. </Sect2>
  3876. <Sect2><Title>TQUrlInfo (TQt v2.1+)</Title>
  3877. <Para>
  3878. <Literal>TQUrlInfo</Literal> is fully implemented.
  3879. </Para>
  3880. </Sect2>
  3881. <Sect2><Title>TQUrlOperator (TQt v2.1+)</Title>
  3882. <FuncSynopsis>
  3883. <FuncDef>virtual bool <Function>isDir</Function></FuncDef>
  3884. <ParamDef>bool *<Parameter>ok</Parameter></ParamDef>
  3885. </FuncSynopsis>
  3886. <Para>
  3887. This returns a tuple of the <Literal>bool</Literal> result and the
  3888. <Literal>ok</Literal> value.
  3889. </Para>
  3890. </Sect2>
  3891. <Sect2><Title>TQUuid (TQt v3.0+)</Title>
  3892. <Para>
  3893. <Literal>TQUuid</Literal> is fully implemented.
  3894. </Para>
  3895. </Sect2>
  3896. <Sect2><Title>TQValidator</Title>
  3897. <FuncSynopsis>
  3898. <FuncDef>virtual State <Function>validate</Function></FuncDef>
  3899. <ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
  3900. <ParamDef>int& <Parameter>pos</Parameter></ParamDef>
  3901. </FuncSynopsis>
  3902. <Para>
  3903. The returned value is a tuple of the <Literal>State</Literal> result and the
  3904. updated <Literal>pos</Literal>.
  3905. </Para>
  3906. </Sect2>
  3907. <Sect2><Title>TQDoubleValidator</Title>
  3908. <FuncSynopsis>
  3909. <FuncDef>State <Function>validate</Function></FuncDef>
  3910. <ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
  3911. <ParamDef>int& <Parameter>pos</Parameter></ParamDef>
  3912. </FuncSynopsis>
  3913. <Para>
  3914. The returned value is a tuple of the <Literal>State</Literal> result and the
  3915. updated <Literal>pos</Literal>.
  3916. </Para>
  3917. </Sect2>
  3918. <Sect2><Title>TQIntValidator</Title>
  3919. <FuncSynopsis>
  3920. <FuncDef>State <Function>validate</Function></FuncDef>
  3921. <ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
  3922. <ParamDef>int& <Parameter>pos</Parameter></ParamDef>
  3923. </FuncSynopsis>
  3924. <Para>
  3925. The returned value is a tuple of the <Literal>State</Literal> result and the
  3926. updated <Literal>pos</Literal>.
  3927. </Para>
  3928. </Sect2>
  3929. <Sect2><Title>TQRegExpValidator (TQt v3+)</Title>
  3930. <FuncSynopsis>
  3931. <FuncDef>virtual State <Function>validate</Function></FuncDef>
  3932. <ParamDef>TQString& <Parameter>input</Parameter></ParamDef>
  3933. <ParamDef>int& <Parameter>pos</Parameter></ParamDef>
  3934. </FuncSynopsis>
  3935. <Para>
  3936. The returned value is a tuple of the <Literal>State</Literal> result and the
  3937. updated <Literal>pos</Literal>.
  3938. </Para>
  3939. </Sect2>
  3940. <Sect2><Title>TQValueList&lt;type&gt; (TQt v2+)</Title>
  3941. <Para>
  3942. Types based on the <Literal>TQValueList</Literal> template are automatically
  3943. converted to and from Python lists of the type.
  3944. </Para>
  3945. </Sect2>
  3946. <Sect2><Title>TQVariant (TQt v2.1+)</Title>
  3947. <FuncSynopsis>
  3948. <FuncDef><Function>TQVariant</Function></FuncDef>
  3949. <ParamDef>const char *<Parameter>val</Parameter></ParamDef>
  3950. </FuncSynopsis>
  3951. <Para>
  3952. Not implemented.
  3953. </Para>
  3954. <FuncSynopsis>
  3955. <FuncDef><Function>TQVariant</Function></FuncDef>
  3956. <ParamDef>const TQBitArray &amp;<Parameter>val</Parameter></ParamDef>
  3957. </FuncSynopsis>
  3958. <Para>
  3959. Not yet implemented. (TQt v3+)
  3960. </Para>
  3961. <FuncSynopsis>
  3962. <FuncDef><Function>TQVariant</Function></FuncDef>
  3963. <ParamDef>const TQValueList&lt;TQVariant&gt; &amp;<Parameter>val</Parameter></ParamDef>
  3964. </FuncSynopsis>
  3965. <Para>
  3966. Not yet implemented.
  3967. </Para>
  3968. <FuncSynopsis>
  3969. <FuncDef><Function>TQVariant</Function></FuncDef>
  3970. <ParamDef>const TQMap&lt;TQString,TQVariant&gt; &amp;<Parameter>val</Parameter></ParamDef>
  3971. </FuncSynopsis>
  3972. <Para>
  3973. Not yet implemented.
  3974. </Para>
  3975. <FuncSynopsis>
  3976. <FuncDef>TQBitArray &amp;<Function>asBitArray</Function></FuncDef>
  3977. <ParamDef></ParamDef>
  3978. </FuncSynopsis>
  3979. <Para>
  3980. Not yet implemented. (TQt v3+)
  3981. </Para>
  3982. <FuncSynopsis>
  3983. <FuncDef>bool &amp;<Function>asBool</Function></FuncDef>
  3984. <ParamDef></ParamDef>
  3985. </FuncSynopsis>
  3986. <Para>
  3987. Not implemented.
  3988. </Para>
  3989. <FuncSynopsis>
  3990. <FuncDef>double &amp;<Function>asDouble</Function></FuncDef>
  3991. <ParamDef></ParamDef>
  3992. </FuncSynopsis>
  3993. <Para>
  3994. Not implemented.
  3995. </Para>
  3996. <FuncSynopsis>
  3997. <FuncDef>int &amp;<Function>asInt</Function></FuncDef>
  3998. <ParamDef></ParamDef>
  3999. </FuncSynopsis>
  4000. <Para>
  4001. Not implemented.
  4002. </Para>
  4003. <FuncSynopsis>
  4004. <FuncDef>TQValueList&lt;TQVariant&gt; &amp;<Function>asList</Function></FuncDef>
  4005. <ParamDef></ParamDef>
  4006. </FuncSynopsis>
  4007. <Para>
  4008. Not implemented.
  4009. </Para>
  4010. <FuncSynopsis>
  4011. <FuncDef>TQMap&lt;TQString,TQVariant&gt; &amp;<Function>asMap</Function></FuncDef>
  4012. <ParamDef></ParamDef>
  4013. </FuncSynopsis>
  4014. <Para>
  4015. Not implemented.
  4016. </Para>
  4017. <FuncSynopsis>
  4018. <FuncDef>uint &amp;<Function>asUInt</Function></FuncDef>
  4019. <ParamDef></ParamDef>
  4020. </FuncSynopsis>
  4021. <Para>
  4022. Not implemented.
  4023. </Para>
  4024. <FuncSynopsis>
  4025. <FuncDef>TQValueListConstIterator&lt;TQVariant&gt;<Function>listBegin</Function> const</FuncDef>
  4026. <ParamDef></ParamDef>
  4027. </FuncSynopsis>
  4028. <Para>
  4029. Not implemented.
  4030. </Para>
  4031. <FuncSynopsis>
  4032. <FuncDef>TQValueListConstIterator&lt;TQVariant&gt;<Function>listEnd</Function> const</FuncDef>
  4033. <ParamDef></ParamDef>
  4034. </FuncSynopsis>
  4035. <Para>
  4036. Not implemented.
  4037. </Para>
  4038. <FuncSynopsis>
  4039. <FuncDef>TQMapConstIterator&lt;TQString,TQVariant&gt;<Function>mapBegin</Function> const</FuncDef>
  4040. <ParamDef></ParamDef>
  4041. </FuncSynopsis>
  4042. <Para>
  4043. Not implemented.
  4044. </Para>
  4045. <FuncSynopsis>
  4046. <FuncDef>TQMapConstIterator&lt;TQString,TQVariant&gt;<Function>mapEnd</Function> const</FuncDef>
  4047. <ParamDef></ParamDef>
  4048. </FuncSynopsis>
  4049. <Para>
  4050. Not implemented.
  4051. </Para>
  4052. <FuncSynopsis>
  4053. <FuncDef>TQMapConstIterator&lt;TQString,TQVariant&gt;<Function>mapFind</Function> const</FuncDef>
  4054. <ParamDef>const TQString &<Parameter>key</Parameter></ParamDef>
  4055. </FuncSynopsis>
  4056. <Para>
  4057. Not implemented.
  4058. </Para>
  4059. <FuncSynopsis>
  4060. <FuncDef>TQValueListConstIterator&lt;TQString&gt;<Function>stringListBegin</Function> const</FuncDef>
  4061. <ParamDef></ParamDef>
  4062. </FuncSynopsis>
  4063. <Para>
  4064. Not implemented.
  4065. </Para>
  4066. <FuncSynopsis>
  4067. <FuncDef>TQValueListConstIterator&lt;TQString&gt;<Function>stringListEnd</Function> const</FuncDef>
  4068. <ParamDef></ParamDef>
  4069. </FuncSynopsis>
  4070. <Para>
  4071. Not implemented.
  4072. </Para>
  4073. <FuncSynopsis>
  4074. <FuncDef>const TQBitArray <Function>toBitArray</Function> const</FuncDef>
  4075. <ParamDef></ParamDef>
  4076. </FuncSynopsis>
  4077. <Para>
  4078. Not yet implemented. (TQt v3+)
  4079. </Para>
  4080. <FuncSynopsis>
  4081. <FuncDef>const TQValueList&lt;TQVariant&gt;<Function>toList</Function> const</FuncDef>
  4082. <ParamDef></ParamDef>
  4083. </FuncSynopsis>
  4084. <Para>
  4085. Not yet implemented.
  4086. </Para>
  4087. <FuncSynopsis>
  4088. <FuncDef>const TQMap&lt;TQString,TQVariant&gt;<Function>toMap</Function> const</FuncDef>
  4089. <ParamDef></ParamDef>
  4090. </FuncSynopsis>
  4091. <Para>
  4092. Not yet implemented.
  4093. </Para>
  4094. </Sect2>
  4095. <Sect2><Title>TQVBox (TQt v2+)</Title>
  4096. <Para>
  4097. <Literal>TQVBox</Literal> is fully implemented.
  4098. </Para>
  4099. </Sect2>
  4100. <Sect2><Title>TQVButtonGroup (TQt v2+)</Title>
  4101. <Para>
  4102. <Literal>TQVButtonGroup</Literal> is fully implemented.
  4103. </Para>
  4104. </Sect2>
  4105. <Sect2><Title>TQVGroupBox (TQt v2+)</Title>
  4106. <Para>
  4107. <Literal>TQVGroupBox</Literal> is fully implemented.
  4108. </Para>
  4109. </Sect2>
  4110. <Sect2><Title>TQWaitCondition (TQt v2.2+)</Title>
  4111. <Para>
  4112. <Literal>TQWaitCondition</Literal> is fully implemented.
  4113. </Para>
  4114. </Sect2>
  4115. <Sect2><Title>TQWhatsThis</Title>
  4116. <Para>
  4117. <Literal>TQWhatsThis</Literal> is fully implemented.
  4118. </Para>
  4119. </Sect2>
  4120. <Sect2><Title>TQWidget</Title>
  4121. <FuncSynopsis>
  4122. <FuncDef>TQWExtra *<Function>extraData</Function></FuncDef>
  4123. <ParamDef></ParamDef>
  4124. </FuncSynopsis>
  4125. <Para>
  4126. Not implemented.
  4127. </Para>
  4128. <FuncSynopsis>
  4129. <FuncDef>TQFocusData *<Function>focusData</Function></FuncDef>
  4130. <ParamDef></ParamDef>
  4131. </FuncSynopsis>
  4132. <Para>
  4133. Not implemented.
  4134. </Para>
  4135. <FuncSynopsis>
  4136. <FuncDef>void <Function>lower</Function></FuncDef>
  4137. <ParamDef></ParamDef>
  4138. </FuncSynopsis>
  4139. <Para>
  4140. This has been renamed to <Literal>lowerW</Literal> in Python.
  4141. </Para>
  4142. <FuncSynopsis>
  4143. <FuncDef>void <Function>raise</Function></FuncDef>
  4144. <ParamDef></ParamDef>
  4145. </FuncSynopsis>
  4146. <Para>
  4147. This has been renamed to <Literal>raiseW</Literal> in Python.
  4148. </Para>
  4149. </Sect2>
  4150. <Sect2><Title>TQWidgetList</Title>
  4151. <Para>
  4152. This class isn't implemented. Whenever a <Literal>TQWidgetList</Literal> is the
  4153. return type of a function or the type of an argument, a Python list of
  4154. instances is used instead.
  4155. </Para>
  4156. </Sect2>
  4157. <Sect2><Title>TQWidgetStack</Title>
  4158. <Para>
  4159. <Literal>TQWidgetStack</Literal> is fully implemented.
  4160. </Para>
  4161. </Sect2>
  4162. <Sect2><Title>TQWindow</Title>
  4163. <Para>
  4164. <Literal>TQWindow</Literal> is fully implemented (TQt v1.x).
  4165. </Para>
  4166. </Sect2>
  4167. <Sect2><Title>TQWindowsStyle (TQt v2+)</Title>
  4168. <FuncSynopsis>
  4169. <FuncDef>void <Function>getButtonShift</Function></FuncDef>
  4170. <ParamDef>int &<Parameter>x</Parameter></ParamDef>
  4171. <ParamDef>int &<Parameter>y</Parameter></ParamDef>
  4172. </FuncSynopsis>
  4173. <Para>
  4174. This takes no parameters and returns a tuple of the <Literal>x</Literal> and
  4175. <Literal>y</Literal> values. (TQt v2)
  4176. </Para>
  4177. <FuncSynopsis>
  4178. <FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
  4179. <ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
  4180. <ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
  4181. <ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
  4182. <ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
  4183. <ParamDef>int &<Parameter>buttonDim</Parameter></ParamDef>
  4184. </FuncSynopsis>
  4185. <Para>
  4186. This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
  4187. <Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
  4188. <Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
  4189. (TQt v2)
  4190. </Para>
  4191. <FuncSynopsis>
  4192. <FuncDef>void <Function>tabbarMetrics</Function></FuncDef>
  4193. <ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
  4194. <ParamDef>int &<Parameter>hframe</Parameter></ParamDef>
  4195. <ParamDef>int &<Parameter>vframe</Parameter></ParamDef>
  4196. <ParamDef>int &<Parameter>overlap</Parameter></ParamDef>
  4197. </FuncSynopsis>
  4198. <Para>
  4199. This takes only the <Literal>t</Literal> parameter and returns a tuple of the
  4200. <Literal>hframe</Literal>, <Literal>vframe</Literal> and
  4201. <Literal>overlap</Literal> values. (TQt v2)
  4202. </Para>
  4203. </Sect2>
  4204. <Sect2><Title>TQWindowsXPStyle (TQt v3.0.1+, Windows)</Title>
  4205. <Para>
  4206. <Literal>TQWindowsXPStyle</Literal> is fully implemented.
  4207. </Para>
  4208. </Sect2>
  4209. <Sect2><Title>TQWizard (TQt v2+)</Title>
  4210. <Para>
  4211. <Literal>TQWizard</Literal> is fully implemented.
  4212. </Para>
  4213. </Sect2>
  4214. <Sect2><Title>TQWMatrix</Title>
  4215. <Para>
  4216. The Python <Literal>==</Literal>, <Literal>!=</Literal> and
  4217. <Literal>*=</Literal> operators are supported.
  4218. </Para>
  4219. <FuncSynopsis>
  4220. <FuncDef>TQWMatrix <Function>invert</Function> const</FuncDef>
  4221. <ParamDef>bool *<Parameter>invertible</Parameter> = 0</ParamDef>
  4222. </FuncSynopsis>
  4223. <Para>
  4224. This takes no parameters and returns a tuple of the <Literal>TQWMatrix</Literal>
  4225. result and the <Literal>invertible</Literal> value.
  4226. </Para>
  4227. <FuncSynopsis>
  4228. <FuncDef>void <Function>map</Function> const</FuncDef>
  4229. <ParamDef>int <Parameter>x</Parameter></ParamDef>
  4230. <ParamDef>int <Parameter>y</Parameter></ParamDef>
  4231. <ParamDef>int *<Parameter>tx</Parameter></ParamDef>
  4232. <ParamDef>int *<Parameter>ty</Parameter></ParamDef>
  4233. </FuncSynopsis>
  4234. <Para>
  4235. This takes the <Literal>x</Literal> and <Literal>y</Literal> parameters and
  4236. returns a tuple containing the <Literal>tx</Literal> and <Literal>ty</Literal>
  4237. values.
  4238. </Para>
  4239. <FuncSynopsis>
  4240. <FuncDef>void <Function>map</Function> const</FuncDef>
  4241. <ParamDef>float <Parameter>x</Parameter></ParamDef>
  4242. <ParamDef>float <Parameter>y</Parameter></ParamDef>
  4243. <ParamDef>float *<Parameter>tx</Parameter></ParamDef>
  4244. <ParamDef>float *<Parameter>ty</Parameter></ParamDef>
  4245. </FuncSynopsis>
  4246. <Para>
  4247. This takes the <Literal>x</Literal> and <Literal>y</Literal> parameters and
  4248. returns a tuple containing the <Literal>tx</Literal> and <Literal>ty</Literal>
  4249. values. (TQt v1.x)
  4250. </Para>
  4251. <FuncSynopsis>
  4252. <FuncDef>void <Function>map</Function> const</FuncDef>
  4253. <ParamDef>double <Parameter>x</Parameter></ParamDef>
  4254. <ParamDef>double <Parameter>y</Parameter></ParamDef>
  4255. <ParamDef>double *<Parameter>tx</Parameter></ParamDef>
  4256. <ParamDef>double *<Parameter>ty</Parameter></ParamDef>
  4257. </FuncSynopsis>
  4258. <Para>
  4259. This takes the <Literal>x</Literal> and <Literal>y</Literal> parameters and
  4260. returns a tuple containing the <Literal>tx</Literal> and <Literal>ty</Literal>
  4261. values. (TQt v2+)
  4262. </Para>
  4263. </Sect2>
  4264. <Sect2><Title>TQWorkspace (TQt v2.1+)</Title>
  4265. <Para>
  4266. <Literal>TQWorkspace</Literal> is fully implemented.
  4267. </Para>
  4268. </Sect2>
  4269. </Sect1>
  4270. <Sect1><Title><Literal>qtaxcontainer</Literal> Module Reference</Title>
  4271. <Sect2><Title>TQAxBase (Windows, TQt v3+)</Title>
  4272. <FuncSynopsis>
  4273. <FuncDef><Function>TQAxObject</Function></FuncDef>
  4274. <ParamDef>IUnknown *<Parameter>iface</Parameter> = 0</ParamDef>
  4275. </FuncSynopsis>
  4276. <Para>
  4277. Not implemented.
  4278. </Para>
  4279. <FuncSynopsis>
  4280. <FuncDef>long <Function>queryInterface</Function></FuncDef>
  4281. <ParamDef>const TQUuid &amp;<Parameter>uuid</Parameter></ParamDef>
  4282. <ParamDef>void **<Parameter>iface</Parameter></ParamDef>
  4283. </FuncSynopsis>
  4284. <Para>
  4285. Not implemented.
  4286. </Para>
  4287. <FuncSynopsis>
  4288. <FuncDef>PropertyBag <Function>propertyBag</Function> const</FuncDef>
  4289. <ParamDef></ParamDef>
  4290. </FuncSynopsis>
  4291. <Para>
  4292. Not implemented.
  4293. </Para>
  4294. <FuncSynopsis>
  4295. <FuncDef>void <Function>setPropertyBag</Function></FuncDef>
  4296. <ParamDef>const PropertyBag &amp;<Parameter>bag</Parameter></ParamDef>
  4297. </FuncSynopsis>
  4298. <Para>
  4299. Not implemented.
  4300. </Para>
  4301. <FuncSynopsis>
  4302. <FuncDef>unsigned long <Function>registerWeakActiveObject</Function></FuncDef>
  4303. <ParamDef>const TQString &amp;<Parameter>guid</Parameter></ParamDef>
  4304. </FuncSynopsis>
  4305. <Para>
  4306. This is a utility method provided by PyTQt to make it easier to use
  4307. Mark Hammond's <Literal>win32com</Literal> module to manipulate objects
  4308. created by the <Literal>qtaxcontainer</Literal> module.
  4309. </Para>
  4310. <Para>
  4311. The <Literal>RegisterActiveObject()</Literal> COM function is called to
  4312. register the <Literal>TQAxBase</Literal> instance as a weak object with the
  4313. <Literal>guid</Literal> GUID. The revoke handle is returned.
  4314. </Para>
  4315. <FuncSynopsis>
  4316. <FuncDef>static void <Function>revokeActiveObject</Function></FuncDef>
  4317. <ParamDef>unsigned long <Parameter>rhandle</Parameter></ParamDef>
  4318. </FuncSynopsis>
  4319. <Para>
  4320. This is a wrapper around the <Literal>RevokeActiveObject()</Literal> COM
  4321. function and is called to revoke the object registered using
  4322. <Literal>registerWeakActiveObject()</Literal>. <Literal>rhandle</Literal> is
  4323. the revoke handle returned by <Literal>registerWeakActiveObject()</Literal>.
  4324. </Para>
  4325. </Sect2>
  4326. <Sect2><Title>TQAxObject (Windows, TQt v3+)</Title>
  4327. <FuncSynopsis>
  4328. <FuncDef><Function>TQAxObject</Function></FuncDef>
  4329. <ParamDef>IUnknown *<Parameter>iface</Parameter></ParamDef>
  4330. <ParamDef>TQObject *<Parameter>parent</Parameter> = 0</ParamDef>
  4331. <ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
  4332. </FuncSynopsis>
  4333. <Para>
  4334. Not implemented.
  4335. </Para>
  4336. </Sect2>
  4337. <Sect2><Title>TQAxWidget (Windows, TQt v3+)</Title>
  4338. <FuncSynopsis>
  4339. <FuncDef><Function>TQAxWidget</Function></FuncDef>
  4340. <ParamDef>IUnknown *<Parameter>iface</Parameter></ParamDef>
  4341. <ParamDef>TQWidget *<Parameter>parent</Parameter> = 0</ParamDef>
  4342. <ParamDef>const char *<Parameter>name</Parameter> = 0</ParamDef>
  4343. </FuncSynopsis>
  4344. <Para>
  4345. Not implemented.
  4346. </Para>
  4347. </Sect2>
  4348. </Sect1>
  4349. <Sect1><Title><Literal>qtcanvas</Literal> Module Reference</Title>
  4350. <Sect2><Title>TQCanvas (TQt v2.2+)</Title>
  4351. <Para>
  4352. <Literal>TQCanvas</Literal> is fully implemented.
  4353. </Para>
  4354. </Sect2>
  4355. <Sect2><Title>TQCanvasEllipse (TQt v2.2+)</Title>
  4356. <Para>
  4357. <Literal>TQCanvasEllipse</Literal> is fully implemented.
  4358. </Para>
  4359. </Sect2>
  4360. <Sect2><Title>TQCanvasItem (TQt v2.2+)</Title>
  4361. <Para>
  4362. <Literal>TQCanvasItem</Literal> is fully implemented.
  4363. </Para>
  4364. </Sect2>
  4365. <Sect2><Title>TQCanvasItemList (TQt v2.2+)</Title>
  4366. <Para>
  4367. This class isn't implemented. Whenever a <Literal>TQCanvasItemList</Literal> is
  4368. the return type of a function or the type of an argument, a Python list of
  4369. <Literal>TQCanvasItem</Literal> instances is used instead.
  4370. </Para>
  4371. </Sect2>
  4372. <Sect2><Title>TQCanvasLine (TQt v2.2+)</Title>
  4373. <Para>
  4374. <Literal>TQCanvasLine</Literal> is fully implemented.
  4375. </Para>
  4376. </Sect2>
  4377. <Sect2><Title>TQCanvasPixmap (TQt v2.2+)</Title>
  4378. <Para>
  4379. <Literal>TQCanvasPixmap</Literal> is fully implemented.
  4380. </Para>
  4381. </Sect2>
  4382. <Sect2><Title>TQCanvasPixmapArray (TQt v2.2+)</Title>
  4383. <FuncSynopsis>
  4384. <FuncDef><Function>TQPixmapArray</Function></FuncDef>
  4385. <ParamDef>TQList&lt;TQPixmap&gt; <Parameter>pixmaps</Parameter></ParamDef>
  4386. <ParamDef>TQList&lt;TQPoint&gt; <Parameter>hotspots</Parameter></ParamDef>
  4387. </FuncSynopsis>
  4388. <Para>
  4389. The <Literal>pixmaps</Literal> argument is a Python list of TQPixmap instances,
  4390. and the <Literal>hotspots</Literal> argument is a Python list of TQPoint
  4391. instances. (TQt v2.2.0 - TQt v2.3.1)
  4392. </Para>
  4393. <FuncSynopsis>
  4394. <FuncDef><Function>TQPixmapArray</Function></FuncDef>
  4395. <ParamDef>TQValueList&lt;TQPixmap&gt; <Parameter>pixmaps</Parameter></ParamDef>
  4396. <ParamDef>TQPointArray <Parameter>hotspots</Parameter> = TQPointArray()</ParamDef>
  4397. </FuncSynopsis>
  4398. <Para>
  4399. The <Literal>pixmaps</Literal> argument is a Python list of TQPixmap instances.
  4400. (TQt v3+)
  4401. </Para>
  4402. </Sect2>
  4403. <Sect2><Title>TQCanvasPolygon (TQt v2.2+)</Title>
  4404. <Para>
  4405. <Literal>TQCanvasPolygon</Literal> is fully implemented.
  4406. </Para>
  4407. </Sect2>
  4408. <Sect2><Title>TQCanvasPolygonalItem (TQt v2.2+)</Title>
  4409. <Para>
  4410. <Literal>TQCanvasPolygonalItem</Literal> is fully implemented.
  4411. </Para>
  4412. </Sect2>
  4413. <Sect2><Title>TQCanvasRectangle (TQt v2.2+)</Title>
  4414. <Para>
  4415. <Literal>TQCanvasRectangle</Literal> is fully implemented.
  4416. </Para>
  4417. </Sect2>
  4418. <Sect2><Title>TQCanvasSpline (TQt v3.0+)</Title>
  4419. <Para>
  4420. <Literal>TQCanvasSpline</Literal> is fully implemented.
  4421. </Para>
  4422. </Sect2>
  4423. <Sect2><Title>TQCanvasSprite (TQt v2.2+)</Title>
  4424. <Para>
  4425. <Literal>TQCanvasSprite</Literal> is fully implemented.
  4426. </Para>
  4427. </Sect2>
  4428. <Sect2><Title>TQCanvasText (TQt v2.2+)</Title>
  4429. <Para>
  4430. <Literal>TQCanvasText</Literal> is fully implemented.
  4431. </Para>
  4432. </Sect2>
  4433. <Sect2><Title>TQCanvasView (TQt v2.2+)</Title>
  4434. <Para>
  4435. <Literal>TQCanvasView</Literal> is fully implemented.
  4436. </Para>
  4437. </Sect2>
  4438. </Sect1>
  4439. <Sect1><Title><Literal>qtext</Literal> Module Reference</Title>
  4440. <Sect2><Title>QextScintilla</Title>
  4441. <FuncSynopsis>
  4442. <FuncDef>void <Function>getCursorPosition</Function></FuncDef>
  4443. <ParamDef>int *<Parameter>line</Parameter></ParamDef>
  4444. <ParamDef>int *<Parameter>index</Parameter></ParamDef>
  4445. </FuncSynopsis>
  4446. <Para>
  4447. This takes no parameters and returns a tuple of the values returned by the
  4448. <Literal>line</Literal> and <Literal>index</Literal> pointers.
  4449. </Para>
  4450. <FuncSynopsis>
  4451. <FuncDef>void <Function>getSelection</Function></FuncDef>
  4452. <ParamDef>int *<Parameter>lineFrom</Parameter></ParamDef>
  4453. <ParamDef>int *<Parameter>indexFrom</Parameter></ParamDef>
  4454. <ParamDef>int *<Parameter>lineTo</Parameter></ParamDef>
  4455. <ParamDef>int *<Parameter>indexTo</Parameter></ParamDef>
  4456. </FuncSynopsis>
  4457. <Para>
  4458. This takes no parameters and returns a tuple of the values returned by the
  4459. <Literal>lineFrom</Literal>, <Literal>indexFrom</Literal>,
  4460. <Literal>lineTo</Literal> and <Literal>indexTo</Literal> pointers.
  4461. </Para>
  4462. </Sect2>
  4463. <Sect2><Title>QextScintillaAPIs</Title>
  4464. <Para>
  4465. <Literal>QextScintillaAPIs</Literal> is fully implemented.
  4466. </Para>
  4467. </Sect2>
  4468. <Sect2><Title>QextScintillaBase</Title>
  4469. <Para>
  4470. <Literal>QextScintillaBase</Literal> is fully implemented.
  4471. </Para>
  4472. </Sect2>
  4473. <Sect2><Title>QextScintillaCommand</Title>
  4474. <Para>
  4475. <Literal>QextScintillaCommand</Literal> is fully implemented.
  4476. </Para>
  4477. </Sect2>
  4478. <Sect2><Title>QextScintillaCommandSet</Title>
  4479. <Para>
  4480. <Literal>QextScintillaCommandSet</Literal> is fully implemented.
  4481. </Para>
  4482. </Sect2>
  4483. <Sect2><Title>QextScintillaDocument</Title>
  4484. <Para>
  4485. <Literal>QextScintillaDocument</Literal> is fully implemented.
  4486. </Para>
  4487. </Sect2>
  4488. <Sect2><Title>QextScintillaLexer</Title>
  4489. <Para>
  4490. <Literal>QextScintillaLexer</Literal> is fully implemented.
  4491. </Para>
  4492. </Sect2>
  4493. <Sect2><Title>QextScintillaLexerBash (TQScintilla v1.4+)</Title>
  4494. <Para>
  4495. <Literal>QextScintillaLexerBash</Literal> is fully implemented.
  4496. </Para>
  4497. </Sect2>
  4498. <Sect2><Title>QextScintillaLexerBatch (TQScintilla v1.6+)</Title>
  4499. <Para>
  4500. <Literal>QextScintillaLexerBatch</Literal> is fully implemented.
  4501. </Para>
  4502. </Sect2>
  4503. <Sect2><Title>QextScintillaLexerCPP</Title>
  4504. <Para>
  4505. <Literal>QextScintillaLexerCPP</Literal> is fully implemented.
  4506. </Para>
  4507. </Sect2>
  4508. <Sect2><Title>QextScintillaLexerCSharp</Title>
  4509. <Para>
  4510. <Literal>QextScintillaLexerCSharp</Literal> is fully implemented.
  4511. </Para>
  4512. </Sect2>
  4513. <Sect2><Title>QextScintillaLexerCSS (TQScintilla v1.6+)</Title>
  4514. <Para>
  4515. <Literal>QextScintillaLexerCSS</Literal> is fully implemented.
  4516. </Para>
  4517. </Sect2>
  4518. <Sect2><Title>QextScintillaLexerDiff (TQScintilla v1.6+)</Title>
  4519. <Para>
  4520. <Literal>QextScintillaLexerDiff</Literal> is fully implemented.
  4521. </Para>
  4522. </Sect2>
  4523. <Sect2><Title>QextScintillaLexerHTML (TQScintilla v1.1+)</Title>
  4524. <Para>
  4525. <Literal>QextScintillaLexerHTML</Literal> is fully implemented.
  4526. </Para>
  4527. </Sect2>
  4528. <Sect2><Title>QextScintillaLexerIDL</Title>
  4529. <Para>
  4530. <Literal>QextScintillaLexerIDL</Literal> is fully implemented.
  4531. </Para>
  4532. </Sect2>
  4533. <Sect2><Title>QextScintillaLexerJava</Title>
  4534. <Para>
  4535. <Literal>QextScintillaLexerJava</Literal> is fully implemented.
  4536. </Para>
  4537. </Sect2>
  4538. <Sect2><Title>QextScintillaLexerJavaScript</Title>
  4539. <Para>
  4540. <Literal>QextScintillaLexerJavaScript</Literal> is fully implemented.
  4541. </Para>
  4542. </Sect2>
  4543. <Sect2><Title>QextScintillaLexerLua (TQScintilla v1.5+)</Title>
  4544. <Para>
  4545. <Literal>QextScintillaLexerLua</Literal> is fully implemented.
  4546. </Para>
  4547. </Sect2>
  4548. <Sect2><Title>QextScintillaLexerMakefile (TQScintilla v1.6+)</Title>
  4549. <Para>
  4550. <Literal>QextScintillaLexerMakefile</Literal> is fully implemented.
  4551. </Para>
  4552. </Sect2>
  4553. <Sect2><Title>QextScintillaLexerPerl</Title>
  4554. <Para>
  4555. <Literal>QextScintillaLexerPerl</Literal> is fully implemented.
  4556. </Para>
  4557. </Sect2>
  4558. <Sect2><Title>QextScintillaLexerPOV (TQScintilla v1.6+)</Title>
  4559. <Para>
  4560. <Literal>QextScintillaLexerPOV</Literal> is fully implemented.
  4561. </Para>
  4562. </Sect2>
  4563. <Sect2><Title>QextScintillaLexerProperties (TQScintilla v1.6+)</Title>
  4564. <Para>
  4565. <Literal>QextScintillaLexerProperties</Literal> is fully implemented.
  4566. </Para>
  4567. </Sect2>
  4568. <Sect2><Title>QextScintillaLexerPython</Title>
  4569. <Para>
  4570. <Literal>QextScintillaLexerPython</Literal> is fully implemented.
  4571. </Para>
  4572. </Sect2>
  4573. <Sect2><Title>QextScintillaLexerRuby (TQScintilla v1.5+)</Title>
  4574. <Para>
  4575. <Literal>QextScintillaLexerRuby</Literal> is fully implemented.
  4576. </Para>
  4577. </Sect2>
  4578. <Sect2><Title>QextScintillaLexerSQL (TQScintilla v1.1+)</Title>
  4579. <Para>
  4580. <Literal>QextScintillaLexerSQL</Literal> is fully implemented.
  4581. </Para>
  4582. </Sect2>
  4583. <Sect2><Title>QextScintillaLexerTeX (TQScintilla v1.6+)</Title>
  4584. <Para>
  4585. <Literal>QextScintillaLexerTeX</Literal> is fully implemented.
  4586. </Para>
  4587. </Sect2>
  4588. <Sect2><Title>QextScintillaMacro</Title>
  4589. <Para>
  4590. <Literal>QextScintillaMacro</Literal> is fully implemented.
  4591. </Para>
  4592. </Sect2>
  4593. <Sect2><Title>QextScintillaPrinter</Title>
  4594. <Para>
  4595. <Literal>QextScintillaPrinter</Literal> is fully implemented.
  4596. </Para>
  4597. </Sect2>
  4598. </Sect1>
  4599. <Sect1><Title><Literal>qtgl</Literal> Module Reference</Title>
  4600. <Sect2><Title>TQGL</Title>
  4601. <Para>
  4602. <Literal>TQGL</Literal> is fully implemented.
  4603. </Para>
  4604. </Sect2>
  4605. <Sect2><Title>TQGLContext</Title>
  4606. <Para>
  4607. <Literal>TQGLContext</Literal> is fully implemented.
  4608. </Para>
  4609. </Sect2>
  4610. <Sect2><Title>TQGLFormat</Title>
  4611. <Para>
  4612. <Literal>TQGLFormat</Literal> is fully implemented.
  4613. </Para>
  4614. </Sect2>
  4615. <Sect2><Title>TQGLWidget</Title>
  4616. <Para>
  4617. <Literal>TQGLWidget</Literal> is fully implemented.
  4618. </Para>
  4619. </Sect2>
  4620. <Sect2><Title>TQGLColormap (TQt v3.0+)</Title>
  4621. <FuncSynopsis>
  4622. <FuncDef>void <Function>setEntries</Function></FuncDef>
  4623. <ParamDef>int <Parameter>count</Parameter></ParamDef>
  4624. <ParamDef>const TQRgb *<Parameter>colors</Parameter></ParamDef>
  4625. <ParamDef>int <Parameter>base</Parameter> = 0</ParamDef>
  4626. </FuncSynopsis>
  4627. <Para>
  4628. Not yet implemented.
  4629. </Para>
  4630. </Sect2>
  4631. </Sect1>
  4632. <Sect1><Title><Literal>qtnetwork</Literal> Module Reference</Title>
  4633. <Sect2><Title>TQDns (TQt v2.2+)</Title>
  4634. <Para>
  4635. <Literal>TQDns</Literal> is fully implemented.
  4636. </Para>
  4637. </Sect2>
  4638. <Sect2><Title>TQFtp (TQt v2.2+)</Title>
  4639. <FuncSynopsis>
  4640. <FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
  4641. <ParamDef>char *<Parameter>data</Parameter></ParamDef>
  4642. <ParamDef>Q_ULONG <Parameter>maxlen</Parameter></ParamDef>
  4643. </FuncSynopsis>
  4644. <Para>
  4645. This takes a single <Literal>maxlen</Literal> parameter. The
  4646. <Literal>data</Literal> is returned if there was no error, otherwise
  4647. <Literal>None</Literal> is returned.
  4648. </Para>
  4649. </Sect2>
  4650. <Sect2><Title>TQHostAddress (TQt v2.2+)</Title>
  4651. <FuncSynopsis>
  4652. <FuncDef><Function>TQHostAddress</Function></FuncDef>
  4653. <ParamDef>Q_UINT8 *<Parameter>ip6Addr</Parameter></ParamDef>
  4654. </FuncSynopsis>
  4655. <Para>
  4656. Not yet implemented.
  4657. </Para>
  4658. <FuncSynopsis>
  4659. <FuncDef><Function>TQHostAddress</Function></FuncDef>
  4660. <ParamDef>const Q_IPV6ADDR &amp;<Parameter>ip6Addr</Parameter></ParamDef>
  4661. </FuncSynopsis>
  4662. <Para>
  4663. Not yet implemented.
  4664. </Para>
  4665. <FuncSynopsis>
  4666. <FuncDef>void <Function>setAddress</Function></FuncDef>
  4667. <ParamDef>Q_UINT8 *<Parameter>ip6Addr</Parameter></ParamDef>
  4668. </FuncSynopsis>
  4669. <Para>
  4670. Not yet implemented.
  4671. </Para>
  4672. <FuncSynopsis>
  4673. <FuncDef>Q_IPV6ADDR <Function>toIPv6Address</Function> const</FuncDef>
  4674. <ParamDef><Parameter></Parameter></ParamDef>
  4675. </FuncSynopsis>
  4676. <Para>
  4677. Not yet implemented.
  4678. </Para>
  4679. </Sect2>
  4680. <Sect2><Title>TQHttp (TQt v3+)</Title>
  4681. <FuncSynopsis>
  4682. <FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
  4683. <ParamDef>char *<Parameter>data</Parameter></ParamDef>
  4684. <ParamDef>Q_ULONG <Parameter>maxlen</Parameter></ParamDef>
  4685. </FuncSynopsis>
  4686. <Para>
  4687. This takes a single <Literal>maxlen</Literal> parameter. The
  4688. <Literal>data</Literal> is returned if there was no error, otherwise
  4689. <Literal>None</Literal> is returned.
  4690. </Para>
  4691. </Sect2>
  4692. <Sect2><Title>TQHttpHeader (TQt v3.1+)</Title>
  4693. <Para>
  4694. <Literal>TQHttpHeader</Literal> is fully implemented.
  4695. </Para>
  4696. </Sect2>
  4697. <Sect2><Title>TQHttpRequestHeader (TQt v3.1+)</Title>
  4698. <Para>
  4699. <Literal>TQHttpRequestHeader</Literal> is fully implemented.
  4700. </Para>
  4701. </Sect2>
  4702. <Sect2><Title>TQHttpResponseHeader (TQt v3.1+)</Title>
  4703. <Para>
  4704. <Literal>TQHttpResponseHeader</Literal> is fully implemented.
  4705. </Para>
  4706. </Sect2>
  4707. <Sect2><Title>TQLocalFs (TQt v2.1+)</Title>
  4708. <Para>
  4709. <Literal>TQLocalFs</Literal> is fully implemented.
  4710. </Para>
  4711. </Sect2>
  4712. <Sect2><Title>TQServerSocket (TQt v2.2+)</Title>
  4713. <Para>
  4714. <Literal>TQServerSocket</Literal> is fully implemented.
  4715. </Para>
  4716. </Sect2>
  4717. <Sect2><Title>TQSocket (TQt v2.2+)</Title>
  4718. <FuncSynopsis>
  4719. <FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
  4720. <ParamDef>char *<Parameter>data</Parameter></ParamDef>
  4721. <ParamDef>Q_ULONG <Parameter>len</Parameter></ParamDef>
  4722. </FuncSynopsis>
  4723. <Para>
  4724. This takes a single <Literal>len</Literal> parameter. The
  4725. <Literal>data</Literal> is returned if there was no error, otherwise
  4726. <Literal>Py_None</Literal> is returned.
  4727. </Para>
  4728. <FuncSynopsis>
  4729. <FuncDef>Q_LONG <Function>readLine</Function></FuncDef>
  4730. <ParamDef>char *<Parameter>data</Parameter></ParamDef>
  4731. <ParamDef>Q_ULONG <Parameter>maxlen</Parameter></ParamDef>
  4732. </FuncSynopsis>
  4733. <Para>
  4734. This takes a single <Literal>maxlen</Literal> parameter. The
  4735. <Literal>data</Literal> is returned if there was no error, otherwise
  4736. <Literal>Py_None</Literal> is returned.
  4737. </Para>
  4738. <FuncSynopsis>
  4739. <FuncDef>Q_LONG <Function>writeBlock</Function></FuncDef>
  4740. <ParamDef>const char *<Parameter>data</Parameter></ParamDef>
  4741. <ParamDef>Q_ULONG <Parameter>len</Parameter></ParamDef>
  4742. </FuncSynopsis>
  4743. <Para>
  4744. <Literal>len</Literal> is derived from <Literal>data</Literal> and not passed
  4745. as a parameter.
  4746. </Para>
  4747. </Sect2>
  4748. <Sect2><Title>TQSocketDevice (TQt v2.2+)</Title>
  4749. <FuncSynopsis>
  4750. <FuncDef>Q_LONG <Function>readBlock</Function></FuncDef>
  4751. <ParamDef>char *<Parameter>data</Parameter></ParamDef>
  4752. <ParamDef>Q_ULONG <Parameter>len</Parameter></ParamDef>
  4753. </FuncSynopsis>
  4754. <Para>
  4755. This takes a single <Literal>len</Literal> parameter. The
  4756. <Literal>data</Literal> is returned if there was no error, otherwise
  4757. <Literal>None</Literal> is returned.
  4758. </Para>
  4759. <FuncSynopsis>
  4760. <FuncDef>Q_LONG <Function>writeBlock</Function></FuncDef>
  4761. <ParamDef>const char *<Parameter>data</Parameter></ParamDef>
  4762. <ParamDef>Q_ULONG <Parameter>len</Parameter></ParamDef>
  4763. </FuncSynopsis>
  4764. <Para>
  4765. <Literal>len</Literal> is derived from <Literal>data</Literal> and not passed
  4766. as a parameter.
  4767. </Para>
  4768. </Sect2>
  4769. </Sect1>
  4770. <Sect1><Title><Literal>qtpe</Literal> Module Reference</Title>
  4771. <Sect2><Title>TQPEApplication</Title>
  4772. <FuncSynopsis>
  4773. <FuncDef><Function>TQApplication</Function></FuncDef>
  4774. <ParamDef>int& <Parameter>argc</Parameter></ParamDef>
  4775. <ParamDef>char **<Parameter>argv</Parameter></ParamDef>
  4776. <ParamDef>Type <Parameter>type</Parameter></ParamDef>
  4777. </FuncSynopsis>
  4778. <Para>
  4779. This takes two parameters, the first of which is a list of argument strings.
  4780. Arguments used by TQt are removed from the list.
  4781. </Para>
  4782. <FuncSynopsis>
  4783. <FuncDef>int <Function>exec</Function></FuncDef>
  4784. <ParamDef></ParamDef>
  4785. </FuncSynopsis>
  4786. <Para>
  4787. This has been renamed to <Literal>exec_loop</Literal> in Python.
  4788. </Para>
  4789. </Sect2>
  4790. <Sect2><Title>AppLnk</Title>
  4791. <FuncSynopsis>
  4792. <FuncDef>virtual TQString <Function>exec</Function> const</FuncDef>
  4793. <ParamDef></ParamDef>
  4794. </FuncSynopsis>
  4795. <Para>
  4796. This has been renamed to <Literal>exec_property</Literal> in Python.
  4797. </Para>
  4798. </Sect2>
  4799. <Sect2><Title>AppLnkSet</Title>
  4800. <Para>
  4801. <Literal>AppLnkSet</Literal> is fully implemented.
  4802. </Para>
  4803. </Sect2>
  4804. <Sect2><Title>Config</Title>
  4805. <Para>
  4806. <Literal>Config</Literal> is fully implemented.
  4807. </Para>
  4808. </Sect2>
  4809. <Sect2><Title>DateFormat</Title>
  4810. <Para>
  4811. <Literal>DateFormat</Literal> is fully implemented.
  4812. </Para>
  4813. </Sect2>
  4814. <Sect2><Title>DocLnk</Title>
  4815. <FuncSynopsis>
  4816. <FuncDef>TQString <Function>exec</Function> const</FuncDef>
  4817. <ParamDef></ParamDef>
  4818. </FuncSynopsis>
  4819. <Para>
  4820. This has been renamed to <Literal>exec_property</Literal> in Python.
  4821. </Para>
  4822. </Sect2>
  4823. <Sect2><Title>DocLnkSet</Title>
  4824. <Para>
  4825. <Literal>DocLnkSet</Literal> is fully implemented.
  4826. </Para>
  4827. </Sect2>
  4828. <Sect2><Title>FileManager</Title>
  4829. <Para>
  4830. <Literal>FileManager</Literal> is fully implemented.
  4831. </Para>
  4832. </Sect2>
  4833. <Sect2><Title>FileSelector</Title>
  4834. <Para>
  4835. <Literal>FileSelector</Literal> is fully implemented.
  4836. </Para>
  4837. </Sect2>
  4838. <Sect2><Title>FileSelectorItem</Title>
  4839. <Para>
  4840. <Literal>FileSelectorItem</Literal> is fully implemented.
  4841. </Para>
  4842. </Sect2>
  4843. <Sect2><Title>FontDatabase</Title>
  4844. <Para>
  4845. <Literal>FontDatabase</Literal> is fully implemented.
  4846. </Para>
  4847. </Sect2>
  4848. <Sect2><Title>Global</Title>
  4849. <FuncSynopsis>
  4850. <FuncDef>static void <Function>setBuiltinCommands</Function></FuncDef>
  4851. <ParamDef>Command *</ParamDef>
  4852. </FuncSynopsis>
  4853. <Para>
  4854. Not implemented.
  4855. </Para>
  4856. </Sect2>
  4857. <Sect2><Title>MenuButton</Title>
  4858. <Para>
  4859. <Literal>MenuButton</Literal> is fully implemented.
  4860. </Para>
  4861. </Sect2>
  4862. <Sect2><Title>TQCopEnvelope</Title>
  4863. <Para>
  4864. <Literal>TQCopEnvelope</Literal> is fully implemented.
  4865. </Para>
  4866. </Sect2>
  4867. <Sect2><Title>TQDawg</Title>
  4868. <Para>
  4869. <Literal>TQDawg</Literal> is fully implemented.
  4870. </Para>
  4871. </Sect2>
  4872. <Sect2><Title>TQPEMenuBar</Title>
  4873. <Para>
  4874. <Literal>TQPEMenuBar</Literal> is fully implemented.
  4875. </Para>
  4876. </Sect2>
  4877. <Sect2><Title>TQPEToolBar</Title>
  4878. <Para>
  4879. <Literal>TQPEToolBar</Literal> is fully implemented.
  4880. </Para>
  4881. </Sect2>
  4882. <Sect2><Title>Resource</Title>
  4883. <Para>
  4884. <Literal>Resource</Literal> is fully implemented.
  4885. </Para>
  4886. </Sect2>
  4887. </Sect1>
  4888. <Sect1><Title><Literal>qtsql</Literal> Module Reference</Title>
  4889. <Sect2><Title>TQDataBrowser (TQt v3+)</Title>
  4890. <FuncSynopsis>
  4891. <FuncDef>virtual void <Function>del</Function></FuncDef>
  4892. <ParamDef></ParamDef>
  4893. </FuncSynopsis>
  4894. <Para>
  4895. This has been renamed <Literal>delOnCursor</Literal> in Python.
  4896. </Para>
  4897. </Sect2>
  4898. <Sect2><Title>TQDataTable (TQt v3+)</Title>
  4899. <Para>
  4900. <Literal>TQDataTable</Literal> is fully implemented.
  4901. </Para>
  4902. </Sect2>
  4903. <Sect2><Title>TQDataView (TQt v3+)</Title>
  4904. <Para>
  4905. <Literal>TQDataView</Literal> is fully implemented.
  4906. </Para>
  4907. </Sect2>
  4908. <Sect2><Title>TQEditorFactory (TQt v3+)</Title>
  4909. <Para>
  4910. <Literal>TQEditorFactory</Literal> is fully implemented.
  4911. </Para>
  4912. </Sect2>
  4913. <Sect2><Title>TQSql (TQt v3+)</Title>
  4914. <Para>
  4915. <Literal>TQSql</Literal> is fully implemented.
  4916. </Para>
  4917. </Sect2>
  4918. <Sect2><Title>TQSqlCursor (TQt v3+)</Title>
  4919. <FuncSynopsis>
  4920. <FuncDef>virtual int <Function>del</Function></FuncDef>
  4921. <ParamDef>bool <Parameter>invalidate</Parameter> = TRUE</ParamDef>
  4922. </FuncSynopsis>
  4923. <Para>
  4924. This has been renamed <Literal>delRecords</Literal> in Python.
  4925. </Para>
  4926. <FuncSynopsis>
  4927. <FuncDef>virtual int <Function>del</Function></FuncDef>
  4928. <ParamDef>const TQString &amp;<Parameter>filter</Parameter></ParamDef>
  4929. <ParamDef>bool <Parameter>invalidate</Parameter> = TRUE</ParamDef>
  4930. </FuncSynopsis>
  4931. <Para>
  4932. This has been renamed <Literal>delRecords</Literal> in Python.
  4933. </Para>
  4934. <FuncSynopsis>
  4935. <FuncDef>bool <Function>exec</Function></FuncDef>
  4936. <ParamDef>const TQString &amp;<Parameter>query</Parameter></ParamDef>
  4937. </FuncSynopsis>
  4938. <Para>
  4939. This has been renamed <Literal>execQuery</Literal> in Python.
  4940. </Para>
  4941. </Sect2>
  4942. <Sect2><Title>TQSqlDatabase (TQt v3+)</Title>
  4943. <FuncSynopsis>
  4944. <FuncDef>TQSqlQuery <Function>exec</Function></FuncDef>
  4945. <ParamDef>const TQString &amp;<Parameter>query</Parameter> = TQString::null</ParamDef>
  4946. </FuncSynopsis>
  4947. <Para>
  4948. This has been renamed <Literal>execStatement</Literal> in Python.
  4949. </Para>
  4950. </Sect2>
  4951. <Sect2><Title>TQSqlDriver (TQt v3+)</Title>
  4952. <Para>
  4953. <Literal>TQSqlDriver</Literal> is fully implemented.
  4954. </Para>
  4955. </Sect2>
  4956. <Sect2><Title>TQSqlEditorFactory (TQt v3+)</Title>
  4957. <Para>
  4958. <Literal>TQSqlEditorFactory</Literal> is fully implemented.
  4959. </Para>
  4960. </Sect2>
  4961. <Sect2><Title>TQSqlError (TQt v3+)</Title>
  4962. <Para>
  4963. <Literal>TQSqlError</Literal> is fully implemented.
  4964. </Para>
  4965. </Sect2>
  4966. <Sect2><Title>TQSqlField (TQt v3+)</Title>
  4967. <Para>
  4968. <Literal>TQSqlField</Literal> is fully implemented.
  4969. </Para>
  4970. </Sect2>
  4971. <Sect2><Title>TQSqlFieldInfo (TQt v3+)</Title>
  4972. <Para>
  4973. <Literal>TQSqlFieldInfo</Literal> is fully implemented.
  4974. </Para>
  4975. </Sect2>
  4976. <Sect2><Title>TQSqlForm (TQt v3+)</Title>
  4977. <Para>
  4978. <Literal>TQSqlForm</Literal> is fully implemented.
  4979. </Para>
  4980. </Sect2>
  4981. <Sect2><Title>TQSqlIndex (TQt v3+)</Title>
  4982. <Para>
  4983. <Literal>TQSqlIndex</Literal> is fully implemented.
  4984. </Para>
  4985. </Sect2>
  4986. <Sect2><Title>TQSqlPropertyMap (TQt v3+)</Title>
  4987. <Para>
  4988. <Literal>TQSqlPropertyMap</Literal> is fully implemented. However, because PyTQt
  4989. does not allow new properties to be defined, it is not possible to implement
  4990. custom editor widgets in Python and add them to a property map. These will
  4991. simply be ignored.
  4992. </Para>
  4993. <Para>
  4994. This problem may be addressed in a future release of PyTQt.
  4995. </Para>
  4996. </Sect2>
  4997. <Sect2><Title>TQSqlQuery (TQt v3+)</Title>
  4998. <FuncSynopsis>
  4999. <FuncDef>TQMap&lt;TQString,TQVariant&gt; <Function>boundValues</Function> const</FuncDef>
  5000. <ParamDef></ParamDef>
  5001. </FuncSynopsis>
  5002. <Para>
  5003. Not yet implemented. (TQt v3.2.0+)
  5004. </Para>
  5005. <FuncSynopsis>
  5006. <FuncDef>virtual bool <Function>exec</Function></FuncDef>
  5007. <ParamDef>const TQString &amp;<Parameter>query</Parameter></ParamDef>
  5008. </FuncSynopsis>
  5009. <Para>
  5010. This has been renamed <Literal>execQuery</Literal> in Python.
  5011. </Para>
  5012. <FuncSynopsis>
  5013. <FuncDef>bool <Function>exec</Function></FuncDef>
  5014. <ParamDef></ParamDef>
  5015. </FuncSynopsis>
  5016. <Para>
  5017. This has been renamed <Literal>execQuery</Literal> in Python. (TQt v3.1+)
  5018. </Para>
  5019. </Sect2>
  5020. <Sect2><Title>TQSqlRecord (TQt v3+)</Title>
  5021. <Para>
  5022. <Literal>TQSqlRecord</Literal> is fully implemented.
  5023. </Para>
  5024. </Sect2>
  5025. <Sect2><Title>TQSqlRecordInfo (TQt v3+)</Title>
  5026. <Para>
  5027. <Literal>TQSqlRecordInfo</Literal> is implemented as a Python list of
  5028. <Literal>TQSqlFieldInfo</Literal> instances.
  5029. </Para>
  5030. </Sect2>
  5031. <Sect2><Title>TQSqlResult (TQt v3+)</Title>
  5032. <Para>
  5033. <Literal>TQSqlResult</Literal> is fully implemented.
  5034. </Para>
  5035. </Sect2>
  5036. <Sect2><Title>TQSqlSelectCursor (TQt v3.2.0+)</Title>
  5037. <FuncSynopsis>
  5038. <FuncDef>int <Function>del</Function></FuncDef>
  5039. <ParamDef>bool <Parameter>invalidate</Parameter> = TRUE</ParamDef>
  5040. </FuncSynopsis>
  5041. <Para>
  5042. This has been renamed <Literal>delRecords</Literal> in Python.
  5043. </Para>
  5044. <FuncSynopsis>
  5045. <FuncDef>bool <Function>exec</Function></FuncDef>
  5046. <ParamDef>const TQString &amp;<Parameter>query</Parameter></ParamDef>
  5047. </FuncSynopsis>
  5048. <Para>
  5049. This has been renamed <Literal>execQuery</Literal> in Python.
  5050. </Para>
  5051. </Sect2>
  5052. </Sect1>
  5053. <Sect1><Title><Literal>qttable</Literal> Module Reference</Title>
  5054. <Sect2><Title>TQTable (TQt v2.2+)</Title>
  5055. <Para>
  5056. <Literal>TQTable</Literal> is fully implemented.
  5057. </Para>
  5058. </Sect2>
  5059. <Sect2><Title>TQTableItem (TQt v2.2+)</Title>
  5060. <Para>
  5061. <Literal>TQTableItem</Literal> is fully implemented.
  5062. </Para>
  5063. </Sect2>
  5064. <Sect2><Title>TQCheckTableItem (TQt v3+)</Title>
  5065. <Para>
  5066. <Literal>TQCheckTableItem</Literal> is fully implemented.
  5067. </Para>
  5068. </Sect2>
  5069. <Sect2><Title>TQComboTableItem (TQt v3+)</Title>
  5070. <Para>
  5071. <Literal>TQComboTableItem</Literal> is fully implemented.
  5072. </Para>
  5073. </Sect2>
  5074. <Sect2><Title>TQTableSelection (TQt v2.2+)</Title>
  5075. <Para>
  5076. <Literal>TQTableSelection</Literal> is fully implemented.
  5077. </Para>
  5078. </Sect2>
  5079. </Sect1>
  5080. <Sect1><Title><Literal>qtui</Literal> Module Reference</Title>
  5081. <Sect2><Title>TQWidgetFactory (TQt v3+)</Title>
  5082. <Para>
  5083. <Literal>TQWidgetFactory</Literal> is fully implemented.
  5084. </Para>
  5085. </Sect2>
  5086. </Sect1>
  5087. <Sect1><Title><Literal>qtxml</Literal> Module Reference</Title>
  5088. <Sect2><Title>TQDomImplementation (TQt v2.2+)</Title>
  5089. <Para>
  5090. <Literal>TQDomImplementation</Literal> is fully implemented.
  5091. </Para>
  5092. </Sect2>
  5093. <Sect2><Title>TQDomNode (TQt v2.2+)</Title>
  5094. <Para>
  5095. <Literal>TQDomNode</Literal> is fully implemented, including the Python
  5096. <Literal>==</Literal> and <Literal>!=</Literal> operators.
  5097. </Para>
  5098. </Sect2>
  5099. <Sect2><Title>TQDomNodeList (TQt v2.2+)</Title>
  5100. <Para>
  5101. <Literal>TQDomNodeList</Literal> is fully implemented.
  5102. </Para>
  5103. </Sect2>
  5104. <Sect2><Title>TQDomDocument (TQt v2.2+)</Title>
  5105. <FuncSynopsis>
  5106. <FuncDef>bool <Function>setContent</Function></FuncDef>
  5107. <ParamDef>const TQCString &amp;<Parameter>buffer</Parameter></ParamDef>
  5108. <ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
  5109. <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
  5110. <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
  5111. <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
  5112. </FuncSynopsis>
  5113. <Para>
  5114. This takes the <Literal>buffer</Literal> and
  5115. <Literal>namespaceProcessing</Literal> parameters and returns a tuple
  5116. containing the <Literal>bool</Literal> result and the
  5117. <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
  5118. <Literal>errorColumn</Literal> values. (TQt v3+)
  5119. </Para>
  5120. <FuncSynopsis>
  5121. <FuncDef>bool <Function>setContent</Function></FuncDef>
  5122. <ParamDef>const TQByteArray &amp;<Parameter>buffer</Parameter></ParamDef>
  5123. <ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
  5124. <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
  5125. <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
  5126. <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
  5127. </FuncSynopsis>
  5128. <Para>
  5129. This takes the <Literal>buffer</Literal> and
  5130. <Literal>namespaceProcessing</Literal> parameters and returns a tuple
  5131. containing the <Literal>bool</Literal> result and the
  5132. <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
  5133. <Literal>errorColumn</Literal> values. (TQt v3+)
  5134. </Para>
  5135. <FuncSynopsis>
  5136. <FuncDef>bool <Function>setContent</Function></FuncDef>
  5137. <ParamDef>const TQString &amp;<Parameter>text</Parameter></ParamDef>
  5138. <ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
  5139. <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
  5140. <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
  5141. <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
  5142. </FuncSynopsis>
  5143. <Para>
  5144. This takes the <Literal>text</Literal> and
  5145. <Literal>namespaceProcessing</Literal> parameters and returns a tuple
  5146. containing the <Literal>bool</Literal> result and the
  5147. <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
  5148. <Literal>errorColumn</Literal> values. (TQt v3+)
  5149. </Para>
  5150. <FuncSynopsis>
  5151. <FuncDef>bool <Function>setContent</Function></FuncDef>
  5152. <ParamDef>const TQIODevice *<Parameter>dev</Parameter></ParamDef>
  5153. <ParamDef>bool <Parameter>namespaceProcessing</Parameter></ParamDef>
  5154. <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
  5155. <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
  5156. <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
  5157. </FuncSynopsis>
  5158. <Para>
  5159. This takes the <Literal>dev</Literal> and
  5160. <Literal>namespaceProcessing</Literal> parameters and returns a tuple
  5161. containing the <Literal>bool</Literal> result and the
  5162. <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
  5163. <Literal>errorColumn</Literal> values. (TQt v3+)
  5164. </Para>
  5165. <FuncSynopsis>
  5166. <FuncDef>bool <Function>setContent</Function></FuncDef>
  5167. <ParamDef>const TQCString &amp;<Parameter>buffer</Parameter></ParamDef>
  5168. <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
  5169. <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
  5170. <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
  5171. </FuncSynopsis>
  5172. <Para>
  5173. This takes the <Literal>buffer</Literal> parameter only and returns a tuple
  5174. containing the <Literal>bool</Literal> result and the
  5175. <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
  5176. <Literal>errorColumn</Literal> values. (TQt v3+)
  5177. </Para>
  5178. <FuncSynopsis>
  5179. <FuncDef>bool <Function>setContent</Function></FuncDef>
  5180. <ParamDef>const TQByteArray &amp;<Parameter>buffer</Parameter></ParamDef>
  5181. <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
  5182. <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
  5183. <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
  5184. </FuncSynopsis>
  5185. <Para>
  5186. This takes the <Literal>buffer</Literal> parameter only and returns a tuple
  5187. containing the <Literal>bool</Literal> result and the
  5188. <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
  5189. <Literal>errorColumn</Literal> values. (TQt v3+)
  5190. </Para>
  5191. <FuncSynopsis>
  5192. <FuncDef>bool <Function>setContent</Function></FuncDef>
  5193. <ParamDef>const TQString &amp;<Parameter>text</Parameter></ParamDef>
  5194. <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
  5195. <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
  5196. <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
  5197. </FuncSynopsis>
  5198. <Para>
  5199. This takes the <Literal>text</Literal> parameter only and returns a tuple
  5200. containing the <Literal>bool</Literal> result and the
  5201. <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
  5202. <Literal>errorColumn</Literal> values. (TQt v3+)
  5203. </Para>
  5204. <FuncSynopsis>
  5205. <FuncDef>bool <Function>setContent</Function></FuncDef>
  5206. <ParamDef>const TQIODevice *<Parameter>dev</Parameter></ParamDef>
  5207. <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
  5208. <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
  5209. <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
  5210. </FuncSynopsis>
  5211. <Para>
  5212. This takes the <Literal>dev</Literal> parameter only and returns a tuple
  5213. containing the <Literal>bool</Literal> result and the
  5214. <Literal>errorMsg</Literal>, <Literal>errorLine</Literal> and
  5215. <Literal>errorColumn</Literal> values. (TQt v3+)
  5216. </Para>
  5217. <FuncSynopsis>
  5218. <FuncDef>bool <Function>setContent</Function></FuncDef>
  5219. <ParamDef>TQXmlInputSource *<Parameter>source</Parameter></ParamDef>
  5220. <ParamDef>TQXmlReader *<Parameter>reader</Parameter></ParamDef>
  5221. <ParamDef>TQString *<Parameter>errorMsg</Parameter> = 0</ParamDef>
  5222. <ParamDef>int *<Parameter>errorLine</Parameter> = 0</ParamDef>
  5223. <ParamDef>int *<Parameter>errorColumn</Parameter> = 0</ParamDef>
  5224. </FuncSynopsis>
  5225. <Para>
  5226. Not yet implemented. (TQt v3.2.0+)
  5227. </Para>
  5228. </Sect2>
  5229. <Sect2><Title>TQDomDocumentFragment (TQt v2.2+)</Title>
  5230. <Para>
  5231. <Literal>TQDomDocumentFragment</Literal> is fully implemented.
  5232. </Para>
  5233. </Sect2>
  5234. <Sect2><Title>TQDomDocumentType (TQt v2.2+)</Title>
  5235. <Para>
  5236. <Literal>TQDomDocumentType</Literal> is fully implemented.
  5237. </Para>
  5238. </Sect2>
  5239. <Sect2><Title>TQDomNamedNodeMap (TQt v2.2+)</Title>
  5240. <Para>
  5241. <Literal>TQDomNamedNodeMap</Literal> is fully implemented.
  5242. </Para>
  5243. </Sect2>
  5244. <Sect2><Title>TQDomCharacterData (TQt v2.2+)</Title>
  5245. <Para>
  5246. <Literal>TQDomCharacterData</Literal> is fully implemented.
  5247. </Para>
  5248. </Sect2>
  5249. <Sect2><Title>TQDomAttr (TQt v2.2+)</Title>
  5250. <Para>
  5251. <Literal>TQDomAttr</Literal> is fully implemented.
  5252. </Para>
  5253. </Sect2>
  5254. <Sect2><Title>TQDomElement (TQt v2.2+)</Title>
  5255. <Para>
  5256. <Literal>TQDomElement</Literal> is fully implemented.
  5257. </Para>
  5258. </Sect2>
  5259. <Sect2><Title>TQDomText (TQt v2.2+)</Title>
  5260. <Para>
  5261. <Literal>TQDomText</Literal> is fully implemented.
  5262. </Para>
  5263. </Sect2>
  5264. <Sect2><Title>TQDomComment (TQt v2.2+)</Title>
  5265. <Para>
  5266. <Literal>TQDomComment</Literal> is fully implemented.
  5267. </Para>
  5268. </Sect2>
  5269. <Sect2><Title>TQDomCDATASection (TQt v2.2+)</Title>
  5270. <Para>
  5271. <Literal>TQDomCDATASection</Literal> is fully implemented.
  5272. </Para>
  5273. </Sect2>
  5274. <Sect2><Title>TQDomNotation (TQt v2.2+)</Title>
  5275. <Para>
  5276. <Literal>TQDomNotation</Literal> is fully implemented.
  5277. </Para>
  5278. </Sect2>
  5279. <Sect2><Title>TQDomEntity (TQt v2.2+)</Title>
  5280. <Para>
  5281. <Literal>TQDomEntity</Literal> is fully implemented.
  5282. </Para>
  5283. </Sect2>
  5284. <Sect2><Title>TQDomEntityReference (TQt v2.2+)</Title>
  5285. <Para>
  5286. <Literal>TQDomEntityReference</Literal> is fully implemented.
  5287. </Para>
  5288. </Sect2>
  5289. <Sect2><Title>TQDomProcessingInstruction (TQt v2.2+)</Title>
  5290. <Para>
  5291. <Literal>TQDomProcessingInstruction</Literal> is fully implemented.
  5292. </Para>
  5293. </Sect2>
  5294. </Sect1>
  5295. </Article>