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.

12846 lines
172KB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <HTML
  3. ><HEAD
  4. ><TITLE
  5. >Python Bindings for TQt (3.18.1)</TITLE
  6. ><META
  7. NAME="GENERATOR"
  8. CONTENT="Modular DocBook HTML Stylesheet Version 1.79"></HEAD
  9. ><BODY
  10. CLASS="ARTICLE"
  11. ><DIV
  12. CLASS="ARTICLE"
  13. ><DIV
  14. CLASS="TITLEPAGE"
  15. ><H1
  16. CLASS="TITLE"
  17. ><A
  18. NAME="AEN2"
  19. >Python Bindings for TQt (3.18.1)</A
  20. ></H1
  21. ><H3
  22. CLASS="AUTHOR"
  23. ><A
  24. NAME="AEN4"
  25. >Phil Thompson</A
  26. ></H3
  27. ><DIV
  28. ><DIV
  29. CLASS="ABSTRACT"
  30. ><P
  31. ></P
  32. ><A
  33. NAME="AEN7"
  34. ></A
  35. ><P
  36. > This document describes a set of Python bindings for the TQt widget set.
  37. Contact the author at <CODE
  38. CLASS="EMAIL"
  39. >&#60;<A
  40. HREF="mailto:phil@riverbankcomputing.co.uk"
  41. >phil@riverbankcomputing.co.uk</A
  42. >&#62;</CODE
  43. >.
  44. </P
  45. ><P
  46. ></P
  47. ></DIV
  48. ></DIV
  49. ><HR></DIV
  50. ><DIV
  51. CLASS="SECT1"
  52. ><H2
  53. CLASS="SECT1"
  54. ><A
  55. NAME="AEN10"
  56. >Introduction</A
  57. ></H2
  58. ><P
  59. >PyTQt is a set of Python bindings for the TQt toolkit and available for all
  60. platforms supported by TQt, including Windows, Linux, UNIX, MacOS/X and embedded
  61. systems such as the Sharp Zaurus and the Compaq iPAQ. They have been tested
  62. against TQt versions 1.43 to 3.3.7, TQt Non-commercial, TQtopia 1.5.0, and Python
  63. versions 1.5 to 2.5. TQt/Embedded v3 is not supported. TQt v4 is supported
  64. by PyTQt v4.</P
  65. ><P
  66. >PyTQt is available under the GPL license for use with the GPL version of TQt, a
  67. a commercial license for use with the commercial version of TQt, a
  68. non-commercial license for use with the non-commercial version of TQt v2, and an
  69. educational license for use with the educational version of TQt.</P
  70. ><P
  71. >PyTQt is built using SIP (a tool for generating Python extension modules for
  72. C++ class libraries). SIP v4.6 or later must be installed in order to build
  73. and run this version of PyTQt.</P
  74. ><P
  75. >PyTQt for MacOS/X requires TQt v3.1.0 or later and Python v2.3 or later.</P
  76. ><P
  77. >The bindings are implemented as a number of Python modules</P
  78. ><P
  79. ></P
  80. ><UL
  81. ><LI
  82. ><P
  83. ><TT
  84. CLASS="LITERAL"
  85. >qt</TT
  86. > is the main module and contains the core classes and most
  87. user interface widgets.</P
  88. ></LI
  89. ><LI
  90. ><P
  91. ><TT
  92. CLASS="LITERAL"
  93. >qtaxcontainer</TT
  94. > contains a sub-set of the classes implemented
  95. in TQt's TQAxContainer module, part of TQt's ActiveTQt framework.</P
  96. ></LI
  97. ><LI
  98. ><P
  99. ><TT
  100. CLASS="LITERAL"
  101. >qtcanvas</TT
  102. > contains the classes implemented in TQt's Canvas
  103. module.</P
  104. ></LI
  105. ><LI
  106. ><P
  107. ><TT
  108. CLASS="LITERAL"
  109. >qtgl</TT
  110. > contains the classes implemented in TQt's OpenGL module.</P
  111. ></LI
  112. ><LI
  113. ><P
  114. ><TT
  115. CLASS="LITERAL"
  116. >qtnetwork</TT
  117. > contains the classes implemented in TQt's Network
  118. module.</P
  119. ></LI
  120. ><LI
  121. ><P
  122. ><TT
  123. CLASS="LITERAL"
  124. >qtpe</TT
  125. > contains the classes implemented in TQtopia (originally
  126. called the TQt Palmtop Environment). It is only supported with TQt/Embedded.</P
  127. ></LI
  128. ><LI
  129. ><P
  130. ><TT
  131. CLASS="LITERAL"
  132. >qtsql</TT
  133. > contains the classes implemented in TQt's SQL module.</P
  134. ></LI
  135. ><LI
  136. ><P
  137. ><TT
  138. CLASS="LITERAL"
  139. >qttable</TT
  140. > contains the classes implemented in TQt's Table
  141. module.</P
  142. ></LI
  143. ><LI
  144. ><P
  145. ><TT
  146. CLASS="LITERAL"
  147. >qtui</TT
  148. > contains the classes implemented in TQt's tqui library.
  149. These allow GUIs to be created directly from TQt Designer's
  150. <TT
  151. CLASS="LITERAL"
  152. >.ui</TT
  153. > files.</P
  154. ></LI
  155. ><LI
  156. ><P
  157. ><TT
  158. CLASS="LITERAL"
  159. >qtxml</TT
  160. > contains the classes implemented in TQt's XML module.</P
  161. ></LI
  162. ><LI
  163. ><P
  164. ><TT
  165. CLASS="LITERAL"
  166. >qtext</TT
  167. > contains useful third-party classes that are not part
  168. of TQt. At the moment it contains bindings for TQScintilla, the port to TQt of
  169. the Scintilla programmer's editor class.</P
  170. ></LI
  171. ></UL
  172. ><P
  173. >PyTQt also includes the <TT
  174. CLASS="LITERAL"
  175. >pyuic</TT
  176. > and
  177. <TT
  178. CLASS="LITERAL"
  179. >pylupdate</TT
  180. > utilities which correspond to the TQt
  181. <TT
  182. CLASS="LITERAL"
  183. >uic</TT
  184. > and <TT
  185. CLASS="LITERAL"
  186. >lupdate</TT
  187. > utilities.
  188. <TT
  189. CLASS="LITERAL"
  190. >pyuic</TT
  191. > converts the GUI designs created with TQt Designer to
  192. executable Python code. <TT
  193. CLASS="LITERAL"
  194. >pylupdate</TT
  195. > scans Python code,
  196. extracts all strings that are candidates for internationalisation, and creates
  197. an XML file for use by TQt Linguist.</P
  198. >
  199. </DIV>
  200. <DIV
  201. CLASS="SECT1"
  202. ><HR><H2
  203. CLASS="SECT1"
  204. ><A
  205. NAME="AEN95"
  206. >Other PyTQt Goodies</A
  207. ></H2
  208. ><DIV
  209. CLASS="SECT2"
  210. ><H3
  211. CLASS="SECT2"
  212. ><A
  213. NAME="AEN97"
  214. >Using TQt Designer</A
  215. ></H3
  216. ><P
  217. >TQt Designer is a GPL'ed GUI design editor provided by Trolltech as part of TQt.
  218. It generates an XML description of a GUI design. TQt includes
  219. <TT
  220. CLASS="LITERAL"
  221. >uic</TT
  222. > which generates C++ code from that XML.</P
  223. ><P
  224. >PyTQt includes <TT
  225. CLASS="LITERAL"
  226. >pyuic</TT
  227. > which generates Python code from the
  228. same XML. The Python code is self contained and can be executed immediately.</P
  229. ><P
  230. >It is sometimes useful to be able to include some specific Python code in the
  231. output generated by <TT
  232. CLASS="LITERAL"
  233. >pyuic</TT
  234. >. For example, if you are using
  235. custom widgets, <TT
  236. CLASS="LITERAL"
  237. >pyuic</TT
  238. > has no way of knowing the name of the
  239. Python module containing the widget and so cannot generate the required
  240. <TT
  241. CLASS="LITERAL"
  242. >import</TT
  243. > statement. To help get around this,
  244. <TT
  245. CLASS="LITERAL"
  246. >pyuic</TT
  247. > will extract any lines entered in the
  248. <TT
  249. CLASS="LITERAL"
  250. >Comment</TT
  251. > field of TQt Designer's
  252. <TT
  253. CLASS="LITERAL"
  254. >Form Settings</TT
  255. > dialog that begin with
  256. <TT
  257. CLASS="LITERAL"
  258. >Python:</TT
  259. > and copies them to the generated output.</P
  260. ><P
  261. >Here's a simple example showing the contents of the <TT
  262. CLASS="LITERAL"
  263. >Comment</TT
  264. >
  265. field.</P
  266. ><TABLE
  267. BORDER="0"
  268. BGCOLOR="#E0E0E0"
  269. WIDTH="100%"
  270. ><TR
  271. ><TD
  272. ><PRE
  273. CLASS="PROGRAMLISTING"
  274. >This comment will be ignored by pyuic.
  275. Python:
  276. Python:# Import our custom widget.
  277. Python:from foo import bar</PRE
  278. ></TD
  279. ></TR
  280. ></TABLE
  281. ><P
  282. >Here's the corresponding output from <TT
  283. CLASS="LITERAL"
  284. >pyuic</TT
  285. >.</P
  286. ><TABLE
  287. BORDER="0"
  288. BGCOLOR="#E0E0E0"
  289. WIDTH="100%"
  290. ><TR
  291. ><TD
  292. ><PRE
  293. CLASS="PROGRAMLISTING"
  294. >from qt import *
  295. # Import our custom widget.
  296. from foo import bar</PRE
  297. ></TD
  298. ></TR
  299. ></TABLE
  300. ><P
  301. >Thanks to Christian Bird, <TT
  302. CLASS="LITERAL"
  303. >pyuic</TT
  304. > will extract Python code
  305. entered using TQt Designer to implement slots. In TQt Designer, when you need to
  306. edit a slot and the source editor appears, enter Python code between the curly
  307. braces. Don't worry about the correct starting indent level, each line is
  308. prepended with a correct indentation.</P
  309. ><P
  310. >Make sure that the <TT
  311. CLASS="LITERAL"
  312. >ui.h</TT
  313. > file is in the same directory as the
  314. <TT
  315. CLASS="LITERAL"
  316. >.ui</TT
  317. > file when using <TT
  318. CLASS="LITERAL"
  319. >pyuic</TT
  320. >. The
  321. <TT
  322. CLASS="LITERAL"
  323. >.ui</TT
  324. > file implies the name of the <TT
  325. CLASS="LITERAL"
  326. >.ui.h</TT
  327. >
  328. file so there is no need to specify it on the command line.</P
  329. ><P
  330. >Here's an example of a simple slot. </P
  331. ><TABLE
  332. BORDER="0"
  333. BGCOLOR="#E0E0E0"
  334. WIDTH="100%"
  335. ><TR
  336. ><TD
  337. ><PRE
  338. CLASS="PROGRAMLISTING"
  339. >void DebMainWindowFrm::browsePushButtonClicked()
  340. {
  341. if self.debugging:
  342. TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")
  343. }</PRE
  344. ></TD
  345. ></TR
  346. ></TABLE
  347. ><P
  348. >Here is the resulting code when <TT
  349. CLASS="LITERAL"
  350. >pyuic</TT
  351. > is run.</P
  352. ><TABLE
  353. BORDER="0"
  354. BGCOLOR="#E0E0E0"
  355. WIDTH="100%"
  356. ><TR
  357. ><TD
  358. ><PRE
  359. CLASS="PROGRAMLISTING"
  360. >class DebMainWindowFrm(TQMainWindow):
  361. ...stuff...
  362. def browsePushButtonClicked(self):
  363. if self.debugging:
  364. TQMessageBox.critical(self, "Event", "browse pushbutton was clicked!")</PRE
  365. ></TD
  366. ></TR
  367. ></TABLE
  368. ><P
  369. >Note that indenting is as normal and that <TT
  370. CLASS="LITERAL"
  371. >self</TT
  372. > and all other
  373. parameters passed to the slot are available.</P
  374. ><P
  375. >If you use this, you will need to turn off all of the fancy options for the C++
  376. editor in Designer as it tries to force C++ syntax and that's naturally
  377. annoying when trying to code in Python.</P
  378. ></DIV
  379. ><DIV
  380. CLASS="SECT2"
  381. ><HR><H3
  382. CLASS="SECT2"
  383. ><A
  384. NAME="AEN133"
  385. >Using TQt Linguist</A
  386. ></H3
  387. ><P
  388. >TQt includes the <TT
  389. CLASS="LITERAL"
  390. >lupdate</TT
  391. > program which parses C++ source
  392. files converting calls to the <TT
  393. CLASS="LITERAL"
  394. >QT_TR_NOOP()</TT
  395. > and
  396. <TT
  397. CLASS="LITERAL"
  398. >QT_TRANSLATE_NOOP()</TT
  399. > macros to <TT
  400. CLASS="LITERAL"
  401. >.ts</TT
  402. >
  403. language source files. The <TT
  404. CLASS="LITERAL"
  405. >lrelease</TT
  406. > program is then used to
  407. generate <TT
  408. CLASS="LITERAL"
  409. >.qm</TT
  410. > binary language files that are distributed with
  411. your application.</P
  412. ><P
  413. >Thanks to Detlev Offenbach, PyTQt includes the <TT
  414. CLASS="LITERAL"
  415. >pylupdate</TT
  416. >
  417. program. This generates the same <TT
  418. CLASS="LITERAL"
  419. >.ts</TT
  420. > language source files
  421. from your PyTQt source files.</P
  422. ></DIV
  423. ></DIV
  424. ><DIV
  425. CLASS="SECT1"
  426. ><HR><H2
  427. CLASS="SECT1"
  428. ><A
  429. NAME="AEN145"
  430. >Deploying Commercial PyTQt Applications</A
  431. ></H2
  432. ><P
  433. >When deploying commercial PyTQt applications it is necessary to discourage users
  434. from accessing the underlying PyTQt modules for themselves. A user that used
  435. the modules shipped with your application to develop new applications would
  436. themselves be considered a developer and would need their own commercial TQt and
  437. PyTQt licenses.</P
  438. ><P
  439. >One solution to this problem is the
  440. <A
  441. HREF="http://www.riverbankcomputing.co.uk/vendorid/"
  442. TARGET="_top"
  443. >VendorID</A
  444. >
  445. package. This allows you to build Python extension modules that can only be
  446. imported by a digitally signed custom interpreter. The package enables you to
  447. create such an interpreter with your application embedded within it. The
  448. result is an interpreter that can only run your application, and PyTQt modules
  449. that can only be imported by that interpreter. You can use the package to
  450. similarly restrict access to any extension module.</P
  451. ><P
  452. >In order to build PyTQt with support for the VendorID package, pass the
  453. <TT
  454. CLASS="LITERAL"
  455. >-i</TT
  456. > command line flag to <TT
  457. CLASS="LITERAL"
  458. >configure.py</TT
  459. >.</P
  460. ></DIV
  461. ><DIV
  462. CLASS="SECT1"
  463. ><HR><H2
  464. CLASS="SECT1"
  465. ><A
  466. NAME="AEN153"
  467. ><TT
  468. CLASS="LITERAL"
  469. >pyqtconfig</TT
  470. > and Build System Support</A
  471. ></H2
  472. ><P
  473. >The SIP build system (ie. the <TT
  474. CLASS="LITERAL"
  475. >sipconfig</TT
  476. > module) is described
  477. in the SIP documentation. PyTQt includes the <TT
  478. CLASS="LITERAL"
  479. >pyqtconfig</TT
  480. >
  481. module that can be used by configuration scripts of other bindings that are
  482. built on top of PyTQt.</P
  483. ><P
  484. >The <TT
  485. CLASS="LITERAL"
  486. >pyqtconfig</TT
  487. > module contains the following classes:</P
  488. ><P
  489. ></P
  490. ><DIV
  491. CLASS="VARIABLELIST"
  492. ><DL
  493. ><DT
  494. ><TT
  495. CLASS="LITERAL"
  496. >Configuration(sipconfig.Configuration)</TT
  497. ></DT
  498. ><DD
  499. ><P
  500. >This class encapsulates additional configuration values, specific to PyTQt, that
  501. can be accessed as instance variables.</P
  502. ><P
  503. >The following configuration values are provided (in addition to those provided
  504. by the <TT
  505. CLASS="LITERAL"
  506. >sipconfig.Configuration</TT
  507. > class):</P
  508. ><P
  509. ></P
  510. ><DIV
  511. CLASS="VARIABLELIST"
  512. ><DL
  513. ><DT
  514. ><TT
  515. CLASS="LITERAL"
  516. >pyqt_bin_dir</TT
  517. ></DT
  518. ><DD
  519. ><P
  520. >The name of the directory containing the <TT
  521. CLASS="LITERAL"
  522. >pyuic</TT
  523. > and
  524. <TT
  525. CLASS="LITERAL"
  526. >pylupdate</TT
  527. > executables.</P
  528. ><P
  529. ></P
  530. ><P
  531. ></P
  532. ></DD
  533. ><DT
  534. ><TT
  535. CLASS="LITERAL"
  536. >pyqt_mod_dir</TT
  537. ></DT
  538. ><DD
  539. ><P
  540. >The name of the directory containing the PyTQt modules.</P
  541. ><P
  542. ></P
  543. ><P
  544. ></P
  545. ></DD
  546. ><DT
  547. ><TT
  548. CLASS="LITERAL"
  549. >pyqt_modules</TT
  550. ></DT
  551. ><DD
  552. ><P
  553. >A string containing the names of the PyTQt modules that were installed.</P
  554. ><P
  555. ></P
  556. ><P
  557. ></P
  558. ></DD
  559. ><DT
  560. ><TT
  561. CLASS="LITERAL"
  562. >pyqt_qt_sip_flags</TT
  563. ></DT
  564. ><DD
  565. ><P
  566. >A string of the SIP flags used to generate the code for the
  567. <TT
  568. CLASS="LITERAL"
  569. >qt</TT
  570. > module and which should be added to those needed by any
  571. module that imports the <TT
  572. CLASS="LITERAL"
  573. >qt</TT
  574. > module.</P
  575. ><P
  576. ></P
  577. ><P
  578. ></P
  579. ></DD
  580. ><DT
  581. ><TT
  582. CLASS="LITERAL"
  583. >pyqt_qtaxcontainer_sip_flags</TT
  584. ></DT
  585. ><DD
  586. ><P
  587. >A string of the SIP flags used to generate the code for the
  588. <TT
  589. CLASS="LITERAL"
  590. >qtaxcontainer</TT
  591. > module and which should be added to those
  592. needed by any module that imports the <TT
  593. CLASS="LITERAL"
  594. >qtaxcontainer</TT
  595. > module.</P
  596. ><P
  597. ></P
  598. ><P
  599. ></P
  600. ></DD
  601. ><DT
  602. ><TT
  603. CLASS="LITERAL"
  604. >pyqt_qtcanvas_sip_flags</TT
  605. ></DT
  606. ><DD
  607. ><P
  608. >A string of the SIP flags used to generate the code for the
  609. <TT
  610. CLASS="LITERAL"
  611. >qtcanvas</TT
  612. > module and which should be added to those needed by
  613. any module that imports the <TT
  614. CLASS="LITERAL"
  615. >qtcanvas</TT
  616. > module.</P
  617. ><P
  618. ></P
  619. ><P
  620. ></P
  621. ></DD
  622. ><DT
  623. ><TT
  624. CLASS="LITERAL"
  625. >pyqt_qtext_sip_flags</TT
  626. ></DT
  627. ><DD
  628. ><P
  629. >A string of the SIP flags used to generate the code for the
  630. <TT
  631. CLASS="LITERAL"
  632. >qtext</TT
  633. > module and which should be added to those needed by
  634. any module that imports the <TT
  635. CLASS="LITERAL"
  636. >qtext</TT
  637. > module.</P
  638. ><P
  639. ></P
  640. ><P
  641. ></P
  642. ></DD
  643. ><DT
  644. ><TT
  645. CLASS="LITERAL"
  646. >pyqt_qtgl_sip_flags</TT
  647. ></DT
  648. ><DD
  649. ><P
  650. >A string of the SIP flags used to generate the code for the
  651. <TT
  652. CLASS="LITERAL"
  653. >qtgl</TT
  654. > module and which should be added to those needed by any
  655. module that imports the <TT
  656. CLASS="LITERAL"
  657. >qtgl</TT
  658. > module.</P
  659. ><P
  660. ></P
  661. ><P
  662. ></P
  663. ></DD
  664. ><DT
  665. ><TT
  666. CLASS="LITERAL"
  667. >pyqt_qtnetwork_sip_flags</TT
  668. ></DT
  669. ><DD
  670. ><P
  671. >A string of the SIP flags used to generate the code for the
  672. <TT
  673. CLASS="LITERAL"
  674. >qtnetwork</TT
  675. > module and which should be added to those needed
  676. by any module that imports the <TT
  677. CLASS="LITERAL"
  678. >qtnetwork</TT
  679. > module.</P
  680. ><P
  681. ></P
  682. ><P
  683. ></P
  684. ></DD
  685. ><DT
  686. ><TT
  687. CLASS="LITERAL"
  688. >pyqt_qtsql_sip_flags</TT
  689. ></DT
  690. ><DD
  691. ><P
  692. >A string of the SIP flags used to generate the code for the
  693. <TT
  694. CLASS="LITERAL"
  695. >qtsql</TT
  696. > module and which should be added to those needed by
  697. any module that imports the <TT
  698. CLASS="LITERAL"
  699. >qtsql</TT
  700. > module.</P
  701. ><P
  702. ></P
  703. ><P
  704. ></P
  705. ></DD
  706. ><DT
  707. ><TT
  708. CLASS="LITERAL"
  709. >pyqt_qttable_sip_flags</TT
  710. ></DT
  711. ><DD
  712. ><P
  713. >A string of the SIP flags used to generate the code for the
  714. <TT
  715. CLASS="LITERAL"
  716. >qttable</TT
  717. > module and which should be added to those needed by
  718. any module that imports the <TT
  719. CLASS="LITERAL"
  720. >qttable</TT
  721. > module.</P
  722. ><P
  723. ></P
  724. ><P
  725. ></P
  726. ></DD
  727. ><DT
  728. ><TT
  729. CLASS="LITERAL"
  730. >pyqt_qtui_sip_flags</TT
  731. ></DT
  732. ><DD
  733. ><P
  734. >A string of the SIP flags used to generate the code for the
  735. <TT
  736. CLASS="LITERAL"
  737. >qtui</TT
  738. > module and which should be added to those needed by any
  739. module that imports the <TT
  740. CLASS="LITERAL"
  741. >qtui</TT
  742. > module.</P
  743. ><P
  744. ></P
  745. ><P
  746. ></P
  747. ></DD
  748. ><DT
  749. ><TT
  750. CLASS="LITERAL"
  751. >pyqt_qtxml_sip_flags</TT
  752. ></DT
  753. ><DD
  754. ><P
  755. >A string of the SIP flags used to generate the code for the
  756. <TT
  757. CLASS="LITERAL"
  758. >qtxml</TT
  759. > module and which should be added to those needed by
  760. any module that imports the <TT
  761. CLASS="LITERAL"
  762. >qtxml</TT
  763. > module.</P
  764. ><P
  765. ></P
  766. ><P
  767. ></P
  768. ></DD
  769. ><DT
  770. ><TT
  771. CLASS="LITERAL"
  772. >pyqt_sip_dir</TT
  773. ></DT
  774. ><DD
  775. ><P
  776. >The name of the base directory where the <TT
  777. CLASS="LITERAL"
  778. >.sip</TT
  779. > files for each
  780. of the PyTQt modules is installed. A sub-directory exists with the same name as
  781. the module.</P
  782. ><P
  783. ></P
  784. ><P
  785. ></P
  786. ></DD
  787. ><DT
  788. ><TT
  789. CLASS="LITERAL"
  790. >pyqt_version</TT
  791. ></DT
  792. ><DD
  793. ><P
  794. >The PyTQt version as a 3 part hexadecimal number (eg. v3.10 is represented as
  795. <TT
  796. CLASS="LITERAL"
  797. >0x030a00</TT
  798. >).</P
  799. ><P
  800. ></P
  801. ><P
  802. ></P
  803. ></DD
  804. ><DT
  805. ><TT
  806. CLASS="LITERAL"
  807. >pyqt_version_str</TT
  808. ></DT
  809. ><DD
  810. ><P
  811. >The PyTQt version as a string. For development snapshots it will start with
  812. <TT
  813. CLASS="LITERAL"
  814. >snapshot-</TT
  815. >.</P
  816. ><P
  817. ></P
  818. ><P
  819. ></P
  820. ></DD
  821. ></DL
  822. ></DIV
  823. ></DD
  824. ><DT
  825. ><TT
  826. CLASS="LITERAL"
  827. >TQtModuleMakefile(sipconfig.SIPModuleMakefile)</TT
  828. ></DT
  829. ><DD
  830. ><P
  831. >The Makefile class for modules that import the <TT
  832. CLASS="LITERAL"
  833. >qt</TT
  834. > module.</P
  835. ><P
  836. ></P
  837. ><DIV
  838. CLASS="VARIABLELIST"
  839. ><DL
  840. ><DT
  841. ><TT
  842. CLASS="LITERAL"
  843. >finalise(self)</TT
  844. ></DT
  845. ><DD
  846. ><P
  847. >This is a reimplementation of <TT
  848. CLASS="LITERAL"
  849. >sipconfig.Makefile.finalise()</TT
  850. >.</P
  851. ><P
  852. ></P
  853. ><P
  854. ></P
  855. ></DD
  856. ></DL
  857. ></DIV
  858. ></DD
  859. ><DT
  860. ><TT
  861. CLASS="LITERAL"
  862. >TQtAxContainerModuleMakefile(TQtModuleMakefile)</TT
  863. ></DT
  864. ><DD
  865. ><P
  866. >The Makefile class for modules that import the <TT
  867. CLASS="LITERAL"
  868. >qtaxcontainer</TT
  869. >
  870. module.</P
  871. ><P
  872. ></P
  873. ><DIV
  874. CLASS="VARIABLELIST"
  875. ><DL
  876. ><DT
  877. ><TT
  878. CLASS="LITERAL"
  879. >finalise(self)</TT
  880. ></DT
  881. ><DD
  882. ><P
  883. >This is a reimplementation of <TT
  884. CLASS="LITERAL"
  885. >sipconfig.Makefile.finalise()</TT
  886. >.</P
  887. ><P
  888. ></P
  889. ><P
  890. ></P
  891. ></DD
  892. ></DL
  893. ></DIV
  894. ></DD
  895. ><DT
  896. ><TT
  897. CLASS="LITERAL"
  898. >TQtCanvasModuleMakefile(TQtModuleMakefile)</TT
  899. ></DT
  900. ><DD
  901. ><P
  902. >The Makefile class for modules that import the <TT
  903. CLASS="LITERAL"
  904. >qtcanvas</TT
  905. >
  906. module.</P
  907. ><P
  908. ></P
  909. ><DIV
  910. CLASS="VARIABLELIST"
  911. ><DL
  912. ><DT
  913. ><TT
  914. CLASS="LITERAL"
  915. >finalise(self)</TT
  916. ></DT
  917. ><DD
  918. ><P
  919. >This is a reimplementation of <TT
  920. CLASS="LITERAL"
  921. >sipconfig.Makefile.finalise()</TT
  922. >.</P
  923. ><P
  924. ></P
  925. ><P
  926. ></P
  927. ></DD
  928. ></DL
  929. ></DIV
  930. ></DD
  931. ><DT
  932. ><TT
  933. CLASS="LITERAL"
  934. >TQtExtModuleMakefile(TQtModuleMakefile)</TT
  935. ></DT
  936. ><DD
  937. ><P
  938. >The Makefile class for modules that import the <TT
  939. CLASS="LITERAL"
  940. >qtext</TT
  941. > module.</P
  942. ><P
  943. ></P
  944. ><DIV
  945. CLASS="VARIABLELIST"
  946. ><DL
  947. ><DT
  948. ><TT
  949. CLASS="LITERAL"
  950. >finalise(self)</TT
  951. ></DT
  952. ><DD
  953. ><P
  954. >This is a reimplementation of <TT
  955. CLASS="LITERAL"
  956. >sipconfig.Makefile.finalise()</TT
  957. >.</P
  958. ><P
  959. ></P
  960. ><P
  961. ></P
  962. ></DD
  963. ></DL
  964. ></DIV
  965. ></DD
  966. ><DT
  967. ><TT
  968. CLASS="LITERAL"
  969. >TQtGLModuleMakefile(TQtModuleMakefile)</TT
  970. ></DT
  971. ><DD
  972. ><P
  973. >The Makefile class for modules that import the <TT
  974. CLASS="LITERAL"
  975. >qtgl</TT
  976. > module.</P
  977. ><P
  978. ></P
  979. ><DIV
  980. CLASS="VARIABLELIST"
  981. ><DL
  982. ><DT
  983. ><TT
  984. CLASS="LITERAL"
  985. >finalise(self)</TT
  986. ></DT
  987. ><DD
  988. ><P
  989. >This is a reimplementation of <TT
  990. CLASS="LITERAL"
  991. >sipconfig.Makefile.finalise()</TT
  992. >.</P
  993. ><P
  994. ></P
  995. ><P
  996. ></P
  997. ></DD
  998. ></DL
  999. ></DIV
  1000. ></DD
  1001. ><DT
  1002. ><TT
  1003. CLASS="LITERAL"
  1004. >TQtNetworkModuleMakefile(TQtModuleMakefile)</TT
  1005. ></DT
  1006. ><DD
  1007. ><P
  1008. >The Makefile class for modules that import the <TT
  1009. CLASS="LITERAL"
  1010. >qtnetwork</TT
  1011. >
  1012. module.</P
  1013. ><P
  1014. ></P
  1015. ><DIV
  1016. CLASS="VARIABLELIST"
  1017. ><DL
  1018. ><DT
  1019. ><TT
  1020. CLASS="LITERAL"
  1021. >finalise(self)</TT
  1022. ></DT
  1023. ><DD
  1024. ><P
  1025. >This is a reimplementation of <TT
  1026. CLASS="LITERAL"
  1027. >sipconfig.Makefile.finalise()</TT
  1028. >.</P
  1029. ><P
  1030. ></P
  1031. ><P
  1032. ></P
  1033. ></DD
  1034. ></DL
  1035. ></DIV
  1036. ></DD
  1037. ><DT
  1038. ><TT
  1039. CLASS="LITERAL"
  1040. >TQtTableModuleMakefile(TQtModuleMakefile)</TT
  1041. ></DT
  1042. ><DD
  1043. ><P
  1044. >The Makefile class for modules that import the <TT
  1045. CLASS="LITERAL"
  1046. >qttable</TT
  1047. >
  1048. module.</P
  1049. ><P
  1050. ></P
  1051. ><DIV
  1052. CLASS="VARIABLELIST"
  1053. ><DL
  1054. ><DT
  1055. ><TT
  1056. CLASS="LITERAL"
  1057. >finalise(self)</TT
  1058. ></DT
  1059. ><DD
  1060. ><P
  1061. >This is a reimplementation of <TT
  1062. CLASS="LITERAL"
  1063. >sipconfig.Makefile.finalise()</TT
  1064. >.</P
  1065. ><P
  1066. ></P
  1067. ><P
  1068. ></P
  1069. ></DD
  1070. ></DL
  1071. ></DIV
  1072. ></DD
  1073. ><DT
  1074. ><TT
  1075. CLASS="LITERAL"
  1076. >TQtSQLModuleMakefile(TQtTableModuleMakefile)</TT
  1077. ></DT
  1078. ><DD
  1079. ><P
  1080. >The Makefile class for modules that import the <TT
  1081. CLASS="LITERAL"
  1082. >qtsql</TT
  1083. > module.</P
  1084. ><P
  1085. ></P
  1086. ><DIV
  1087. CLASS="VARIABLELIST"
  1088. ><DL
  1089. ><DT
  1090. ><TT
  1091. CLASS="LITERAL"
  1092. >finalise(self)</TT
  1093. ></DT
  1094. ><DD
  1095. ><P
  1096. >This is a reimplementation of <TT
  1097. CLASS="LITERAL"
  1098. >sipconfig.Makefile.finalise()</TT
  1099. >.</P
  1100. ><P
  1101. ></P
  1102. ><P
  1103. ></P
  1104. ></DD
  1105. ></DL
  1106. ></DIV
  1107. ></DD
  1108. ><DT
  1109. ><TT
  1110. CLASS="LITERAL"
  1111. >TQtUIModuleMakefile(TQtModuleMakefile)</TT
  1112. ></DT
  1113. ><DD
  1114. ><P
  1115. >The Makefile class for modules that import the <TT
  1116. CLASS="LITERAL"
  1117. >qtui</TT
  1118. > module.</P
  1119. ><P
  1120. ></P
  1121. ><DIV
  1122. CLASS="VARIABLELIST"
  1123. ><DL
  1124. ><DT
  1125. ><TT
  1126. CLASS="LITERAL"
  1127. >finalise(self)</TT
  1128. ></DT
  1129. ><DD
  1130. ><P
  1131. >This is a reimplementation of <TT
  1132. CLASS="LITERAL"
  1133. >sipconfig.Makefile.finalise()</TT
  1134. >.</P
  1135. ><P
  1136. ></P
  1137. ><P
  1138. ></P
  1139. ></DD
  1140. ></DL
  1141. ></DIV
  1142. ></DD
  1143. ><DT
  1144. ><TT
  1145. CLASS="LITERAL"
  1146. >TQtXMLModuleMakefile(TQtModuleMakefile)</TT
  1147. ></DT
  1148. ><DD
  1149. ><P
  1150. >The Makefile class for modules that import the <TT
  1151. CLASS="LITERAL"
  1152. >qtxml</TT
  1153. > module.</P
  1154. ><P
  1155. ></P
  1156. ><DIV
  1157. CLASS="VARIABLELIST"
  1158. ><DL
  1159. ><DT
  1160. ><TT
  1161. CLASS="LITERAL"
  1162. >finalise(self)</TT
  1163. ></DT
  1164. ><DD
  1165. ><P
  1166. >This is a reimplementation of <TT
  1167. CLASS="LITERAL"
  1168. >sipconfig.Makefile.finalise()</TT
  1169. >.</P
  1170. ><P
  1171. ></P
  1172. ><P
  1173. ></P
  1174. ></DD
  1175. ></DL
  1176. ></DIV
  1177. ></DD
  1178. ></DL
  1179. ></DIV
  1180. ></DIV
  1181. ><DIV
  1182. CLASS="SECT1"
  1183. ><HR><H2
  1184. CLASS="SECT1"
  1185. ><A
  1186. NAME="AEN457"
  1187. >Things to be Aware Of</A
  1188. ></H2
  1189. ><DIV
  1190. CLASS="SECT2"
  1191. ><H3
  1192. CLASS="SECT2"
  1193. ><A
  1194. NAME="AEN459"
  1195. >super and Wrapped Classes</A
  1196. ></H3
  1197. ><P
  1198. >Internally PyTQt implements a lazy technique for attribute lookup where
  1199. attributes are only placed in type and instance dictionaries when they are
  1200. first referenced. This technique is needed to reduce the time taken to import
  1201. large modules such as PyTQt.</P
  1202. ><P
  1203. >In most circumstances this technique is transparent to an application. The
  1204. exception is when <TT
  1205. CLASS="LITERAL"
  1206. >super</TT
  1207. > is used with a PyTQt class. The way
  1208. that <TT
  1209. CLASS="LITERAL"
  1210. >super</TT
  1211. > is currently implemented means that the lazy
  1212. lookup is bypassed resulting in <TT
  1213. CLASS="LITERAL"
  1214. >AttributeError</TT
  1215. > exceptions
  1216. unless the attribute has been previously referenced.</P
  1217. ><P
  1218. >Note that this restriction applies to any class wrapped by SIP and not just
  1219. PyTQt.</P
  1220. ></DIV
  1221. ><DIV
  1222. CLASS="SECT2"
  1223. ><HR><H3
  1224. CLASS="SECT2"
  1225. ><A
  1226. NAME="AEN467"
  1227. >Python Strings, TQt Strings and Unicode</A
  1228. ></H3
  1229. ><P
  1230. >Unicode support was added to TQt in v2.0 and to Python in v1.6. In TQt, Unicode
  1231. support is implemented using the <TT
  1232. CLASS="LITERAL"
  1233. >TQString</TT
  1234. > class. It is
  1235. important to understand that <TT
  1236. CLASS="LITERAL"
  1237. >TQString</TT
  1238. >s, Python string objects
  1239. and Python Unicode objects are all different but conversions between them are
  1240. automatic in many cases and easy to achieve manually when needed.</P
  1241. ><P
  1242. >Whenever PyTQt expects a <TT
  1243. CLASS="LITERAL"
  1244. >TQString</TT
  1245. > as a function argument, a
  1246. Python string object or a Python Unicode object can be provided instead, and
  1247. PyTQt will do the necessary conversion automatically.</P
  1248. ><P
  1249. >You may also manually convert Python string and Unicode objects to
  1250. <TT
  1251. CLASS="LITERAL"
  1252. >TQString</TT
  1253. >s by using the <TT
  1254. CLASS="LITERAL"
  1255. >TQString</TT
  1256. > constructor
  1257. as demonstrated in the following code fragment.</P
  1258. ><TABLE
  1259. BORDER="0"
  1260. BGCOLOR="#E0E0E0"
  1261. WIDTH="100%"
  1262. ><TR
  1263. ><TD
  1264. ><PRE
  1265. CLASS="PROGRAMLISTING"
  1266. >qs1 = TQString('Converted Python string object')
  1267. qs2 = TQString(u'Converted Python Unicode object')</PRE
  1268. ></TD
  1269. ></TR
  1270. ></TABLE
  1271. ><P
  1272. >In order to convert a <TT
  1273. CLASS="LITERAL"
  1274. >TQString</TT
  1275. > to a Python string object use
  1276. the Python <TT
  1277. CLASS="LITERAL"
  1278. >str()</TT
  1279. > function. Applying
  1280. <TT
  1281. CLASS="LITERAL"
  1282. >str()</TT
  1283. > to a null <TT
  1284. CLASS="LITERAL"
  1285. >TQString</TT
  1286. > and an empty
  1287. <TT
  1288. CLASS="LITERAL"
  1289. >TQString</TT
  1290. > both result in an empty Python string object.</P
  1291. ><P
  1292. >In order to convert a <TT
  1293. CLASS="LITERAL"
  1294. >TQString</TT
  1295. > to a Python Unicode object use
  1296. the Python <TT
  1297. CLASS="LITERAL"
  1298. >unicode()</TT
  1299. > function. Applying
  1300. <TT
  1301. CLASS="LITERAL"
  1302. >unicode()</TT
  1303. > to a null <TT
  1304. CLASS="LITERAL"
  1305. >TQString</TT
  1306. > and an empty
  1307. <TT
  1308. CLASS="LITERAL"
  1309. >TQString</TT
  1310. > both result in an empty Python Unicode object.</P
  1311. ></DIV
  1312. ><DIV
  1313. CLASS="SECT2"
  1314. ><HR><H3
  1315. CLASS="SECT2"
  1316. ><A
  1317. NAME="AEN490"
  1318. >Access to Protected Member Functions</A
  1319. ></H3
  1320. ><P
  1321. >When an instance of a C++ class is not created from Python it is not possible
  1322. to access the protected member functions, or emit the signals, of that
  1323. instance. Attempts to do so will raise a Python exception. Also, any Python
  1324. methods corresponding to the instance's virtual member functions will never be
  1325. called.</P
  1326. ></DIV
  1327. ><DIV
  1328. CLASS="SECT2"
  1329. ><HR><H3
  1330. CLASS="SECT2"
  1331. ><A
  1332. NAME="AEN493"
  1333. ><TT
  1334. CLASS="LITERAL"
  1335. >None</TT
  1336. > and <TT
  1337. CLASS="LITERAL"
  1338. >NULL</TT
  1339. ></A
  1340. ></H3
  1341. ><P
  1342. >Throughout the bindings, the <TT
  1343. CLASS="LITERAL"
  1344. >None</TT
  1345. > value can be specified
  1346. wherever <TT
  1347. CLASS="LITERAL"
  1348. >NULL</TT
  1349. > is acceptable to the underlying C++ code.</P
  1350. ><P
  1351. >Equally, <TT
  1352. CLASS="LITERAL"
  1353. >NULL</TT
  1354. > is converted to <TT
  1355. CLASS="LITERAL"
  1356. >None</TT
  1357. >
  1358. whenever it is returned by the underlying C++ code.</P
  1359. ></DIV
  1360. ><DIV
  1361. CLASS="SECT2"
  1362. ><HR><H3
  1363. CLASS="SECT2"
  1364. ><A
  1365. NAME="AEN503"
  1366. >Support for C++ <TT
  1367. CLASS="LITERAL"
  1368. >void *</TT
  1369. > Data Types</A
  1370. ></H3
  1371. ><P
  1372. >PyTQt represents <TT
  1373. CLASS="LITERAL"
  1374. >void *</TT
  1375. > values as objects of type
  1376. <TT
  1377. CLASS="LITERAL"
  1378. >sip.voidptr</TT
  1379. >. Such values are often used to pass the
  1380. addresses of external objects between different Python modules. To make this
  1381. easier, a Python integer (or anything that Python can convert to an integer)
  1382. can be used whenever a <TT
  1383. CLASS="LITERAL"
  1384. >sip.voidptr</TT
  1385. > is expected.</P
  1386. ><P
  1387. >A <TT
  1388. CLASS="LITERAL"
  1389. >sip.voidptr</TT
  1390. > may be converted to a Python integer by using
  1391. the <TT
  1392. CLASS="LITERAL"
  1393. >int()</TT
  1394. > builtin function.</P
  1395. ><P
  1396. >A <TT
  1397. CLASS="LITERAL"
  1398. >sip.voidptr</TT
  1399. > may be converted to a Python string by using
  1400. its <TT
  1401. CLASS="LITERAL"
  1402. >asstring()</TT
  1403. > method. The <TT
  1404. CLASS="LITERAL"
  1405. >asstring()</TT
  1406. >
  1407. method takes an integer argument which is the length of the data in bytes.</P
  1408. ></DIV
  1409. ><DIV
  1410. CLASS="SECT2"
  1411. ><HR><H3
  1412. CLASS="SECT2"
  1413. ><A
  1414. NAME="AEN517"
  1415. >Support for Threads</A
  1416. ></H3
  1417. ><P
  1418. >PyTQt implements the full set of TQt's thread classes. Python, of course, also
  1419. has its own thread extension modules. If you are using SIP v4 (or later) and
  1420. Python v2.3.5 (or later) then PyTQt does not impose any additional restrictions.
  1421. (Read the relevant part of the TQt documentation to understand the restrictions
  1422. imposed by the TQt API.)</P
  1423. ><P
  1424. >If you are using earlier versions of either SIP or Python then it is possible
  1425. to use either of the APIs so long as you follow some simple rules.</P
  1426. ><P
  1427. ></P
  1428. ><UL
  1429. ><LI
  1430. ><P
  1431. >If you use the TQt API then the very first <TT
  1432. CLASS="LITERAL"
  1433. >import</TT
  1434. > of one of
  1435. the PyTQt modules must be done from the main thread.</P
  1436. ></LI
  1437. ><LI
  1438. ><P
  1439. >If you use the Python API then all calls to PyTQt (including any
  1440. <TT
  1441. CLASS="LITERAL"
  1442. >import</TT
  1443. >s) must be done from one thread only. Therefore, if
  1444. you want to make calls to PyTQt from several threads then you must use the TQt
  1445. API.</P
  1446. ></LI
  1447. ><LI
  1448. ><P
  1449. >If you want to use both APIs in the same application then all calls to PyTQt
  1450. must be done from threads created using the TQt API.</P
  1451. ></LI
  1452. ></UL
  1453. ><P
  1454. >The above comments actually apply to any SIP generated module, not just PyTQt.</P
  1455. ></DIV
  1456. ><DIV
  1457. CLASS="SECT2"
  1458. ><HR><H3
  1459. CLASS="SECT2"
  1460. ><A
  1461. NAME="AEN531"
  1462. >Garbage Collection</A
  1463. ></H3
  1464. ><P
  1465. >C++ does not garbage collect unreferenced class instances, whereas Python does.
  1466. In the following C++ fragment both colours exist even though the first can no
  1467. longer be referenced from within the program:</P
  1468. ><TABLE
  1469. BORDER="0"
  1470. BGCOLOR="#E0E0E0"
  1471. WIDTH="100%"
  1472. ><TR
  1473. ><TD
  1474. ><PRE
  1475. CLASS="PROGRAMLISTING"
  1476. >c = new TQColor();
  1477. c = new TQColor();</PRE
  1478. ></TD
  1479. ></TR
  1480. ></TABLE
  1481. ><P
  1482. >In the corresponding Python fragment, the first colour is destroyed when
  1483. the second is assigned to <TT
  1484. CLASS="LITERAL"
  1485. >c</TT
  1486. >:</P
  1487. ><TABLE
  1488. BORDER="0"
  1489. BGCOLOR="#E0E0E0"
  1490. WIDTH="100%"
  1491. ><TR
  1492. ><TD
  1493. ><PRE
  1494. CLASS="PROGRAMLISTING"
  1495. >c = TQColor()
  1496. c = TQColor()</PRE
  1497. ></TD
  1498. ></TR
  1499. ></TABLE
  1500. ><P
  1501. >In Python, each colour must be assigned to different names. Typically this
  1502. is done within class definitions, so the code fragment would be something like:</P
  1503. ><TABLE
  1504. BORDER="0"
  1505. BGCOLOR="#E0E0E0"
  1506. WIDTH="100%"
  1507. ><TR
  1508. ><TD
  1509. ><PRE
  1510. CLASS="PROGRAMLISTING"
  1511. >self.c1 = TQColor()
  1512. self.c2 = TQColor()</PRE
  1513. ></TD
  1514. ></TR
  1515. ></TABLE
  1516. ><P
  1517. >Sometimes a TQt class instance will maintain a pointer to another instance and
  1518. will eventually call the destructor of that second instance. The most common
  1519. example is that a <TT
  1520. CLASS="LITERAL"
  1521. >TQObject</TT
  1522. > (and any of its sub-classes) keeps
  1523. pointers to its children and will automatically call their destructors. In
  1524. these cases, the corresponding Python object will also keep a reference to the
  1525. corresponding child objects.</P
  1526. ><P
  1527. >So, in the following Python fragment, the first <TT
  1528. CLASS="LITERAL"
  1529. >TQLabel</TT
  1530. > is
  1531. not destroyed when the second is assigned to <TT
  1532. CLASS="LITERAL"
  1533. >l</TT
  1534. > because the
  1535. parent <TT
  1536. CLASS="LITERAL"
  1537. >TQWidget</TT
  1538. > still has a reference to it.</P
  1539. ><TABLE
  1540. BORDER="0"
  1541. BGCOLOR="#E0E0E0"
  1542. WIDTH="100%"
  1543. ><TR
  1544. ><TD
  1545. ><PRE
  1546. CLASS="PROGRAMLISTING"
  1547. >p = TQWidget()
  1548. l = TQLabel('First label',p)
  1549. l = TQLabel('Second label',p)</PRE
  1550. ></TD
  1551. ></TR
  1552. ></TABLE
  1553. ></DIV
  1554. ><DIV
  1555. CLASS="SECT2"
  1556. ><HR><H3
  1557. CLASS="SECT2"
  1558. ><A
  1559. NAME="AEN547"
  1560. >C++ Variables</A
  1561. ></H3
  1562. ><P
  1563. >Access to C++ variables is supported. They are accessed as Python instance
  1564. variables. For example:</P
  1565. ><TABLE
  1566. BORDER="0"
  1567. BGCOLOR="#E0E0E0"
  1568. WIDTH="100%"
  1569. ><TR
  1570. ><TD
  1571. ><PRE
  1572. CLASS="PROGRAMLISTING"
  1573. >tab = TQTab()
  1574. tab.label = "First Tab"
  1575. tab.r = TQRect(10,10,75,30)</PRE
  1576. ></TD
  1577. ></TR
  1578. ></TABLE
  1579. ><P
  1580. >Global variables and static class variables are effectively read-only. They
  1581. can be assigned to, but the underlying C++ variable will not be changed. This
  1582. may change in the future.</P
  1583. ><P
  1584. >Access to protected C++ class variables is not supported. This may change in
  1585. the future.</P
  1586. ></DIV
  1587. ><DIV
  1588. CLASS="SECT2"
  1589. ><HR><H3
  1590. CLASS="SECT2"
  1591. ><A
  1592. NAME="AEN553"
  1593. >Multiple Inheritance</A
  1594. ></H3
  1595. ><P
  1596. >It is not possible to define a new Python class that sub-classes from more than
  1597. one TQt class.</P
  1598. ></DIV
  1599. ><DIV
  1600. CLASS="SECT2"
  1601. ><HR><H3
  1602. CLASS="SECT2"
  1603. ><A
  1604. NAME="AEN556"
  1605. >i18n Support</A
  1606. ></H3
  1607. ><P
  1608. >TQt implements i18n support through the TQt Linguist application, the
  1609. <TT
  1610. CLASS="LITERAL"
  1611. >TQTranslator</TT
  1612. > class, and the
  1613. <TT
  1614. CLASS="LITERAL"
  1615. >TQApplication::translate()</TT
  1616. >, <TT
  1617. CLASS="LITERAL"
  1618. >TQObject::tr()</TT
  1619. >
  1620. and <TT
  1621. CLASS="LITERAL"
  1622. >TQObject::trUtf8()</TT
  1623. > methods. Usually the
  1624. <TT
  1625. CLASS="LITERAL"
  1626. >tr()</TT
  1627. > method is used to obtain the correct translation of a
  1628. message. The translation process uses a message context to allow the same
  1629. message to be translated differently. <TT
  1630. CLASS="LITERAL"
  1631. >tr()</TT
  1632. > is actually
  1633. generated by <TT
  1634. CLASS="LITERAL"
  1635. >moc</TT
  1636. > and uses the hardcoded class name as the
  1637. context. On the other hand, <TT
  1638. CLASS="LITERAL"
  1639. >TQApplication::translate()</TT
  1640. >
  1641. allows to context to be explicitly stated.</P
  1642. ><P
  1643. >Unfortunately, because of the way TQt implents <TT
  1644. CLASS="LITERAL"
  1645. >tr()</TT
  1646. > (and
  1647. <TT
  1648. CLASS="LITERAL"
  1649. >trUtf8()</TT
  1650. >) it is not possible for PyTQt to exactly reproduce
  1651. its behavour. The PyTQt implementation of <TT
  1652. CLASS="LITERAL"
  1653. >tr()</TT
  1654. > (and
  1655. <TT
  1656. CLASS="LITERAL"
  1657. >trUtf8()</TT
  1658. >) uses the class name of the instance as the
  1659. context. The key difference, and the source of potential problems, is that the
  1660. context is determined dynamically in PyTQt, but is hardcoded in TQt. In other
  1661. words, the context of a translation may change depending on an instance's class
  1662. hierarchy.</P
  1663. ><TABLE
  1664. BORDER="0"
  1665. BGCOLOR="#E0E0E0"
  1666. WIDTH="100%"
  1667. ><TR
  1668. ><TD
  1669. ><PRE
  1670. CLASS="PROGRAMLISTING"
  1671. >class A(TQObject):
  1672. def __init__(self):
  1673. TQObject.__init__(self)
  1674. def hello(self):
  1675. return self.tr("Hello")
  1676. class B(A):
  1677. def __init__(self):
  1678. A.__init__(self)
  1679. a = A()
  1680. a.hello()
  1681. b = B()
  1682. b.hello()</PRE
  1683. ></TD
  1684. ></TR
  1685. ></TABLE
  1686. ><P
  1687. >In the above the message is translated by <TT
  1688. CLASS="LITERAL"
  1689. >a.hello()</TT
  1690. > using a
  1691. context of <TT
  1692. CLASS="LITERAL"
  1693. >A</TT
  1694. >, and by <TT
  1695. CLASS="LITERAL"
  1696. >b.hello()</TT
  1697. > using a
  1698. context of <TT
  1699. CLASS="LITERAL"
  1700. >B</TT
  1701. >. In the equivalent C++ version the context
  1702. would be <TT
  1703. CLASS="LITERAL"
  1704. >A</TT
  1705. > in both cases.</P
  1706. ><P
  1707. >The PyTQt behaviour is unsatisfactory and may be changed in the future. It is
  1708. recommended that <TT
  1709. CLASS="LITERAL"
  1710. >TQApplication.translate()</TT
  1711. > be used in
  1712. preference to <TT
  1713. CLASS="LITERAL"
  1714. >tr()</TT
  1715. > (and <TT
  1716. CLASS="LITERAL"
  1717. >trUtf8()</TT
  1718. >). This
  1719. is guaranteed to work with current and future versions of PyTQt and makes it
  1720. much easier to share message files between Python and C++ code. Below is the
  1721. alternative implementation of <TT
  1722. CLASS="LITERAL"
  1723. >A</TT
  1724. > that uses
  1725. <TT
  1726. CLASS="LITERAL"
  1727. >TQApplication.translate()</TT
  1728. >.</P
  1729. ><TABLE
  1730. BORDER="0"
  1731. BGCOLOR="#E0E0E0"
  1732. WIDTH="100%"
  1733. ><TR
  1734. ><TD
  1735. ><PRE
  1736. CLASS="PROGRAMLISTING"
  1737. >class A(TQObject):
  1738. def __init__(self):
  1739. TQObject.__init__(self)
  1740. def hello(self):
  1741. return qApp.translate("A","Hello")</PRE
  1742. ></TD
  1743. ></TR
  1744. ></TABLE
  1745. ><P
  1746. >Note that the code generated by <TT
  1747. CLASS="LITERAL"
  1748. >pyuic</TT
  1749. > uses
  1750. <TT
  1751. CLASS="LITERAL"
  1752. >TQApplication.translate()</TT
  1753. >.</P
  1754. ></DIV
  1755. ></DIV
  1756. ><DIV
  1757. CLASS="SECT1"
  1758. ><HR><H2
  1759. CLASS="SECT1"
  1760. ><A
  1761. NAME="AEN589"
  1762. >Signal and Slot Support</A
  1763. ></H2
  1764. ><P
  1765. >A signal may be either a TQt signal (specified using
  1766. <TT
  1767. CLASS="LITERAL"
  1768. >SIGNAL()</TT
  1769. >) or a Python signal (specified using
  1770. <TT
  1771. CLASS="LITERAL"
  1772. >PYSIGNAL()</TT
  1773. >).</P
  1774. ><P
  1775. >A slot can be either a Python callable object, a TQt signal (specified using
  1776. <TT
  1777. CLASS="LITERAL"
  1778. >SIGNAL()</TT
  1779. >), a Python signal (specified using
  1780. <TT
  1781. CLASS="LITERAL"
  1782. >PYSIGNAL()</TT
  1783. >), or a TQt slot (specified using
  1784. <TT
  1785. CLASS="LITERAL"
  1786. >SLOT()</TT
  1787. >).</P
  1788. ><P
  1789. >You connect signals to slots (and other signals) as you would from C++. For
  1790. example:</P
  1791. ><TABLE
  1792. BORDER="0"
  1793. BGCOLOR="#E0E0E0"
  1794. WIDTH="100%"
  1795. ><TR
  1796. ><TD
  1797. ><PRE
  1798. CLASS="PROGRAMLISTING"
  1799. >TQObject.connect(a,SIGNAL("TQtSig()"),pyFunction)
  1800. TQObject.connect(a,SIGNAL("TQtSig()"),pyClass.pyMethod)
  1801. TQObject.connect(a,SIGNAL("TQtSig()"),PYSIGNAL("PySig"))
  1802. TQObject.connect(a,SIGNAL("TQtSig()"),SLOT("TQtSlot()"))
  1803. TQObject.connect(a,PYSIGNAL("PySig"),pyFunction)
  1804. TQObject.connect(a,PYSIGNAL("PySig"),pyClass.pyMethod)
  1805. TQObject.connect(a,PYSIGNAL("PySig"),SIGNAL("TQtSig()"))
  1806. TQObject.connect(a,PYSIGNAL("PySig"),SLOT("TQtSlot()"))</PRE
  1807. ></TD
  1808. ></TR
  1809. ></TABLE
  1810. ><P
  1811. >When a slot is a Python method that corresponds to a TQt slot then a signal can
  1812. be connected to either the Python method or the TQt slot. The following
  1813. connections achieve the same effect.</P
  1814. ><TABLE
  1815. BORDER="0"
  1816. BGCOLOR="#E0E0E0"
  1817. WIDTH="100%"
  1818. ><TR
  1819. ><TD
  1820. ><PRE
  1821. CLASS="PROGRAMLISTING"
  1822. >sbar = TQScrollBar()
  1823. lcd = TQLCDNumber()
  1824. TQObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd.display)
  1825. TQObject.connect(sbar,SIGNAL("valueChanged(int)"),lcd,SLOT("display(int)"))</PRE
  1826. ></TD
  1827. ></TR
  1828. ></TABLE
  1829. ><P
  1830. >The difference is that the second connection is made at the C++ level and is
  1831. more efficient.</P
  1832. ><P
  1833. >Disconnecting signals works in exactly the same way.</P
  1834. ><P
  1835. >Any instance of a class that is derived from the <TT
  1836. CLASS="LITERAL"
  1837. >TQObject</TT
  1838. >
  1839. class can emit a signal using the <TT
  1840. CLASS="LITERAL"
  1841. >emit</TT
  1842. > method. This takes
  1843. two arguments. The first is the Python or TQt signal, the second is a Python
  1844. tuple which are the arguments to the signal. For example:</P
  1845. ><TABLE
  1846. BORDER="0"
  1847. BGCOLOR="#E0E0E0"
  1848. WIDTH="100%"
  1849. ><TR
  1850. ><TD
  1851. ><PRE
  1852. CLASS="PROGRAMLISTING"
  1853. >a.emit(SIGNAL("clicked()"),())
  1854. a.emit(PYSIGNAL("pySig"),("Hello","World"))</PRE
  1855. ></TD
  1856. ></TR
  1857. ></TABLE
  1858. ><P
  1859. >Note that when a slot is a Python callable object its reference count is not
  1860. increased. This means that a class instance can be deleted without having to
  1861. explicitly disconnect any signals connected to its methods. However, it also
  1862. means that using lambda expressions as slots will not work unless you keep a
  1863. separate reference to the expression to prevent it from being immediately
  1864. garbage collected.</P
  1865. ><P
  1866. >TQt allows a signal to be connected to a slot that requires fewer arguments than
  1867. the signal passes. The extra arguments are tquietly discarded. Python slots
  1868. can be used in the same way. </P
  1869. ></DIV
  1870. ><DIV
  1871. CLASS="SECT1"
  1872. ><HR><H2
  1873. CLASS="SECT1"
  1874. ><A
  1875. NAME="AEN610"
  1876. >Static Member Functions</A
  1877. ></H2
  1878. ><P
  1879. >Static member functions are implemented as Python class functions.
  1880. For example the C++ static member function
  1881. <TT
  1882. CLASS="LITERAL"
  1883. >TQObject::connect()</TT
  1884. > is called from Python as
  1885. <TT
  1886. CLASS="LITERAL"
  1887. >TQObject.connect()</TT
  1888. > or <TT
  1889. CLASS="LITERAL"
  1890. >self.connect()</TT
  1891. > if
  1892. called from a sub-class of <TT
  1893. CLASS="LITERAL"
  1894. >TQObject</TT
  1895. >.</P
  1896. ></DIV
  1897. ><DIV
  1898. CLASS="SECT1"
  1899. ><HR><H2
  1900. CLASS="SECT1"
  1901. ><A
  1902. NAME="AEN617"
  1903. >Enumerated Types</A
  1904. ></H2
  1905. ><P
  1906. >Enumerated types are implemented as a set of simple variables corresponding to
  1907. the separate enumerated values.</P
  1908. ><P
  1909. >When using an enumerated value the name of the class (or a sub-class) in which
  1910. the enumerated type was defined in must be included. For example:</P
  1911. ><TABLE
  1912. BORDER="0"
  1913. BGCOLOR="#E0E0E0"
  1914. WIDTH="100%"
  1915. ><TR
  1916. ><TD
  1917. ><PRE
  1918. CLASS="PROGRAMLISTING"
  1919. >TQt.SolidPattern
  1920. TQWidget.TabFocus
  1921. TQFrame.TabFocus</PRE
  1922. ></TD
  1923. ></TR
  1924. ></TABLE
  1925. ></DIV
  1926. ><DIV
  1927. CLASS="SECT1"
  1928. ><HR><H2
  1929. CLASS="SECT1"
  1930. ><A
  1931. NAME="AEN622"
  1932. >Module Reference Documentation</A
  1933. ></H2
  1934. ><P
  1935. >The following sections should be used in conjunction with the normal class
  1936. documentation - only the differences specific to the Python bindings are
  1937. documented here.</P
  1938. ><P
  1939. >In these sections, <SPAN
  1940. CLASS="emphasis"
  1941. ><I
  1942. CLASS="EMPHASIS"
  1943. >Not yet implemented</I
  1944. ></SPAN
  1945. >
  1946. implies that the feature can be easily implemented if needed. <SPAN
  1947. CLASS="emphasis"
  1948. ><I
  1949. CLASS="EMPHASIS"
  1950. >Not
  1951. implemented</I
  1952. ></SPAN
  1953. > implies that the feature will not be implemented, either
  1954. because it cannot be or because it is not appropriate.</P
  1955. ><P
  1956. >If a class is described as being <SPAN
  1957. CLASS="emphasis"
  1958. ><I
  1959. CLASS="EMPHASIS"
  1960. >fully implemented</I
  1961. ></SPAN
  1962. > then
  1963. all non-private member functions and all public class variables have been
  1964. implemented.</P
  1965. ><P
  1966. >If an operator has been implemented then it is stated explicitly.</P
  1967. ><P
  1968. >Classes that are not mentioned have not yet been implemented.</P
  1969. ></DIV
  1970. ><DIV
  1971. CLASS="SECT1"
  1972. ><HR><H2
  1973. CLASS="SECT1"
  1974. ><A
  1975. NAME="AEN632"
  1976. ><TT
  1977. CLASS="LITERAL"
  1978. >qt</TT
  1979. > Module Reference</A
  1980. ></H2
  1981. ><DIV
  1982. CLASS="SECT2"
  1983. ><H3
  1984. CLASS="SECT2"
  1985. ><A
  1986. NAME="AEN635"
  1987. >TQt Constants</A
  1988. ></H3
  1989. ><P
  1990. >All constant values defined by TQt have equivalent constants defined to Python.</P
  1991. ></DIV
  1992. ><DIV
  1993. CLASS="SECT2"
  1994. ><HR><H3
  1995. CLASS="SECT2"
  1996. ><A
  1997. NAME="AEN638"
  1998. >TQt (TQt v2+)</A
  1999. ></H3
  2000. ><P
  2001. ><TT
  2002. CLASS="LITERAL"
  2003. >TQt</TT
  2004. > is fully implemented.</P
  2005. ></DIV
  2006. ><DIV
  2007. CLASS="SECT2"
  2008. ><HR><H3
  2009. CLASS="SECT2"
  2010. ><A
  2011. NAME="AEN642"
  2012. >TQAccel</A
  2013. ></H3
  2014. ><P
  2015. ><TT
  2016. CLASS="LITERAL"
  2017. >TQAccel</TT
  2018. > is fully implemented.</P
  2019. ></DIV
  2020. ><DIV
  2021. CLASS="SECT2"
  2022. ><HR><H3
  2023. CLASS="SECT2"
  2024. ><A
  2025. NAME="AEN646"
  2026. >TQAction (TQt v2.2+)</A
  2027. ></H3
  2028. ><P
  2029. ><TT
  2030. CLASS="LITERAL"
  2031. >TQAction</TT
  2032. > is fully implemented.</P
  2033. ></DIV
  2034. ><DIV
  2035. CLASS="SECT2"
  2036. ><HR><H3
  2037. CLASS="SECT2"
  2038. ><A
  2039. NAME="AEN650"
  2040. >TQActionGroup (TQt v2.2+)</A
  2041. ></H3
  2042. ><P
  2043. ><TT
  2044. CLASS="LITERAL"
  2045. >TQActionGroup</TT
  2046. > is fully implemented.</P
  2047. ></DIV
  2048. ><DIV
  2049. CLASS="SECT2"
  2050. ><HR><H3
  2051. CLASS="SECT2"
  2052. ><A
  2053. NAME="AEN654"
  2054. >TQApplication</A
  2055. ></H3
  2056. ><DIV
  2057. CLASS="FUNCSYNOPSIS"
  2058. ><P
  2059. ></P
  2060. ><A
  2061. NAME="AEN656"
  2062. ></A
  2063. ><CODE
  2064. CLASS="FUNCDEF"
  2065. >TQApplication</CODE
  2066. >(int &amp;argc, char **argv);<P
  2067. ></P
  2068. ></DIV
  2069. ><P
  2070. >This takes one parameter which is a list of argument strings. Arguments
  2071. used by TQt are removed from the list.</P
  2072. ><DIV
  2073. CLASS="FUNCSYNOPSIS"
  2074. ><P
  2075. ></P
  2076. ><A
  2077. NAME="AEN664"
  2078. ></A
  2079. ><CODE
  2080. CLASS="FUNCDEF"
  2081. >TQApplication</CODE
  2082. >(int &amp;argc, char **argv, bool GUIenabled);<P
  2083. ></P
  2084. ></DIV
  2085. ><P
  2086. >This takes two parameters, the first of which is a list of argument strings.
  2087. Arguments used by TQt are removed from the list.</P
  2088. ><DIV
  2089. CLASS="FUNCSYNOPSIS"
  2090. ><P
  2091. ></P
  2092. ><A
  2093. NAME="AEN674"
  2094. ></A
  2095. ><CODE
  2096. CLASS="FUNCDEF"
  2097. >TQApplication</CODE
  2098. >(int &amp;argc, char **argv, Type type);<P
  2099. ></P
  2100. ></DIV
  2101. ><P
  2102. >This takes two parameters, the first of which is a list of argument strings.
  2103. Arguments used by TQt are removed from the list. (TQt v2.2+)</P
  2104. ><DIV
  2105. CLASS="FUNCSYNOPSIS"
  2106. ><P
  2107. ></P
  2108. ><A
  2109. NAME="AEN684"
  2110. ></A
  2111. ><CODE
  2112. CLASS="FUNCDEF"
  2113. >int exec</CODE
  2114. >();<P
  2115. ></P
  2116. ></DIV
  2117. ><P
  2118. >This has been renamed to <TT
  2119. CLASS="LITERAL"
  2120. >exec_loop</TT
  2121. > in Python.</P
  2122. ></DIV
  2123. ><DIV
  2124. CLASS="SECT2"
  2125. ><HR><H3
  2126. CLASS="SECT2"
  2127. ><A
  2128. NAME="AEN690"
  2129. >TQAssistantClient (TQt v3.1+)</A
  2130. ></H3
  2131. ><P
  2132. ><TT
  2133. CLASS="LITERAL"
  2134. >TQAssistantClient</TT
  2135. > is fully implemented.</P
  2136. ></DIV
  2137. ><DIV
  2138. CLASS="SECT2"
  2139. ><HR><H3
  2140. CLASS="SECT2"
  2141. ><A
  2142. NAME="AEN694"
  2143. >TQBitmap</A
  2144. ></H3
  2145. ><P
  2146. ><TT
  2147. CLASS="LITERAL"
  2148. >TQBitmap</TT
  2149. > is fully implemented.</P
  2150. ></DIV
  2151. ><DIV
  2152. CLASS="SECT2"
  2153. ><HR><H3
  2154. CLASS="SECT2"
  2155. ><A
  2156. NAME="AEN698"
  2157. >TQBrush</A
  2158. ></H3
  2159. ><P
  2160. ><TT
  2161. CLASS="LITERAL"
  2162. >TQBrush</TT
  2163. > is fully implemented, including the Python
  2164. <TT
  2165. CLASS="LITERAL"
  2166. >==</TT
  2167. > and <TT
  2168. CLASS="LITERAL"
  2169. >!=</TT
  2170. > operators.</P
  2171. ></DIV
  2172. ><DIV
  2173. CLASS="SECT2"
  2174. ><HR><H3
  2175. CLASS="SECT2"
  2176. ><A
  2177. NAME="AEN704"
  2178. >TQButton</A
  2179. ></H3
  2180. ><P
  2181. ><TT
  2182. CLASS="LITERAL"
  2183. >TQButton</TT
  2184. > is fully implemented.</P
  2185. ></DIV
  2186. ><DIV
  2187. CLASS="SECT2"
  2188. ><HR><H3
  2189. CLASS="SECT2"
  2190. ><A
  2191. NAME="AEN708"
  2192. >TQButtonGroup</A
  2193. ></H3
  2194. ><P
  2195. ><TT
  2196. CLASS="LITERAL"
  2197. >TQButtonGroup</TT
  2198. > is fully implemented.</P
  2199. ></DIV
  2200. ><DIV
  2201. CLASS="SECT2"
  2202. ><HR><H3
  2203. CLASS="SECT2"
  2204. ><A
  2205. NAME="AEN712"
  2206. >TQByteArray</A
  2207. ></H3
  2208. ><P
  2209. >A Python string can be used whenever a <TT
  2210. CLASS="LITERAL"
  2211. >TQByteArray</TT
  2212. > can be
  2213. used. A <TT
  2214. CLASS="LITERAL"
  2215. >TQByteArray</TT
  2216. > can be converted to a Python string
  2217. using the Python <TT
  2218. CLASS="LITERAL"
  2219. >str()</TT
  2220. > function.</P
  2221. ><DIV
  2222. CLASS="FUNCSYNOPSIS"
  2223. ><P
  2224. ></P
  2225. ><A
  2226. NAME="AEN718"
  2227. ></A
  2228. ><CODE
  2229. CLASS="FUNCDEF"
  2230. >TQByteArray &#38;assign</CODE
  2231. >(const char *data, uint size);<P
  2232. ></P
  2233. ></DIV
  2234. ><P
  2235. >Not implemented.</P
  2236. ><DIV
  2237. CLASS="FUNCSYNOPSIS"
  2238. ><P
  2239. ></P
  2240. ><A
  2241. NAME="AEN726"
  2242. ></A
  2243. ><CODE
  2244. CLASS="FUNCDEF"
  2245. >char &#38;at</CODE
  2246. >(uint i);<P
  2247. ></P
  2248. ></DIV
  2249. ><P
  2250. >Not yet implemented.</P
  2251. ><DIV
  2252. CLASS="FUNCSYNOPSIS"
  2253. ><P
  2254. ></P
  2255. ><A
  2256. NAME="AEN732"
  2257. ></A
  2258. ><CODE
  2259. CLASS="FUNCDEF"
  2260. >int contains</CODE
  2261. >(const char &#38;d);<P
  2262. ></P
  2263. ></DIV
  2264. ><P
  2265. >Not yet implemented.</P
  2266. ><DIV
  2267. CLASS="FUNCSYNOPSIS"
  2268. ><P
  2269. ></P
  2270. ><A
  2271. NAME="AEN738"
  2272. ></A
  2273. ><CODE
  2274. CLASS="FUNCDEF"
  2275. >bool fill</CODE
  2276. >(const char &#38;d, int size = -1);<P
  2277. ></P
  2278. ></DIV
  2279. ><P
  2280. >Not yet implemented.</P
  2281. ><DIV
  2282. CLASS="FUNCSYNOPSIS"
  2283. ><P
  2284. ></P
  2285. ><A
  2286. NAME="AEN746"
  2287. ></A
  2288. ><CODE
  2289. CLASS="FUNCDEF"
  2290. >int find</CODE
  2291. >(const char &#38;d, uint i = 0);<P
  2292. ></P
  2293. ></DIV
  2294. ><P
  2295. >Not yet implemented.</P
  2296. ><DIV
  2297. CLASS="FUNCSYNOPSIS"
  2298. ><P
  2299. ></P
  2300. ><A
  2301. NAME="AEN754"
  2302. ></A
  2303. ><CODE
  2304. CLASS="FUNCDEF"
  2305. >void resetRawData</CODE
  2306. >(const char *data, uintsize);<P
  2307. ></P
  2308. ></DIV
  2309. ><P
  2310. >Not implemented.</P
  2311. ><DIV
  2312. CLASS="FUNCSYNOPSIS"
  2313. ><P
  2314. ></P
  2315. ><A
  2316. NAME="AEN762"
  2317. ></A
  2318. ><CODE
  2319. CLASS="FUNCDEF"
  2320. >TQByteArray &#38;setRawData</CODE
  2321. >(const char *data, uintsize);<P
  2322. ></P
  2323. ></DIV
  2324. ><P
  2325. >Not implemented.</P
  2326. ></DIV
  2327. ><DIV
  2328. CLASS="SECT2"
  2329. ><HR><H3
  2330. CLASS="SECT2"
  2331. ><A
  2332. NAME="AEN770"
  2333. >TQCDEStyle (TQt v2+)</A
  2334. ></H3
  2335. ><P
  2336. ><TT
  2337. CLASS="LITERAL"
  2338. >TQCDEStyle</TT
  2339. > is fully implemented.</P
  2340. ></DIV
  2341. ><DIV
  2342. CLASS="SECT2"
  2343. ><HR><H3
  2344. CLASS="SECT2"
  2345. ><A
  2346. NAME="AEN774"
  2347. >TQCheckBox</A
  2348. ></H3
  2349. ><P
  2350. ><TT
  2351. CLASS="LITERAL"
  2352. >TQCheckBox</TT
  2353. > is fully implemented.</P
  2354. ></DIV
  2355. ><DIV
  2356. CLASS="SECT2"
  2357. ><HR><H3
  2358. CLASS="SECT2"
  2359. ><A
  2360. NAME="AEN778"
  2361. >TQClipboard</A
  2362. ></H3
  2363. ><DIV
  2364. CLASS="FUNCSYNOPSIS"
  2365. ><P
  2366. ></P
  2367. ><A
  2368. NAME="AEN780"
  2369. ></A
  2370. ><CODE
  2371. CLASS="FUNCDEF"
  2372. >void *data const</CODE
  2373. >(const char *format);<P
  2374. ></P
  2375. ></DIV
  2376. ><P
  2377. >Not yet implemented (TQt v1.x).</P
  2378. ><DIV
  2379. CLASS="FUNCSYNOPSIS"
  2380. ><P
  2381. ></P
  2382. ><A
  2383. NAME="AEN786"
  2384. ></A
  2385. ><CODE
  2386. CLASS="FUNCDEF"
  2387. >void setData</CODE
  2388. >(const char *format, void *);<P
  2389. ></P
  2390. ></DIV
  2391. ><P
  2392. >Not yet implemented (TQt v1.x).</P
  2393. ></DIV
  2394. ><DIV
  2395. CLASS="SECT2"
  2396. ><HR><H3
  2397. CLASS="SECT2"
  2398. ><A
  2399. NAME="AEN794"
  2400. >TQColor</A
  2401. ></H3
  2402. ><P
  2403. >The Python <TT
  2404. CLASS="LITERAL"
  2405. >==</TT
  2406. > and <TT
  2407. CLASS="LITERAL"
  2408. >!=</TT
  2409. > operators are
  2410. supported.</P
  2411. ><DIV
  2412. CLASS="FUNCSYNOPSIS"
  2413. ><P
  2414. ></P
  2415. ><A
  2416. NAME="AEN799"
  2417. ></A
  2418. ><CODE
  2419. CLASS="FUNCDEF"
  2420. >void getHsv</CODE
  2421. >(int *h, int *s, int *v);<P
  2422. ></P
  2423. ></DIV
  2424. ><P
  2425. >This takes no parameters and returns the <TT
  2426. CLASS="LITERAL"
  2427. >h</TT
  2428. >,
  2429. <TT
  2430. CLASS="LITERAL"
  2431. >s</TT
  2432. > and <TT
  2433. CLASS="LITERAL"
  2434. >v</TT
  2435. > values as a tuple.</P
  2436. ><DIV
  2437. CLASS="FUNCSYNOPSIS"
  2438. ><P
  2439. ></P
  2440. ><A
  2441. NAME="AEN812"
  2442. ></A
  2443. ><CODE
  2444. CLASS="FUNCDEF"
  2445. >void getRgb</CODE
  2446. >(int *r, int *g, int *b);<P
  2447. ></P
  2448. ></DIV
  2449. ><P
  2450. >This takes no parameters and returns the <TT
  2451. CLASS="LITERAL"
  2452. >r</TT
  2453. >,
  2454. <TT
  2455. CLASS="LITERAL"
  2456. >g</TT
  2457. > and <TT
  2458. CLASS="LITERAL"
  2459. >b</TT
  2460. > values as a tuple.</P
  2461. ><DIV
  2462. CLASS="FUNCSYNOPSIS"
  2463. ><P
  2464. ></P
  2465. ><A
  2466. NAME="AEN825"
  2467. ></A
  2468. ><CODE
  2469. CLASS="FUNCDEF"
  2470. >void hsv</CODE
  2471. >(int *h, int *s, int *v);<P
  2472. ></P
  2473. ></DIV
  2474. ><P
  2475. >This takes no parameters and returns the <TT
  2476. CLASS="LITERAL"
  2477. >h</TT
  2478. >,
  2479. <TT
  2480. CLASS="LITERAL"
  2481. >s</TT
  2482. > and <TT
  2483. CLASS="LITERAL"
  2484. >v</TT
  2485. > values as a tuple.</P
  2486. ><DIV
  2487. CLASS="FUNCSYNOPSIS"
  2488. ><P
  2489. ></P
  2490. ><A
  2491. NAME="AEN838"
  2492. ></A
  2493. ><CODE
  2494. CLASS="FUNCDEF"
  2495. >void rgb</CODE
  2496. >(int *r, int *g, int *b);<P
  2497. ></P
  2498. ></DIV
  2499. ><P
  2500. >This takes no parameters and returns the <TT
  2501. CLASS="LITERAL"
  2502. >r</TT
  2503. >,
  2504. <TT
  2505. CLASS="LITERAL"
  2506. >g</TT
  2507. > and <TT
  2508. CLASS="LITERAL"
  2509. >b</TT
  2510. > values as a tuple.</P
  2511. ></DIV
  2512. ><DIV
  2513. CLASS="SECT2"
  2514. ><HR><H3
  2515. CLASS="SECT2"
  2516. ><A
  2517. NAME="AEN851"
  2518. >TQColorDialog (TQt v2+)</A
  2519. ></H3
  2520. ><DIV
  2521. CLASS="FUNCSYNOPSIS"
  2522. ><P
  2523. ></P
  2524. ><A
  2525. NAME="AEN853"
  2526. ></A
  2527. ><CODE
  2528. CLASS="FUNCDEF"
  2529. >static TQRgb getRgba</CODE
  2530. >(TQRgb initial, bool *ok, TQWidget *parent = 0, const char *name = 0);<P
  2531. ></P
  2532. ></DIV
  2533. ><P
  2534. >This takes the <TT
  2535. CLASS="LITERAL"
  2536. >initial</TT
  2537. >, <TT
  2538. CLASS="LITERAL"
  2539. >parent</TT
  2540. > and
  2541. <TT
  2542. CLASS="LITERAL"
  2543. >name</TT
  2544. > parameters and returns a tuple containing the
  2545. <TT
  2546. CLASS="LITERAL"
  2547. >TQRgb</TT
  2548. > result and the <TT
  2549. CLASS="LITERAL"
  2550. >ok</TT
  2551. > value.</P
  2552. ></DIV
  2553. ><DIV
  2554. CLASS="SECT2"
  2555. ><HR><H3
  2556. CLASS="SECT2"
  2557. ><A
  2558. NAME="AEN870"
  2559. >TQColorGroup</A
  2560. ></H3
  2561. ><P
  2562. ><TT
  2563. CLASS="LITERAL"
  2564. >TQColorGroup</TT
  2565. > is fully implemented.</P
  2566. ></DIV
  2567. ><DIV
  2568. CLASS="SECT2"
  2569. ><HR><H3
  2570. CLASS="SECT2"
  2571. ><A
  2572. NAME="AEN874"
  2573. >TQComboBox</A
  2574. ></H3
  2575. ><P
  2576. ><TT
  2577. CLASS="LITERAL"
  2578. >TQComboBox</TT
  2579. > is fully implemented.</P
  2580. ></DIV
  2581. ><DIV
  2582. CLASS="SECT2"
  2583. ><HR><H3
  2584. CLASS="SECT2"
  2585. ><A
  2586. NAME="AEN878"
  2587. >TQCommonStyle (TQt v2+)</A
  2588. ></H3
  2589. ><DIV
  2590. CLASS="FUNCSYNOPSIS"
  2591. ><P
  2592. ></P
  2593. ><A
  2594. NAME="AEN880"
  2595. ></A
  2596. ><CODE
  2597. CLASS="FUNCDEF"
  2598. >virtual void getButtonShift</CODE
  2599. >(int &amp;x, int &amp;y);<P
  2600. ></P
  2601. ></DIV
  2602. ><P
  2603. >This takes no parameters and returns a tuple of the <TT
  2604. CLASS="LITERAL"
  2605. >x</TT
  2606. > and
  2607. <TT
  2608. CLASS="LITERAL"
  2609. >y</TT
  2610. > values. (TQt v2)</P
  2611. ><DIV
  2612. CLASS="FUNCSYNOPSIS"
  2613. ><P
  2614. ></P
  2615. ><A
  2616. NAME="AEN890"
  2617. ></A
  2618. ><CODE
  2619. CLASS="FUNCDEF"
  2620. >virtual void tabbarMetrics</CODE
  2621. >(const TQTabBar *t, int &amp;hframe, int &amp;vframe, int &amp;overlap);<P
  2622. ></P
  2623. ></DIV
  2624. ><P
  2625. >This takes only the <TT
  2626. CLASS="LITERAL"
  2627. >t</TT
  2628. > parameter and returns a tuple of the
  2629. <TT
  2630. CLASS="LITERAL"
  2631. >hframe</TT
  2632. >, <TT
  2633. CLASS="LITERAL"
  2634. >vframe</TT
  2635. > and
  2636. <TT
  2637. CLASS="LITERAL"
  2638. >overlap</TT
  2639. > values. (TQt v2)</P
  2640. ></DIV
  2641. ><DIV
  2642. CLASS="SECT2"
  2643. ><HR><H3
  2644. CLASS="SECT2"
  2645. ><A
  2646. NAME="AEN906"
  2647. >TQCString (TQt v2+)</A
  2648. ></H3
  2649. ><P
  2650. >A Python string can be used whenever a <TT
  2651. CLASS="LITERAL"
  2652. >TQCString</TT
  2653. > can be used.
  2654. A <TT
  2655. CLASS="LITERAL"
  2656. >TQCString</TT
  2657. > can be converted to a Python string using the
  2658. Python <TT
  2659. CLASS="LITERAL"
  2660. >str()</TT
  2661. > function.</P
  2662. ><DIV
  2663. CLASS="FUNCSYNOPSIS"
  2664. ><P
  2665. ></P
  2666. ><A
  2667. NAME="AEN912"
  2668. ></A
  2669. ><CODE
  2670. CLASS="FUNCDEF"
  2671. >TQCString &amp;sprintf</CODE
  2672. >(const char *format, ...);<P
  2673. ></P
  2674. ></DIV
  2675. ><P
  2676. >Not implemented.</P
  2677. ><DIV
  2678. CLASS="FUNCSYNOPSIS"
  2679. ><P
  2680. ></P
  2681. ><A
  2682. NAME="AEN919"
  2683. ></A
  2684. ><CODE
  2685. CLASS="FUNCDEF"
  2686. >short toShort</CODE
  2687. >(bool *ok = 0);<P
  2688. ></P
  2689. ></DIV
  2690. ><P
  2691. >This returns a tuple of the <TT
  2692. CLASS="LITERAL"
  2693. >short</TT
  2694. > result and the
  2695. <TT
  2696. CLASS="LITERAL"
  2697. >ok</TT
  2698. > value.</P
  2699. ><DIV
  2700. CLASS="FUNCSYNOPSIS"
  2701. ><P
  2702. ></P
  2703. ><A
  2704. NAME="AEN927"
  2705. ></A
  2706. ><CODE
  2707. CLASS="FUNCDEF"
  2708. >ushort toUShort</CODE
  2709. >(bool *ok = 0);<P
  2710. ></P
  2711. ></DIV
  2712. ><P
  2713. >This returns a tuple of the <TT
  2714. CLASS="LITERAL"
  2715. >ushort</TT
  2716. > result and the
  2717. <TT
  2718. CLASS="LITERAL"
  2719. >ok</TT
  2720. > value.</P
  2721. ><DIV
  2722. CLASS="FUNCSYNOPSIS"
  2723. ><P
  2724. ></P
  2725. ><A
  2726. NAME="AEN935"
  2727. ></A
  2728. ><CODE
  2729. CLASS="FUNCDEF"
  2730. >int toInt</CODE
  2731. >(bool *ok = 0);<P
  2732. ></P
  2733. ></DIV
  2734. ><P
  2735. >This returns a tuple of the <TT
  2736. CLASS="LITERAL"
  2737. >int</TT
  2738. > result and the
  2739. <TT
  2740. CLASS="LITERAL"
  2741. >ok</TT
  2742. > value.</P
  2743. ><DIV
  2744. CLASS="FUNCSYNOPSIS"
  2745. ><P
  2746. ></P
  2747. ><A
  2748. NAME="AEN943"
  2749. ></A
  2750. ><CODE
  2751. CLASS="FUNCDEF"
  2752. >uint toUInt</CODE
  2753. >(bool *ok = 0);<P
  2754. ></P
  2755. ></DIV
  2756. ><P
  2757. >This returns a tuple of the <TT
  2758. CLASS="LITERAL"
  2759. >uint</TT
  2760. > result and the
  2761. <TT
  2762. CLASS="LITERAL"
  2763. >ok</TT
  2764. > value.</P
  2765. ><DIV
  2766. CLASS="FUNCSYNOPSIS"
  2767. ><P
  2768. ></P
  2769. ><A
  2770. NAME="AEN951"
  2771. ></A
  2772. ><CODE
  2773. CLASS="FUNCDEF"
  2774. >long toLong</CODE
  2775. >(bool *ok = 0);<P
  2776. ></P
  2777. ></DIV
  2778. ><P
  2779. >This returns a tuple of the <TT
  2780. CLASS="LITERAL"
  2781. >long</TT
  2782. > result and the
  2783. <TT
  2784. CLASS="LITERAL"
  2785. >ok</TT
  2786. > value.</P
  2787. ><DIV
  2788. CLASS="FUNCSYNOPSIS"
  2789. ><P
  2790. ></P
  2791. ><A
  2792. NAME="AEN959"
  2793. ></A
  2794. ><CODE
  2795. CLASS="FUNCDEF"
  2796. >ulong toULong</CODE
  2797. >(bool *ok = 0);<P
  2798. ></P
  2799. ></DIV
  2800. ><P
  2801. >This returns a tuple of the <TT
  2802. CLASS="LITERAL"
  2803. >ulong</TT
  2804. > result and the
  2805. <TT
  2806. CLASS="LITERAL"
  2807. >ok</TT
  2808. > value.</P
  2809. ><DIV
  2810. CLASS="FUNCSYNOPSIS"
  2811. ><P
  2812. ></P
  2813. ><A
  2814. NAME="AEN967"
  2815. ></A
  2816. ><CODE
  2817. CLASS="FUNCDEF"
  2818. >float toFloat</CODE
  2819. >(bool *ok = 0);<P
  2820. ></P
  2821. ></DIV
  2822. ><P
  2823. >This returns a tuple of the <TT
  2824. CLASS="LITERAL"
  2825. >float</TT
  2826. > result and the
  2827. <TT
  2828. CLASS="LITERAL"
  2829. >ok</TT
  2830. > value.</P
  2831. ><DIV
  2832. CLASS="FUNCSYNOPSIS"
  2833. ><P
  2834. ></P
  2835. ><A
  2836. NAME="AEN975"
  2837. ></A
  2838. ><CODE
  2839. CLASS="FUNCDEF"
  2840. >double toDouble</CODE
  2841. >(bool *ok = 0);<P
  2842. ></P
  2843. ></DIV
  2844. ><P
  2845. >This returns a tuple of the <TT
  2846. CLASS="LITERAL"
  2847. >double</TT
  2848. > result and the
  2849. <TT
  2850. CLASS="LITERAL"
  2851. >ok</TT
  2852. > value.</P
  2853. ></DIV
  2854. ><DIV
  2855. CLASS="SECT2"
  2856. ><HR><H3
  2857. CLASS="SECT2"
  2858. ><A
  2859. NAME="AEN983"
  2860. >TQCursor</A
  2861. ></H3
  2862. ><P
  2863. ><TT
  2864. CLASS="LITERAL"
  2865. >TQCursor</TT
  2866. > is fully implemented.</P
  2867. ></DIV
  2868. ><DIV
  2869. CLASS="SECT2"
  2870. ><HR><H3
  2871. CLASS="SECT2"
  2872. ><A
  2873. NAME="AEN987"
  2874. >TQDataStream</A
  2875. ></H3
  2876. ><DIV
  2877. CLASS="FUNCSYNOPSIS"
  2878. ><P
  2879. ></P
  2880. ><A
  2881. NAME="AEN989"
  2882. ></A
  2883. ><CODE
  2884. CLASS="FUNCDEF"
  2885. >TQDataStream &amp;readBytes</CODE
  2886. >(const char *&amp;s, uint &amp;l);<P
  2887. ></P
  2888. ></DIV
  2889. ><P
  2890. >This takes no parameters. The <TT
  2891. CLASS="LITERAL"
  2892. >TQDataStream</TT
  2893. > result and the
  2894. data read are returned as a tuple.</P
  2895. ><DIV
  2896. CLASS="FUNCSYNOPSIS"
  2897. ><P
  2898. ></P
  2899. ><A
  2900. NAME="AEN998"
  2901. ></A
  2902. ><CODE
  2903. CLASS="FUNCDEF"
  2904. >TQDataStream &amp;readRawBytes</CODE
  2905. >(const char *s, uint l);<P
  2906. ></P
  2907. ></DIV
  2908. ><P
  2909. >This takes only the <TT
  2910. CLASS="LITERAL"
  2911. >l</TT
  2912. > parameter. The
  2913. <TT
  2914. CLASS="LITERAL"
  2915. >TQDataStream</TT
  2916. > result and the data read are returned as a
  2917. tuple.</P
  2918. ><DIV
  2919. CLASS="FUNCSYNOPSIS"
  2920. ><P
  2921. ></P
  2922. ><A
  2923. NAME="AEN1008"
  2924. ></A
  2925. ><CODE
  2926. CLASS="FUNCDEF"
  2927. >TQDataStream &amp;writeBytes</CODE
  2928. >(const char *s, uint len);<P
  2929. ></P
  2930. ></DIV
  2931. ><P
  2932. ><TT
  2933. CLASS="LITERAL"
  2934. >len</TT
  2935. > is derived from <TT
  2936. CLASS="LITERAL"
  2937. >s</TT
  2938. > and not passed as a
  2939. parameter.</P
  2940. ><DIV
  2941. CLASS="FUNCSYNOPSIS"
  2942. ><P
  2943. ></P
  2944. ><A
  2945. NAME="AEN1018"
  2946. ></A
  2947. ><CODE
  2948. CLASS="FUNCDEF"
  2949. >TQDataStream &amp;writeRawBytes</CODE
  2950. >(const char *s, uint len);<P
  2951. ></P
  2952. ></DIV
  2953. ><P
  2954. ><TT
  2955. CLASS="LITERAL"
  2956. >len</TT
  2957. > is derived from <TT
  2958. CLASS="LITERAL"
  2959. >s</TT
  2960. > and not passed as a
  2961. parameter.</P
  2962. ></DIV
  2963. ><DIV
  2964. CLASS="SECT2"
  2965. ><HR><H3
  2966. CLASS="SECT2"
  2967. ><A
  2968. NAME="AEN1028"
  2969. >TQDate</A
  2970. ></H3
  2971. ><P
  2972. >The Python
  2973. <TT
  2974. CLASS="LITERAL"
  2975. >==</TT
  2976. >, <TT
  2977. CLASS="LITERAL"
  2978. >!=</TT
  2979. >,
  2980. <TT
  2981. CLASS="LITERAL"
  2982. >&lt;</TT
  2983. >, <TT
  2984. CLASS="LITERAL"
  2985. >&lt;=</TT
  2986. >,
  2987. <TT
  2988. CLASS="LITERAL"
  2989. >&gt;</TT
  2990. >, <TT
  2991. CLASS="LITERAL"
  2992. >&gt;=</TT
  2993. >
  2994. and <TT
  2995. CLASS="LITERAL"
  2996. >__nonzero__</TT
  2997. >
  2998. operators are supported.</P
  2999. ><DIV
  3000. CLASS="FUNCSYNOPSIS"
  3001. ><P
  3002. ></P
  3003. ><A
  3004. NAME="AEN1038"
  3005. ></A
  3006. ><CODE
  3007. CLASS="FUNCDEF"
  3008. >int weekNumber</CODE
  3009. >(int *yearNum = 0);<P
  3010. ></P
  3011. ></DIV
  3012. ><P
  3013. >This takes no parameters and returns the week number and the year number as a
  3014. tuple. (TQt v3.1+)</P
  3015. ></DIV
  3016. ><DIV
  3017. CLASS="SECT2"
  3018. ><HR><H3
  3019. CLASS="SECT2"
  3020. ><A
  3021. NAME="AEN1044"
  3022. >TQDateTime</A
  3023. ></H3
  3024. ><P
  3025. ><TT
  3026. CLASS="LITERAL"
  3027. >TQDateTime</TT
  3028. > is fully implemented, including the Python
  3029. <TT
  3030. CLASS="LITERAL"
  3031. >==</TT
  3032. >, <TT
  3033. CLASS="LITERAL"
  3034. >!=</TT
  3035. >,
  3036. <TT
  3037. CLASS="LITERAL"
  3038. >&lt;</TT
  3039. >, <TT
  3040. CLASS="LITERAL"
  3041. >&lt;=</TT
  3042. >,
  3043. <TT
  3044. CLASS="LITERAL"
  3045. >&gt;</TT
  3046. >, <TT
  3047. CLASS="LITERAL"
  3048. >&gt;=</TT
  3049. >
  3050. and <TT
  3051. CLASS="LITERAL"
  3052. >__nonzero__</TT
  3053. >
  3054. operators.</P
  3055. ></DIV
  3056. ><DIV
  3057. CLASS="SECT2"
  3058. ><HR><H3
  3059. CLASS="SECT2"
  3060. ><A
  3061. NAME="AEN1055"
  3062. >TQTime</A
  3063. ></H3
  3064. ><P
  3065. ><TT
  3066. CLASS="LITERAL"
  3067. >TQTime</TT
  3068. > is fully implemented, including the Python
  3069. <TT
  3070. CLASS="LITERAL"
  3071. >==</TT
  3072. >, <TT
  3073. CLASS="LITERAL"
  3074. >!=</TT
  3075. >,
  3076. <TT
  3077. CLASS="LITERAL"
  3078. >&lt;</TT
  3079. >, <TT
  3080. CLASS="LITERAL"
  3081. >&lt;=</TT
  3082. >,
  3083. <TT
  3084. CLASS="LITERAL"
  3085. >&gt;</TT
  3086. >, <TT
  3087. CLASS="LITERAL"
  3088. >&gt;=</TT
  3089. >
  3090. and <TT
  3091. CLASS="LITERAL"
  3092. >__nonzero__</TT
  3093. >
  3094. operators.</P
  3095. ></DIV
  3096. ><DIV
  3097. CLASS="SECT2"
  3098. ><HR><H3
  3099. CLASS="SECT2"
  3100. ><A
  3101. NAME="AEN1066"
  3102. >TQDateEdit (TQt v3+)</A
  3103. ></H3
  3104. ><P
  3105. ><TT
  3106. CLASS="LITERAL"
  3107. >TQDateEdit</TT
  3108. > is fully implemented.</P
  3109. ></DIV
  3110. ><DIV
  3111. CLASS="SECT2"
  3112. ><HR><H3
  3113. CLASS="SECT2"
  3114. ><A
  3115. NAME="AEN1070"
  3116. >TQTimeEdit (TQt v3+)</A
  3117. ></H3
  3118. ><P
  3119. ><TT
  3120. CLASS="LITERAL"
  3121. >TQTimeEdit</TT
  3122. > is fully implemented.</P
  3123. ></DIV
  3124. ><DIV
  3125. CLASS="SECT2"
  3126. ><HR><H3
  3127. CLASS="SECT2"
  3128. ><A
  3129. NAME="AEN1074"
  3130. >TQDateTimeEdit (TQt v3+)</A
  3131. ></H3
  3132. ><P
  3133. ><TT
  3134. CLASS="LITERAL"
  3135. >TQDateTimeEdit</TT
  3136. > is fully implemented.</P
  3137. ></DIV
  3138. ><DIV
  3139. CLASS="SECT2"
  3140. ><HR><H3
  3141. CLASS="SECT2"
  3142. ><A
  3143. NAME="AEN1078"
  3144. >TQDesktopWidget (TQt v3+)</A
  3145. ></H3
  3146. ><P
  3147. ><TT
  3148. CLASS="LITERAL"
  3149. >TQDesktopWidget</TT
  3150. > is fully implemented.</P
  3151. ></DIV
  3152. ><DIV
  3153. CLASS="SECT2"
  3154. ><HR><H3
  3155. CLASS="SECT2"
  3156. ><A
  3157. NAME="AEN1082"
  3158. >TQDial (TQt v2.2+)</A
  3159. ></H3
  3160. ><P
  3161. ><TT
  3162. CLASS="LITERAL"
  3163. >TQDial</TT
  3164. > is fully implemented.</P
  3165. ></DIV
  3166. ><DIV
  3167. CLASS="SECT2"
  3168. ><HR><H3
  3169. CLASS="SECT2"
  3170. ><A
  3171. NAME="AEN1086"
  3172. >TQDialog</A
  3173. ></H3
  3174. ><DIV
  3175. CLASS="FUNCSYNOPSIS"
  3176. ><P
  3177. ></P
  3178. ><A
  3179. NAME="AEN1088"
  3180. ></A
  3181. ><CODE
  3182. CLASS="FUNCDEF"
  3183. >int exec</CODE
  3184. >();<P
  3185. ></P
  3186. ></DIV
  3187. ><P
  3188. >This has been renamed to <TT
  3189. CLASS="LITERAL"
  3190. >exec_loop</TT
  3191. > in Python.</P
  3192. ><P
  3193. >This method also causes ownership of the underlying C++ dialog to be
  3194. transfered to Python. This means that the C++ dialog will be deleted when the
  3195. Python wrapper is garbage collected. Although this is a little inconsistent,
  3196. it ensures that the dialog is deleted without having to explicity code it
  3197. using <TT
  3198. CLASS="LITERAL"
  3199. >TQObject.deleteLater()</TT
  3200. > or other techniques.</P
  3201. ></DIV
  3202. ><DIV
  3203. CLASS="SECT2"
  3204. ><HR><H3
  3205. CLASS="SECT2"
  3206. ><A
  3207. NAME="AEN1096"
  3208. >TQDir</A
  3209. ></H3
  3210. ><P
  3211. ><TT
  3212. CLASS="LITERAL"
  3213. >TQDir</TT
  3214. > is fully implemented, including the Python
  3215. <TT
  3216. CLASS="LITERAL"
  3217. >len</TT
  3218. >, <TT
  3219. CLASS="LITERAL"
  3220. >[]</TT
  3221. > (for reading slices and
  3222. individual elements), <TT
  3223. CLASS="LITERAL"
  3224. >==</TT
  3225. >, <TT
  3226. CLASS="LITERAL"
  3227. >!=</TT
  3228. > and
  3229. <TT
  3230. CLASS="LITERAL"
  3231. >in</TT
  3232. > operators</P
  3233. ></DIV
  3234. ><DIV
  3235. CLASS="SECT2"
  3236. ><HR><H3
  3237. CLASS="SECT2"
  3238. ><A
  3239. NAME="AEN1105"
  3240. >TQFileInfoList</A
  3241. ></H3
  3242. ><P
  3243. >This class isn't implemented. Whenever a <TT
  3244. CLASS="LITERAL"
  3245. >TQFileInfoList</TT
  3246. > is
  3247. the return type of a function or the type of an argument, a Python list of
  3248. <TT
  3249. CLASS="LITERAL"
  3250. >TQFileInfo</TT
  3251. > instances is used instead.</P
  3252. ></DIV
  3253. ><DIV
  3254. CLASS="SECT2"
  3255. ><HR><H3
  3256. CLASS="SECT2"
  3257. ><A
  3258. NAME="AEN1110"
  3259. >TQDockArea (TQt v3+)</A
  3260. ></H3
  3261. ><DIV
  3262. CLASS="FUNCSYNOPSIS"
  3263. ><P
  3264. ></P
  3265. ><A
  3266. NAME="AEN1112"
  3267. ></A
  3268. ><CODE
  3269. CLASS="FUNCDEF"
  3270. >bool hasDockWindow const</CODE
  3271. >(TQDockWindow *w, int *index = 0);<P
  3272. ></P
  3273. ></DIV
  3274. ><P
  3275. >This takes the <TT
  3276. CLASS="LITERAL"
  3277. >w</TT
  3278. > parameter and returns the index of the
  3279. TQDockWIndow or -1 if the TQDockArea does not contain the TQDockWindow.</P
  3280. ></DIV
  3281. ><DIV
  3282. CLASS="SECT2"
  3283. ><HR><H3
  3284. CLASS="SECT2"
  3285. ><A
  3286. NAME="AEN1121"
  3287. >TQDockWindow (TQt v3+)</A
  3288. ></H3
  3289. ><P
  3290. ><TT
  3291. CLASS="LITERAL"
  3292. >TQDockWindow</TT
  3293. > is fully implemented.</P
  3294. ></DIV
  3295. ><DIV
  3296. CLASS="SECT2"
  3297. ><HR><H3
  3298. CLASS="SECT2"
  3299. ><A
  3300. NAME="AEN1125"
  3301. >TQColorDrag (TQt v2.1+)</A
  3302. ></H3
  3303. ><P
  3304. ><TT
  3305. CLASS="LITERAL"
  3306. >TQColorDrag</TT
  3307. > is fully implemented.</P
  3308. ></DIV
  3309. ><DIV
  3310. CLASS="SECT2"
  3311. ><HR><H3
  3312. CLASS="SECT2"
  3313. ><A
  3314. NAME="AEN1129"
  3315. >TQDragObject</A
  3316. ></H3
  3317. ><P
  3318. ><TT
  3319. CLASS="LITERAL"
  3320. >TQDragObject</TT
  3321. > is fully implemented.</P
  3322. ></DIV
  3323. ><DIV
  3324. CLASS="SECT2"
  3325. ><HR><H3
  3326. CLASS="SECT2"
  3327. ><A
  3328. NAME="AEN1133"
  3329. >TQImageDrag</A
  3330. ></H3
  3331. ><P
  3332. ><TT
  3333. CLASS="LITERAL"
  3334. >TQImageDrag</TT
  3335. > is fully implemented.</P
  3336. ></DIV
  3337. ><DIV
  3338. CLASS="SECT2"
  3339. ><HR><H3
  3340. CLASS="SECT2"
  3341. ><A
  3342. NAME="AEN1137"
  3343. >TQStoredDrag</A
  3344. ></H3
  3345. ><P
  3346. ><TT
  3347. CLASS="LITERAL"
  3348. >TQStoredDrag</TT
  3349. > is fully implemented.</P
  3350. ></DIV
  3351. ><DIV
  3352. CLASS="SECT2"
  3353. ><HR><H3
  3354. CLASS="SECT2"
  3355. ><A
  3356. NAME="AEN1141"
  3357. >TQTextDrag</A
  3358. ></H3
  3359. ><P
  3360. ><TT
  3361. CLASS="LITERAL"
  3362. >TQTextDrag</TT
  3363. > is fully implemented.</P
  3364. ></DIV
  3365. ><DIV
  3366. CLASS="SECT2"
  3367. ><HR><H3
  3368. CLASS="SECT2"
  3369. ><A
  3370. NAME="AEN1145"
  3371. >TQUriDrag (TQt v2+)</A
  3372. ></H3
  3373. ><P
  3374. ><TT
  3375. CLASS="LITERAL"
  3376. >TQUriDrag</TT
  3377. > is fully implemented.</P
  3378. ></DIV
  3379. ><DIV
  3380. CLASS="SECT2"
  3381. ><HR><H3
  3382. CLASS="SECT2"
  3383. ><A
  3384. NAME="AEN1149"
  3385. >TQUrlDrag (TQt v1.x)</A
  3386. ></H3
  3387. ><P
  3388. ><TT
  3389. CLASS="LITERAL"
  3390. >TQUrlDrag</TT
  3391. > is fully implemented.</P
  3392. ></DIV
  3393. ><DIV
  3394. CLASS="SECT2"
  3395. ><HR><H3
  3396. CLASS="SECT2"
  3397. ><A
  3398. NAME="AEN1153"
  3399. >TQDropSite</A
  3400. ></H3
  3401. ><P
  3402. ><TT
  3403. CLASS="LITERAL"
  3404. >TQDropSite</TT
  3405. > is fully implemented.</P
  3406. ></DIV
  3407. ><DIV
  3408. CLASS="SECT2"
  3409. ><HR><H3
  3410. CLASS="SECT2"
  3411. ><A
  3412. NAME="AEN1157"
  3413. >TQErrorMessage (TQt v3+)</A
  3414. ></H3
  3415. ><P
  3416. ><TT
  3417. CLASS="LITERAL"
  3418. >TQErrorMessage</TT
  3419. > is fully implemented.</P
  3420. ></DIV
  3421. ><DIV
  3422. CLASS="SECT2"
  3423. ><HR><H3
  3424. CLASS="SECT2"
  3425. ><A
  3426. NAME="AEN1161"
  3427. >TQEvent</A
  3428. ></H3
  3429. ><P
  3430. ><TT
  3431. CLASS="LITERAL"
  3432. >TQEvent</TT
  3433. > is fully implemented.</P
  3434. ><P
  3435. >Instances of <TT
  3436. CLASS="LITERAL"
  3437. >TQEvent</TT
  3438. >s are automatically converted to the
  3439. correct sub-class.</P
  3440. ></DIV
  3441. ><DIV
  3442. CLASS="SECT2"
  3443. ><HR><H3
  3444. CLASS="SECT2"
  3445. ><A
  3446. NAME="AEN1167"
  3447. >TQChildEvent</A
  3448. ></H3
  3449. ><P
  3450. ><TT
  3451. CLASS="LITERAL"
  3452. >TQChildEvent</TT
  3453. > is fully implemented.</P
  3454. ></DIV
  3455. ><DIV
  3456. CLASS="SECT2"
  3457. ><HR><H3
  3458. CLASS="SECT2"
  3459. ><A
  3460. NAME="AEN1171"
  3461. >TQCloseEvent</A
  3462. ></H3
  3463. ><P
  3464. ><TT
  3465. CLASS="LITERAL"
  3466. >TQCloseEvent</TT
  3467. > is fully implemented.</P
  3468. ></DIV
  3469. ><DIV
  3470. CLASS="SECT2"
  3471. ><HR><H3
  3472. CLASS="SECT2"
  3473. ><A
  3474. NAME="AEN1175"
  3475. >TQIconDragEvent (TQt v3.3+)</A
  3476. ></H3
  3477. ><P
  3478. ><TT
  3479. CLASS="LITERAL"
  3480. >TQIconDragEvent</TT
  3481. > is fully implemented.</P
  3482. ></DIV
  3483. ><DIV
  3484. CLASS="SECT2"
  3485. ><HR><H3
  3486. CLASS="SECT2"
  3487. ><A
  3488. NAME="AEN1179"
  3489. >TQContextMenuEvent (TQt v3+)</A
  3490. ></H3
  3491. ><P
  3492. ><TT
  3493. CLASS="LITERAL"
  3494. >TQContextMenuEvent</TT
  3495. > is fully implemented.</P
  3496. ></DIV
  3497. ><DIV
  3498. CLASS="SECT2"
  3499. ><HR><H3
  3500. CLASS="SECT2"
  3501. ><A
  3502. NAME="AEN1183"
  3503. >TQCustomEvent</A
  3504. ></H3
  3505. ><P
  3506. ><TT
  3507. CLASS="LITERAL"
  3508. >TQCustomEvent</TT
  3509. > is fully implemented. Any Python object can be
  3510. passed as the event data and its reference count is increased.</P
  3511. ></DIV
  3512. ><DIV
  3513. CLASS="SECT2"
  3514. ><HR><H3
  3515. CLASS="SECT2"
  3516. ><A
  3517. NAME="AEN1187"
  3518. >TQDragEnterEvent</A
  3519. ></H3
  3520. ><P
  3521. ><TT
  3522. CLASS="LITERAL"
  3523. >TQDragEnterEvent</TT
  3524. > is fully implemented.</P
  3525. ></DIV
  3526. ><DIV
  3527. CLASS="SECT2"
  3528. ><HR><H3
  3529. CLASS="SECT2"
  3530. ><A
  3531. NAME="AEN1191"
  3532. >TQDragLeaveEvent</A
  3533. ></H3
  3534. ><P
  3535. ><TT
  3536. CLASS="LITERAL"
  3537. >TQDragLeaveEvent</TT
  3538. > is fully implemented.</P
  3539. ></DIV
  3540. ><DIV
  3541. CLASS="SECT2"
  3542. ><HR><H3
  3543. CLASS="SECT2"
  3544. ><A
  3545. NAME="AEN1195"
  3546. >TQDragMoveEvent</A
  3547. ></H3
  3548. ><P
  3549. ><TT
  3550. CLASS="LITERAL"
  3551. >TQDragMoveEvent</TT
  3552. > is fully implemented.</P
  3553. ></DIV
  3554. ><DIV
  3555. CLASS="SECT2"
  3556. ><HR><H3
  3557. CLASS="SECT2"
  3558. ><A
  3559. NAME="AEN1199"
  3560. >TQDropEvent</A
  3561. ></H3
  3562. ><P
  3563. ><TT
  3564. CLASS="LITERAL"
  3565. >TQDropEvent</TT
  3566. > is fully implemented.</P
  3567. ></DIV
  3568. ><DIV
  3569. CLASS="SECT2"
  3570. ><HR><H3
  3571. CLASS="SECT2"
  3572. ><A
  3573. NAME="AEN1203"
  3574. >TQFocusEvent</A
  3575. ></H3
  3576. ><P
  3577. ><TT
  3578. CLASS="LITERAL"
  3579. >TQFocusEvent</TT
  3580. > is fully implemented.</P
  3581. ></DIV
  3582. ><DIV
  3583. CLASS="SECT2"
  3584. ><HR><H3
  3585. CLASS="SECT2"
  3586. ><A
  3587. NAME="AEN1207"
  3588. >TQHideEvent</A
  3589. ></H3
  3590. ><P
  3591. ><TT
  3592. CLASS="LITERAL"
  3593. >TQHideEvent</TT
  3594. > is fully implemented.</P
  3595. ></DIV
  3596. ><DIV
  3597. CLASS="SECT2"
  3598. ><HR><H3
  3599. CLASS="SECT2"
  3600. ><A
  3601. NAME="AEN1211"
  3602. >TQIMComposeEvent (TQt v3.1+)</A
  3603. ></H3
  3604. ><P
  3605. ><TT
  3606. CLASS="LITERAL"
  3607. >TQIMComposeEvent</TT
  3608. > is fully implemented.</P
  3609. ></DIV
  3610. ><DIV
  3611. CLASS="SECT2"
  3612. ><HR><H3
  3613. CLASS="SECT2"
  3614. ><A
  3615. NAME="AEN1215"
  3616. >TQIMEvent (TQt v3+)</A
  3617. ></H3
  3618. ><P
  3619. ><TT
  3620. CLASS="LITERAL"
  3621. >TQIMEvent</TT
  3622. > is fully implemented.</P
  3623. ></DIV
  3624. ><DIV
  3625. CLASS="SECT2"
  3626. ><HR><H3
  3627. CLASS="SECT2"
  3628. ><A
  3629. NAME="AEN1219"
  3630. >TQKeyEvent</A
  3631. ></H3
  3632. ><P
  3633. ><TT
  3634. CLASS="LITERAL"
  3635. >TQKeyEvent</TT
  3636. > is fully implemented.</P
  3637. ></DIV
  3638. ><DIV
  3639. CLASS="SECT2"
  3640. ><HR><H3
  3641. CLASS="SECT2"
  3642. ><A
  3643. NAME="AEN1223"
  3644. >TQMouseEvent</A
  3645. ></H3
  3646. ><P
  3647. ><TT
  3648. CLASS="LITERAL"
  3649. >TQMouseEvent</TT
  3650. > is fully implemented.</P
  3651. ></DIV
  3652. ><DIV
  3653. CLASS="SECT2"
  3654. ><HR><H3
  3655. CLASS="SECT2"
  3656. ><A
  3657. NAME="AEN1227"
  3658. >TQMoveEvent</A
  3659. ></H3
  3660. ><P
  3661. ><TT
  3662. CLASS="LITERAL"
  3663. >TQMoveEvent</TT
  3664. > is fully implemented.</P
  3665. ></DIV
  3666. ><DIV
  3667. CLASS="SECT2"
  3668. ><HR><H3
  3669. CLASS="SECT2"
  3670. ><A
  3671. NAME="AEN1231"
  3672. >TQPaintEvent</A
  3673. ></H3
  3674. ><P
  3675. ><TT
  3676. CLASS="LITERAL"
  3677. >TQPaintEvent</TT
  3678. > is fully implemented.</P
  3679. ></DIV
  3680. ><DIV
  3681. CLASS="SECT2"
  3682. ><HR><H3
  3683. CLASS="SECT2"
  3684. ><A
  3685. NAME="AEN1235"
  3686. >TQResizeEvent</A
  3687. ></H3
  3688. ><P
  3689. ><TT
  3690. CLASS="LITERAL"
  3691. >TQResizeEvent</TT
  3692. > is fully implemented.</P
  3693. ></DIV
  3694. ><DIV
  3695. CLASS="SECT2"
  3696. ><HR><H3
  3697. CLASS="SECT2"
  3698. ><A
  3699. NAME="AEN1239"
  3700. >TQShowEvent</A
  3701. ></H3
  3702. ><P
  3703. ><TT
  3704. CLASS="LITERAL"
  3705. >TQShowEvent</TT
  3706. > is fully implemented.</P
  3707. ></DIV
  3708. ><DIV
  3709. CLASS="SECT2"
  3710. ><HR><H3
  3711. CLASS="SECT2"
  3712. ><A
  3713. NAME="AEN1243"
  3714. >TQTabletEvent (TQt v3+)</A
  3715. ></H3
  3716. ><P
  3717. ><TT
  3718. CLASS="LITERAL"
  3719. >TQTabletEvent</TT
  3720. > is fully implemented.</P
  3721. ></DIV
  3722. ><DIV
  3723. CLASS="SECT2"
  3724. ><HR><H3
  3725. CLASS="SECT2"
  3726. ><A
  3727. NAME="AEN1247"
  3728. >TQTimerEvent</A
  3729. ></H3
  3730. ><P
  3731. ><TT
  3732. CLASS="LITERAL"
  3733. >TQTimerEvent</TT
  3734. > is fully implemented.</P
  3735. ></DIV
  3736. ><DIV
  3737. CLASS="SECT2"
  3738. ><HR><H3
  3739. CLASS="SECT2"
  3740. ><A
  3741. NAME="AEN1251"
  3742. >TQWheelEvent (TQt v2+)</A
  3743. ></H3
  3744. ><P
  3745. ><TT
  3746. CLASS="LITERAL"
  3747. >TQWheelEvent</TT
  3748. > is fully implemented.</P
  3749. ></DIV
  3750. ><DIV
  3751. CLASS="SECT2"
  3752. ><HR><H3
  3753. CLASS="SECT2"
  3754. ><A
  3755. NAME="AEN1255"
  3756. >TQEventLoop (TQt v3.1+)</A
  3757. ></H3
  3758. ><DIV
  3759. CLASS="FUNCSYNOPSIS"
  3760. ><P
  3761. ></P
  3762. ><A
  3763. NAME="AEN1257"
  3764. ></A
  3765. ><CODE
  3766. CLASS="FUNCDEF"
  3767. >virtual int exec</CODE
  3768. >();<P
  3769. ></P
  3770. ></DIV
  3771. ><P
  3772. >This has been renamed to <TT
  3773. CLASS="LITERAL"
  3774. >exec_loop</TT
  3775. > in Python.</P
  3776. ></DIV
  3777. ><DIV
  3778. CLASS="SECT2"
  3779. ><HR><H3
  3780. CLASS="SECT2"
  3781. ><A
  3782. NAME="AEN1263"
  3783. >TQFile</A
  3784. ></H3
  3785. ><DIV
  3786. CLASS="FUNCSYNOPSIS"
  3787. ><P
  3788. ></P
  3789. ><A
  3790. NAME="AEN1265"
  3791. ></A
  3792. ><CODE
  3793. CLASS="FUNCDEF"
  3794. >bool open</CODE
  3795. >(int m, FILE *f);<P
  3796. ></P
  3797. ></DIV
  3798. ><P
  3799. >Not implemented.</P
  3800. ><DIV
  3801. CLASS="FUNCSYNOPSIS"
  3802. ><P
  3803. ></P
  3804. ><A
  3805. NAME="AEN1273"
  3806. ></A
  3807. ><CODE
  3808. CLASS="FUNCDEF"
  3809. >Q_LONG readBlock</CODE
  3810. >(char *data, Q_ULONG len);<P
  3811. ></P
  3812. ></DIV
  3813. ><P
  3814. >This takes a single <TT
  3815. CLASS="LITERAL"
  3816. >len</TT
  3817. > parameter. The
  3818. <TT
  3819. CLASS="LITERAL"
  3820. >data</TT
  3821. > is returned if there was no error, otherwise
  3822. <TT
  3823. CLASS="LITERAL"
  3824. >None</TT
  3825. > is returned.</P
  3826. ><DIV
  3827. CLASS="FUNCSYNOPSIS"
  3828. ><P
  3829. ></P
  3830. ><A
  3831. NAME="AEN1284"
  3832. ></A
  3833. ><CODE
  3834. CLASS="FUNCDEF"
  3835. >Q_LONG readLine</CODE
  3836. >(char *data, Q_ULONG maxlen);<P
  3837. ></P
  3838. ></DIV
  3839. ><P
  3840. >This takes a single <TT
  3841. CLASS="LITERAL"
  3842. >maxlen</TT
  3843. > parameter. The
  3844. <TT
  3845. CLASS="LITERAL"
  3846. >data</TT
  3847. > is returned if there was no error, otherwise
  3848. <TT
  3849. CLASS="LITERAL"
  3850. >None</TT
  3851. > is returned.</P
  3852. ><DIV
  3853. CLASS="FUNCSYNOPSIS"
  3854. ><P
  3855. ></P
  3856. ><A
  3857. NAME="AEN1295"
  3858. ></A
  3859. ><CODE
  3860. CLASS="FUNCDEF"
  3861. >static void setDecodingFunction</CODE
  3862. >(EncoderFn f);<P
  3863. ></P
  3864. ></DIV
  3865. ><P
  3866. >Not yet implemented. (TQt v2+)</P
  3867. ><DIV
  3868. CLASS="FUNCSYNOPSIS"
  3869. ><P
  3870. ></P
  3871. ><A
  3872. NAME="AEN1301"
  3873. ></A
  3874. ><CODE
  3875. CLASS="FUNCDEF"
  3876. >static void setEncodingFunction</CODE
  3877. >(EncoderFn f);<P
  3878. ></P
  3879. ></DIV
  3880. ><P
  3881. >Not yet implemented. (TQt v2+)</P
  3882. ><DIV
  3883. CLASS="FUNCSYNOPSIS"
  3884. ><P
  3885. ></P
  3886. ><A
  3887. NAME="AEN1307"
  3888. ></A
  3889. ><CODE
  3890. CLASS="FUNCDEF"
  3891. >Q_LONG writeBlock</CODE
  3892. >(const char *data, Q_ULONG len);<P
  3893. ></P
  3894. ></DIV
  3895. ><P
  3896. ><TT
  3897. CLASS="LITERAL"
  3898. >len</TT
  3899. > is derived from <TT
  3900. CLASS="LITERAL"
  3901. >data</TT
  3902. > and not passed
  3903. as a parameter.</P
  3904. ></DIV
  3905. ><DIV
  3906. CLASS="SECT2"
  3907. ><HR><H3
  3908. CLASS="SECT2"
  3909. ><A
  3910. NAME="AEN1317"
  3911. >TQFileDialog</A
  3912. ></H3
  3913. ><P
  3914. ><TT
  3915. CLASS="LITERAL"
  3916. >TQFileDialog</TT
  3917. > is fully implemented.</P
  3918. ></DIV
  3919. ><DIV
  3920. CLASS="SECT2"
  3921. ><HR><H3
  3922. CLASS="SECT2"
  3923. ><A
  3924. NAME="AEN1321"
  3925. >TQFileIconProvider</A
  3926. ></H3
  3927. ><P
  3928. ><TT
  3929. CLASS="LITERAL"
  3930. >TQFileIconProvider</TT
  3931. > is fully implemented.</P
  3932. ></DIV
  3933. ><DIV
  3934. CLASS="SECT2"
  3935. ><HR><H3
  3936. CLASS="SECT2"
  3937. ><A
  3938. NAME="AEN1325"
  3939. >TQFilePreview</A
  3940. ></H3
  3941. ><P
  3942. ><TT
  3943. CLASS="LITERAL"
  3944. >TQFilePreview</TT
  3945. > is fully implemented. However it cannot be
  3946. used from Python in the same way as it is used from C++ because PyTQt does not
  3947. support multiple inheritance involving more than one wrapped class. A trick
  3948. that seems to work is to use composition rather than inheritance as in the
  3949. following code fragment.</P
  3950. ><TABLE
  3951. BORDER="0"
  3952. BGCOLOR="#E0E0E0"
  3953. WIDTH="100%"
  3954. ><TR
  3955. ><TD
  3956. ><PRE
  3957. CLASS="PROGRAMLISTING"
  3958. >class FilePreview(TQFilePreview):
  3959. pass
  3960. class Preview(TQLabel):
  3961. def __init__(self, parent=None):
  3962. TQLabel.__init__(self, parent)
  3963. self.preview = FilePreview()
  3964. self.preview.previewUrl = self.previewUrl</PRE
  3965. ></TD
  3966. ></TR
  3967. ></TABLE
  3968. ><P
  3969. >Note that TQFilePreview cannot be instantiated directly because it is abstract.
  3970. Thanks to Hans-Peter Jansen for this trick.</P
  3971. ></DIV
  3972. ><DIV
  3973. CLASS="SECT2"
  3974. ><HR><H3
  3975. CLASS="SECT2"
  3976. ><A
  3977. NAME="AEN1331"
  3978. >TQFileInfo</A
  3979. ></H3
  3980. ><P
  3981. ><TT
  3982. CLASS="LITERAL"
  3983. >TQFileInfo</TT
  3984. > is fully implemented.</P
  3985. ></DIV
  3986. ><DIV
  3987. CLASS="SECT2"
  3988. ><HR><H3
  3989. CLASS="SECT2"
  3990. ><A
  3991. NAME="AEN1335"
  3992. >TQFont</A
  3993. ></H3
  3994. ><P
  3995. ><TT
  3996. CLASS="LITERAL"
  3997. >TQFont</TT
  3998. > is fully implemented, including the Python
  3999. <TT
  4000. CLASS="LITERAL"
  4001. >==</TT
  4002. > and <TT
  4003. CLASS="LITERAL"
  4004. >!=</TT
  4005. > operators.</P
  4006. ></DIV
  4007. ><DIV
  4008. CLASS="SECT2"
  4009. ><HR><H3
  4010. CLASS="SECT2"
  4011. ><A
  4012. NAME="AEN1341"
  4013. >TQFontDatabase (TQt v2.1+)</A
  4014. ></H3
  4015. ><P
  4016. ><TT
  4017. CLASS="LITERAL"
  4018. >TQFontDatabase</TT
  4019. > is fully implemented.</P
  4020. ></DIV
  4021. ><DIV
  4022. CLASS="SECT2"
  4023. ><HR><H3
  4024. CLASS="SECT2"
  4025. ><A
  4026. NAME="AEN1345"
  4027. >TQFontDialog (TQt v2+)</A
  4028. ></H3
  4029. ><DIV
  4030. CLASS="FUNCSYNOPSIS"
  4031. ><P
  4032. ></P
  4033. ><A
  4034. NAME="AEN1347"
  4035. ></A
  4036. ><CODE
  4037. CLASS="FUNCDEF"
  4038. >static TQFont getFont</CODE
  4039. >(bool *ok, const TQFont &#38;def, TQWidget *parent = 0, const char *name = 0);<P
  4040. ></P
  4041. ></DIV
  4042. ><P
  4043. >This takes the <TT
  4044. CLASS="LITERAL"
  4045. >def</TT
  4046. >, <TT
  4047. CLASS="LITERAL"
  4048. >parent</TT
  4049. > and
  4050. <TT
  4051. CLASS="LITERAL"
  4052. >name</TT
  4053. > parameters and returns a tuple containing the
  4054. <TT
  4055. CLASS="LITERAL"
  4056. >TQFont</TT
  4057. > result and the <TT
  4058. CLASS="LITERAL"
  4059. >ok</TT
  4060. > value.</P
  4061. ><DIV
  4062. CLASS="FUNCSYNOPSIS"
  4063. ><P
  4064. ></P
  4065. ><A
  4066. NAME="AEN1364"
  4067. ></A
  4068. ><CODE
  4069. CLASS="FUNCDEF"
  4070. >static TQFont getFont</CODE
  4071. >(bool *ok, TQWidget *parent = 0, const char *name = 0);<P
  4072. ></P
  4073. ></DIV
  4074. ><P
  4075. >This takes the <TT
  4076. CLASS="LITERAL"
  4077. >parent</TT
  4078. > and <TT
  4079. CLASS="LITERAL"
  4080. >name</TT
  4081. > parameters
  4082. and returns a tuple containing the <TT
  4083. CLASS="LITERAL"
  4084. >TQFont</TT
  4085. > result and the
  4086. <TT
  4087. CLASS="LITERAL"
  4088. >ok</TT
  4089. > value.</P
  4090. ></DIV
  4091. ><DIV
  4092. CLASS="SECT2"
  4093. ><HR><H3
  4094. CLASS="SECT2"
  4095. ><A
  4096. NAME="AEN1378"
  4097. >TQFontInfo</A
  4098. ></H3
  4099. ><P
  4100. ><TT
  4101. CLASS="LITERAL"
  4102. >TQFontInfo</TT
  4103. > is fully implemented.</P
  4104. ></DIV
  4105. ><DIV
  4106. CLASS="SECT2"
  4107. ><HR><H3
  4108. CLASS="SECT2"
  4109. ><A
  4110. NAME="AEN1382"
  4111. >TQFontMetrics</A
  4112. ></H3
  4113. ><DIV
  4114. CLASS="FUNCSYNOPSIS"
  4115. ><P
  4116. ></P
  4117. ><A
  4118. NAME="AEN1384"
  4119. ></A
  4120. ><CODE
  4121. CLASS="FUNCDEF"
  4122. >TQRect boundingRect</CODE
  4123. >(int x, int y, int w, int h, int flags, const TQString &amp;str, int len = -1, int tabstops = 0, int *tabarray = 0);<P
  4124. ></P
  4125. ></DIV
  4126. ><P
  4127. >The <TT
  4128. CLASS="LITERAL"
  4129. >tabarray</TT
  4130. > parameter is a Python list of integers.</P
  4131. ><DIV
  4132. CLASS="FUNCSYNOPSIS"
  4133. ><P
  4134. ></P
  4135. ><A
  4136. NAME="AEN1407"
  4137. ></A
  4138. ><CODE
  4139. CLASS="FUNCDEF"
  4140. >TQSize size</CODE
  4141. >(int flags, const TQString &amp;str, int len = -1, int tabstops = 0, int *tabarray = 0);<P
  4142. ></P
  4143. ></DIV
  4144. ><P
  4145. >The <TT
  4146. CLASS="LITERAL"
  4147. >tabarray</TT
  4148. > parameter is a Python list of integers.</P
  4149. ></DIV
  4150. ><DIV
  4151. CLASS="SECT2"
  4152. ><HR><H3
  4153. CLASS="SECT2"
  4154. ><A
  4155. NAME="AEN1422"
  4156. >TQFrame</A
  4157. ></H3
  4158. ><P
  4159. ><TT
  4160. CLASS="LITERAL"
  4161. >TQFrame</TT
  4162. > is fully implemented.</P
  4163. ></DIV
  4164. ><DIV
  4165. CLASS="SECT2"
  4166. ><HR><H3
  4167. CLASS="SECT2"
  4168. ><A
  4169. NAME="AEN1426"
  4170. >TQGManager (TQt v1.x)</A
  4171. ></H3
  4172. ><P
  4173. ><TT
  4174. CLASS="LITERAL"
  4175. >TQGManager</TT
  4176. > is fully implemented.</P
  4177. ></DIV
  4178. ><DIV
  4179. CLASS="SECT2"
  4180. ><HR><H3
  4181. CLASS="SECT2"
  4182. ><A
  4183. NAME="AEN1430"
  4184. >TQChain (TQt v1.x)</A
  4185. ></H3
  4186. ><P
  4187. ><TT
  4188. CLASS="LITERAL"
  4189. >TQChain</TT
  4190. > is implemented as an opaque class.</P
  4191. ></DIV
  4192. ><DIV
  4193. CLASS="SECT2"
  4194. ><HR><H3
  4195. CLASS="SECT2"
  4196. ><A
  4197. NAME="AEN1434"
  4198. >TQGrid (TQt v2+)</A
  4199. ></H3
  4200. ><P
  4201. ><TT
  4202. CLASS="LITERAL"
  4203. >TQGrid</TT
  4204. > is fully implemented.</P
  4205. ></DIV
  4206. ><DIV
  4207. CLASS="SECT2"
  4208. ><HR><H3
  4209. CLASS="SECT2"
  4210. ><A
  4211. NAME="AEN1438"
  4212. >TQGridView (TQt v3+)</A
  4213. ></H3
  4214. ><P
  4215. ><TT
  4216. CLASS="LITERAL"
  4217. >TQGridView</TT
  4218. > is fully implemented.</P
  4219. ></DIV
  4220. ><DIV
  4221. CLASS="SECT2"
  4222. ><HR><H3
  4223. CLASS="SECT2"
  4224. ><A
  4225. NAME="AEN1442"
  4226. >TQGroupBox</A
  4227. ></H3
  4228. ><P
  4229. ><TT
  4230. CLASS="LITERAL"
  4231. >TQGroupBox</TT
  4232. > is fully implemented.</P
  4233. ></DIV
  4234. ><DIV
  4235. CLASS="SECT2"
  4236. ><HR><H3
  4237. CLASS="SECT2"
  4238. ><A
  4239. NAME="AEN1446"
  4240. >TQHBox (TQt v2+)</A
  4241. ></H3
  4242. ><P
  4243. ><TT
  4244. CLASS="LITERAL"
  4245. >TQHBox</TT
  4246. > is fully implemented.</P
  4247. ></DIV
  4248. ><DIV
  4249. CLASS="SECT2"
  4250. ><HR><H3
  4251. CLASS="SECT2"
  4252. ><A
  4253. NAME="AEN1450"
  4254. >TQHButtonGroup (TQt v2+)</A
  4255. ></H3
  4256. ><P
  4257. ><TT
  4258. CLASS="LITERAL"
  4259. >TQHButtonGroup</TT
  4260. > is fully implemented.</P
  4261. ></DIV
  4262. ><DIV
  4263. CLASS="SECT2"
  4264. ><HR><H3
  4265. CLASS="SECT2"
  4266. ><A
  4267. NAME="AEN1454"
  4268. >TQHeader</A
  4269. ></H3
  4270. ><P
  4271. ><TT
  4272. CLASS="LITERAL"
  4273. >TQHeader</TT
  4274. > is fully implemented.</P
  4275. ></DIV
  4276. ><DIV
  4277. CLASS="SECT2"
  4278. ><HR><H3
  4279. CLASS="SECT2"
  4280. ><A
  4281. NAME="AEN1458"
  4282. >TQHGroupBox (TQt v2+)</A
  4283. ></H3
  4284. ><P
  4285. ><TT
  4286. CLASS="LITERAL"
  4287. >TQHGroupBox</TT
  4288. > is fully implemented.</P
  4289. ></DIV
  4290. ><DIV
  4291. CLASS="SECT2"
  4292. ><HR><H3
  4293. CLASS="SECT2"
  4294. ><A
  4295. NAME="AEN1462"
  4296. >TQIconSet</A
  4297. ></H3
  4298. ><P
  4299. ><TT
  4300. CLASS="LITERAL"
  4301. >TQIconSet</TT
  4302. > is fully implemented.</P
  4303. ></DIV
  4304. ><DIV
  4305. CLASS="SECT2"
  4306. ><HR><H3
  4307. CLASS="SECT2"
  4308. ><A
  4309. NAME="AEN1466"
  4310. >TQIconFactory (TQt v3.1+)</A
  4311. ></H3
  4312. ><P
  4313. ><TT
  4314. CLASS="LITERAL"
  4315. >TQIconFactory</TT
  4316. > is fully implemented.</P
  4317. ></DIV
  4318. ><DIV
  4319. CLASS="SECT2"
  4320. ><HR><H3
  4321. CLASS="SECT2"
  4322. ><A
  4323. NAME="AEN1470"
  4324. >TQIconView (TQt v2.1+)</A
  4325. ></H3
  4326. ><DIV
  4327. CLASS="FUNCSYNOPSIS"
  4328. ><P
  4329. ></P
  4330. ><A
  4331. NAME="AEN1472"
  4332. ></A
  4333. ><CODE
  4334. CLASS="FUNCDEF"
  4335. >TQIconViewItem *makeRowLayout</CODE
  4336. >(TQIconViewItem *begin, int &#38;y);<P
  4337. ></P
  4338. ></DIV
  4339. ><P
  4340. >Not yet implemented.</P
  4341. ></DIV
  4342. ><DIV
  4343. CLASS="SECT2"
  4344. ><HR><H3
  4345. CLASS="SECT2"
  4346. ><A
  4347. NAME="AEN1480"
  4348. >TQIconViewItem (TQt v2.1+)</A
  4349. ></H3
  4350. ><P
  4351. ><TT
  4352. CLASS="LITERAL"
  4353. >TQIconViewItem</TT
  4354. > is fully implemented.</P
  4355. ></DIV
  4356. ><DIV
  4357. CLASS="SECT2"
  4358. ><HR><H3
  4359. CLASS="SECT2"
  4360. ><A
  4361. NAME="AEN1484"
  4362. >TQIconDrag (TQt v2.1+)</A
  4363. ></H3
  4364. ><P
  4365. ><TT
  4366. CLASS="LITERAL"
  4367. >TQIconDrag</TT
  4368. > is fully implemented.</P
  4369. ></DIV
  4370. ><DIV
  4371. CLASS="SECT2"
  4372. ><HR><H3
  4373. CLASS="SECT2"
  4374. ><A
  4375. NAME="AEN1488"
  4376. >TQIconDragItem (TQt v2.1+)</A
  4377. ></H3
  4378. ><P
  4379. ><TT
  4380. CLASS="LITERAL"
  4381. >TQIconDragItem</TT
  4382. > is fully implemented.</P
  4383. ></DIV
  4384. ><DIV
  4385. CLASS="SECT2"
  4386. ><HR><H3
  4387. CLASS="SECT2"
  4388. ><A
  4389. NAME="AEN1492"
  4390. >TQImage</A
  4391. ></H3
  4392. ><P
  4393. >The Python <TT
  4394. CLASS="LITERAL"
  4395. >==</TT
  4396. > and <TT
  4397. CLASS="LITERAL"
  4398. >!=</TT
  4399. > operators are
  4400. supported.</P
  4401. ><DIV
  4402. CLASS="FUNCSYNOPSIS"
  4403. ><P
  4404. ></P
  4405. ><A
  4406. NAME="AEN1497"
  4407. ></A
  4408. ><CODE
  4409. CLASS="FUNCDEF"
  4410. >TQImage</CODE
  4411. >(const char *xpm[]);<P
  4412. ></P
  4413. ></DIV
  4414. ><P
  4415. >This takes a list of strings as its parameter.</P
  4416. ><DIV
  4417. CLASS="FUNCSYNOPSIS"
  4418. ><P
  4419. ></P
  4420. ><A
  4421. NAME="AEN1503"
  4422. ></A
  4423. ><CODE
  4424. CLASS="FUNCDEF"
  4425. >TQImage</CODE
  4426. >(uchar *data, int w, int h, int depth, TQRgb *colorTable, int numColors, Endian bitOrder);<P
  4427. ></P
  4428. ></DIV
  4429. ><P
  4430. >The <TT
  4431. CLASS="LITERAL"
  4432. >colorTable</TT
  4433. > parameter is a list of TQRgb instances or
  4434. None. (TQt v2.1+)</P
  4435. ><DIV
  4436. CLASS="FUNCSYNOPSIS"
  4437. ><P
  4438. ></P
  4439. ><A
  4440. NAME="AEN1522"
  4441. ></A
  4442. ><CODE
  4443. CLASS="FUNCDEF"
  4444. >uchar *bits</CODE
  4445. >();<P
  4446. ></P
  4447. ></DIV
  4448. ><P
  4449. >The return value is a <TT
  4450. CLASS="LITERAL"
  4451. >sip.voidptr</TT
  4452. > object which is only
  4453. useful if passed to another Python module.</P
  4454. ><DIV
  4455. CLASS="FUNCSYNOPSIS"
  4456. ><P
  4457. ></P
  4458. ><A
  4459. NAME="AEN1528"
  4460. ></A
  4461. ><CODE
  4462. CLASS="FUNCDEF"
  4463. >TQRgb *colorTable</CODE
  4464. >();<P
  4465. ></P
  4466. ></DIV
  4467. ><P
  4468. >The return value is a <TT
  4469. CLASS="LITERAL"
  4470. >sip.voidptr</TT
  4471. > object which is only
  4472. useful if passed to another Python module.</P
  4473. ><DIV
  4474. CLASS="FUNCSYNOPSIS"
  4475. ><P
  4476. ></P
  4477. ><A
  4478. NAME="AEN1534"
  4479. ></A
  4480. ><CODE
  4481. CLASS="FUNCDEF"
  4482. >TQImage convertDepthWithPalette</CODE
  4483. >(int, TQRgb *p, int pc, int cf = 0);<P
  4484. ></P
  4485. ></DIV
  4486. ><P
  4487. >Not implemented.</P
  4488. ><DIV
  4489. CLASS="FUNCSYNOPSIS"
  4490. ><P
  4491. ></P
  4492. ><A
  4493. NAME="AEN1545"
  4494. ></A
  4495. ><CODE
  4496. CLASS="FUNCDEF"
  4497. >uchar **jumpTable</CODE
  4498. >();<P
  4499. ></P
  4500. ></DIV
  4501. ><P
  4502. >The return value is a <TT
  4503. CLASS="LITERAL"
  4504. >sip.voidptr</TT
  4505. > object which is only
  4506. useful if passed to another Python module.</P
  4507. ><DIV
  4508. CLASS="FUNCSYNOPSIS"
  4509. ><P
  4510. ></P
  4511. ><A
  4512. NAME="AEN1551"
  4513. ></A
  4514. ><CODE
  4515. CLASS="FUNCDEF"
  4516. >bool loadFromData</CODE
  4517. >(const uchar *buf, uint len, const char *format = 0, ColorMode mode = Auto);<P
  4518. ></P
  4519. ></DIV
  4520. ><P
  4521. ><TT
  4522. CLASS="LITERAL"
  4523. >len</TT
  4524. > is derived from <TT
  4525. CLASS="LITERAL"
  4526. >buf</TT
  4527. > and not passed as
  4528. a parameter.</P
  4529. ><DIV
  4530. CLASS="FUNCSYNOPSIS"
  4531. ><P
  4532. ></P
  4533. ><A
  4534. NAME="AEN1565"
  4535. ></A
  4536. ><CODE
  4537. CLASS="FUNCDEF"
  4538. >uchar *scanLine</CODE
  4539. >(int i);<P
  4540. ></P
  4541. ></DIV
  4542. ><P
  4543. >The return value is a <TT
  4544. CLASS="LITERAL"
  4545. >sip.voidptr</TT
  4546. > object which is only
  4547. useful if passed to another Python module.</P
  4548. ></DIV
  4549. ><DIV
  4550. CLASS="SECT2"
  4551. ><HR><H3
  4552. CLASS="SECT2"
  4553. ><A
  4554. NAME="AEN1572"
  4555. >TQImageIO</A
  4556. ></H3
  4557. ><DIV
  4558. CLASS="FUNCSYNOPSIS"
  4559. ><P
  4560. ></P
  4561. ><A
  4562. NAME="AEN1574"
  4563. ></A
  4564. ><CODE
  4565. CLASS="FUNCDEF"
  4566. >static void defineIOHandler</CODE
  4567. >(const char *format, const char *header, const char *flags, image_io_handler read_image, image_io_handler write_image);<P
  4568. ></P
  4569. ></DIV
  4570. ><P
  4571. >Not implemented.</P
  4572. ></DIV
  4573. ><DIV
  4574. CLASS="SECT2"
  4575. ><HR><H3
  4576. CLASS="SECT2"
  4577. ><A
  4578. NAME="AEN1588"
  4579. >TQImageTextKeyLang</A
  4580. ></H3
  4581. ><P
  4582. ><TT
  4583. CLASS="LITERAL"
  4584. >TQImageTextKeyLang</TT
  4585. > is fully implemented.</P
  4586. ></DIV
  4587. ><DIV
  4588. CLASS="SECT2"
  4589. ><HR><H3
  4590. CLASS="SECT2"
  4591. ><A
  4592. NAME="AEN1592"
  4593. >TQInputDialog (TQt v2.1+)</A
  4594. ></H3
  4595. ><DIV
  4596. CLASS="FUNCSYNOPSIS"
  4597. ><P
  4598. ></P
  4599. ><A
  4600. NAME="AEN1594"
  4601. ></A
  4602. ><CODE
  4603. CLASS="FUNCDEF"
  4604. >static TQString getText</CODE
  4605. >(const TQString &amp;caption, const TQString &amp;label, const TQString &amp;text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);<P
  4606. ></P
  4607. ></DIV
  4608. ><P
  4609. >The <TT
  4610. CLASS="LITERAL"
  4611. >ok</TT
  4612. > is not passed and the returned value is a tuple of
  4613. the <TT
  4614. CLASS="LITERAL"
  4615. >TQString</TT
  4616. > result and the <TT
  4617. CLASS="LITERAL"
  4618. >ok</TT
  4619. > flag.
  4620. (TQt v2.1 - v2.3.1)</P
  4621. ><DIV
  4622. CLASS="FUNCSYNOPSIS"
  4623. ><P
  4624. ></P
  4625. ><A
  4626. NAME="AEN1613"
  4627. ></A
  4628. ><CODE
  4629. CLASS="FUNCDEF"
  4630. >static TQString getText</CODE
  4631. >(const TQString &amp;caption, const TQString &amp;label, TQLineEdit::EchoModeecho, const TQString &amp;text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);<P
  4632. ></P
  4633. ></DIV
  4634. ><P
  4635. >The <TT
  4636. CLASS="LITERAL"
  4637. >ok</TT
  4638. > is not passed and the returned value is a tuple of
  4639. the <TT
  4640. CLASS="LITERAL"
  4641. >TQString</TT
  4642. > result and the <TT
  4643. CLASS="LITERAL"
  4644. >ok</TT
  4645. > flag.
  4646. (TQt v2.2 - v2.3.1)</P
  4647. ><DIV
  4648. CLASS="FUNCSYNOPSIS"
  4649. ><P
  4650. ></P
  4651. ><A
  4652. NAME="AEN1634"
  4653. ></A
  4654. ><CODE
  4655. CLASS="FUNCDEF"
  4656. >static TQString getText</CODE
  4657. >(const TQString &amp;caption, const TQString &amp;label, TQLineEdit::EchoModeecho = TQLineEdit::Normal, const TQString &amp;text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);<P
  4658. ></P
  4659. ></DIV
  4660. ><P
  4661. >The <TT
  4662. CLASS="LITERAL"
  4663. >ok</TT
  4664. > is not passed and the returned value is a tuple of
  4665. the <TT
  4666. CLASS="LITERAL"
  4667. >TQString</TT
  4668. > result and the <TT
  4669. CLASS="LITERAL"
  4670. >ok</TT
  4671. > flag.
  4672. (TQt v3+)</P
  4673. ><DIV
  4674. CLASS="FUNCSYNOPSIS"
  4675. ><P
  4676. ></P
  4677. ><A
  4678. NAME="AEN1655"
  4679. ></A
  4680. ><CODE
  4681. CLASS="FUNCDEF"
  4682. >static int getInteger</CODE
  4683. >(const TQString &amp;caption, const TQString &amp;label, int num = 0, int from = -2147483647, int to = 2147483647, int step = 1, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);<P
  4684. ></P
  4685. ></DIV
  4686. ><P
  4687. >The <TT
  4688. CLASS="LITERAL"
  4689. >ok</TT
  4690. > is not passed and the returned value is a tuple of
  4691. the <TT
  4692. CLASS="LITERAL"
  4693. >int</TT
  4694. > result and the <TT
  4695. CLASS="LITERAL"
  4696. >ok</TT
  4697. > flag.</P
  4698. ><DIV
  4699. CLASS="FUNCSYNOPSIS"
  4700. ><P
  4701. ></P
  4702. ><A
  4703. NAME="AEN1680"
  4704. ></A
  4705. ><CODE
  4706. CLASS="FUNCDEF"
  4707. >static double getDouble</CODE
  4708. >(const TQString &amp;caption, const TQString &amp;label, double num = 0, double from = -2147483647, double to = 2147483647, int step = 1, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);<P
  4709. ></P
  4710. ></DIV
  4711. ><P
  4712. >The <TT
  4713. CLASS="LITERAL"
  4714. >ok</TT
  4715. > is not passed and the returned value is a tuple of
  4716. the <TT
  4717. CLASS="LITERAL"
  4718. >double</TT
  4719. > result and the <TT
  4720. CLASS="LITERAL"
  4721. >ok</TT
  4722. > flag.</P
  4723. ><DIV
  4724. CLASS="FUNCSYNOPSIS"
  4725. ><P
  4726. ></P
  4727. ><A
  4728. NAME="AEN1705"
  4729. ></A
  4730. ><CODE
  4731. CLASS="FUNCDEF"
  4732. >static TQString getItem</CODE
  4733. >(const TQString &amp;caption, const TQString &amp;label, const TQStringList &#38;list, int current = 0, bool editable = TRUE, bool *ok = 0, TQWidget *parent = 0, const char *name = 0);<P
  4734. ></P
  4735. ></DIV
  4736. ><P
  4737. >The <TT
  4738. CLASS="LITERAL"
  4739. >ok</TT
  4740. > is not passed and the returned value is a tuple of
  4741. the <TT
  4742. CLASS="LITERAL"
  4743. >TQString</TT
  4744. > result and the <TT
  4745. CLASS="LITERAL"
  4746. >ok</TT
  4747. > flag.</P
  4748. ></DIV
  4749. ><DIV
  4750. CLASS="SECT2"
  4751. ><HR><H3
  4752. CLASS="SECT2"
  4753. ><A
  4754. NAME="AEN1728"
  4755. >TQInterlaceStyle (TQt v2.3.1+)</A
  4756. ></H3
  4757. ><DIV
  4758. CLASS="FUNCSYNOPSIS"
  4759. ><P
  4760. ></P
  4761. ><A
  4762. NAME="AEN1730"
  4763. ></A
  4764. ><CODE
  4765. CLASS="FUNCDEF"
  4766. >void scrollBarMetrics</CODE
  4767. >(const TQTabBar *sb, int &amp;sliderMin, int &amp;sliderMax, int &amp;sliderLength, int &amp;buttonDim);<P
  4768. ></P
  4769. ></DIV
  4770. ><P
  4771. >This takes only the <TT
  4772. CLASS="LITERAL"
  4773. >sb</TT
  4774. > parameter and returns a tuple of the
  4775. <TT
  4776. CLASS="LITERAL"
  4777. >sliderMin</TT
  4778. >, <TT
  4779. CLASS="LITERAL"
  4780. >sliderMax</TT
  4781. >,
  4782. <TT
  4783. CLASS="LITERAL"
  4784. >sliderLength</TT
  4785. > and <TT
  4786. CLASS="LITERAL"
  4787. >buttonDim</TT
  4788. > values.</P
  4789. ></DIV
  4790. ><DIV
  4791. CLASS="SECT2"
  4792. ><HR><H3
  4793. CLASS="SECT2"
  4794. ><A
  4795. NAME="AEN1749"
  4796. >TQIODevice</A
  4797. ></H3
  4798. ><P
  4799. ><TT
  4800. CLASS="LITERAL"
  4801. >TQIODevice</TT
  4802. > is fully implemented.</P
  4803. ></DIV
  4804. ><DIV
  4805. CLASS="SECT2"
  4806. ><HR><H3
  4807. CLASS="SECT2"
  4808. ><A
  4809. NAME="AEN1753"
  4810. >TQKeySequence (TQt v3+)</A
  4811. ></H3
  4812. ><P
  4813. ><TT
  4814. CLASS="LITERAL"
  4815. >TQKeySequence</TT
  4816. > is fully implemented including the operators
  4817. <TT
  4818. CLASS="LITERAL"
  4819. >==</TT
  4820. >, <TT
  4821. CLASS="LITERAL"
  4822. >!=</TT
  4823. >, <TT
  4824. CLASS="LITERAL"
  4825. >TQString()</TT
  4826. > and
  4827. <TT
  4828. CLASS="LITERAL"
  4829. >int()</TT
  4830. >. A <TT
  4831. CLASS="LITERAL"
  4832. >TQString</TT
  4833. > instance or a Python
  4834. integer may be used whenever a <TT
  4835. CLASS="LITERAL"
  4836. >TQKeySequence</TT
  4837. > can be used.</P
  4838. ></DIV
  4839. ><DIV
  4840. CLASS="SECT2"
  4841. ><HR><H3
  4842. CLASS="SECT2"
  4843. ><A
  4844. NAME="AEN1763"
  4845. >TQLabel</A
  4846. ></H3
  4847. ><P
  4848. ><TT
  4849. CLASS="LITERAL"
  4850. >TQLabel</TT
  4851. > is fully implemented.</P
  4852. ></DIV
  4853. ><DIV
  4854. CLASS="SECT2"
  4855. ><HR><H3
  4856. CLASS="SECT2"
  4857. ><A
  4858. NAME="AEN1767"
  4859. >TQLayout</A
  4860. ></H3
  4861. ><P
  4862. ><TT
  4863. CLASS="LITERAL"
  4864. >TQLayout</TT
  4865. > is fully implemented.</P
  4866. ></DIV
  4867. ><DIV
  4868. CLASS="SECT2"
  4869. ><HR><H3
  4870. CLASS="SECT2"
  4871. ><A
  4872. NAME="AEN1771"
  4873. >TQBoxLayout</A
  4874. ></H3
  4875. ><P
  4876. ><TT
  4877. CLASS="LITERAL"
  4878. >TQBoxLayout</TT
  4879. > is fully implemented.</P
  4880. ></DIV
  4881. ><DIV
  4882. CLASS="SECT2"
  4883. ><HR><H3
  4884. CLASS="SECT2"
  4885. ><A
  4886. NAME="AEN1775"
  4887. >TQGLayoutIterator (TQt v2+)</A
  4888. ></H3
  4889. ><P
  4890. ><TT
  4891. CLASS="LITERAL"
  4892. >TQGLayoutIterator</TT
  4893. > is fully implemented.</P
  4894. ></DIV
  4895. ><DIV
  4896. CLASS="SECT2"
  4897. ><HR><H3
  4898. CLASS="SECT2"
  4899. ><A
  4900. NAME="AEN1779"
  4901. >TQGridLayout</A
  4902. ></H3
  4903. ><DIV
  4904. CLASS="FUNCSYNOPSIS"
  4905. ><P
  4906. ></P
  4907. ><A
  4908. NAME="AEN1781"
  4909. ></A
  4910. ><CODE
  4911. CLASS="FUNCDEF"
  4912. >bool findWidget</CODE
  4913. >(TQWidget *w, int *row, int *col);<P
  4914. ></P
  4915. ></DIV
  4916. ><P
  4917. >This takes the <TT
  4918. CLASS="LITERAL"
  4919. >w</TT
  4920. > parameter and returns a tuple containing
  4921. the <TT
  4922. CLASS="LITERAL"
  4923. >bool</TT
  4924. > result, <TT
  4925. CLASS="LITERAL"
  4926. >row</TT
  4927. > and
  4928. <TT
  4929. CLASS="LITERAL"
  4930. >col</TT
  4931. >. (TQt v2+)</P
  4932. ></DIV
  4933. ><DIV
  4934. CLASS="SECT2"
  4935. ><HR><H3
  4936. CLASS="SECT2"
  4937. ><A
  4938. NAME="AEN1795"
  4939. >TQHBoxLayout</A
  4940. ></H3
  4941. ><P
  4942. ><TT
  4943. CLASS="LITERAL"
  4944. >TQHBoxLayout</TT
  4945. > is fully implemented.</P
  4946. ></DIV
  4947. ><DIV
  4948. CLASS="SECT2"
  4949. ><HR><H3
  4950. CLASS="SECT2"
  4951. ><A
  4952. NAME="AEN1799"
  4953. >TQLayoutItem (TQt v2+)</A
  4954. ></H3
  4955. ><P
  4956. ><TT
  4957. CLASS="LITERAL"
  4958. >TQLayoutItem</TT
  4959. > is fully implemented.</P
  4960. ></DIV
  4961. ><DIV
  4962. CLASS="SECT2"
  4963. ><HR><H3
  4964. CLASS="SECT2"
  4965. ><A
  4966. NAME="AEN1803"
  4967. >TQLayoutIterator (TQt v2+)</A
  4968. ></H3
  4969. ><DIV
  4970. CLASS="FUNCSYNOPSIS"
  4971. ><P
  4972. ></P
  4973. ><A
  4974. NAME="AEN1805"
  4975. ></A
  4976. ><CODE
  4977. CLASS="FUNCDEF"
  4978. >TQLayoutItem *next</CODE
  4979. >();<P
  4980. ></P
  4981. ></DIV
  4982. ><P
  4983. >This is a wrapper around the <TT
  4984. CLASS="LITERAL"
  4985. >TQLayoutIterator</TT
  4986. >
  4987. <TT
  4988. CLASS="LITERAL"
  4989. >++</TT
  4990. > operator.</P
  4991. ></DIV
  4992. ><DIV
  4993. CLASS="SECT2"
  4994. ><HR><H3
  4995. CLASS="SECT2"
  4996. ><A
  4997. NAME="AEN1812"
  4998. >TQSpacerItem (TQt v2+)</A
  4999. ></H3
  5000. ><P
  5001. ><TT
  5002. CLASS="LITERAL"
  5003. >TQSpacerItem</TT
  5004. > is fully implemented.</P
  5005. ></DIV
  5006. ><DIV
  5007. CLASS="SECT2"
  5008. ><HR><H3
  5009. CLASS="SECT2"
  5010. ><A
  5011. NAME="AEN1816"
  5012. >TQVBoxLayout</A
  5013. ></H3
  5014. ><P
  5015. ><TT
  5016. CLASS="LITERAL"
  5017. >TQVBoxLayout</TT
  5018. > is fully implemented.</P
  5019. ></DIV
  5020. ><DIV
  5021. CLASS="SECT2"
  5022. ><HR><H3
  5023. CLASS="SECT2"
  5024. ><A
  5025. NAME="AEN1820"
  5026. >TQWidgetItem (TQt v2+)</A
  5027. ></H3
  5028. ><P
  5029. ><TT
  5030. CLASS="LITERAL"
  5031. >TQWidgetItem</TT
  5032. > is fully implemented.</P
  5033. ></DIV
  5034. ><DIV
  5035. CLASS="SECT2"
  5036. ><HR><H3
  5037. CLASS="SECT2"
  5038. ><A
  5039. NAME="AEN1824"
  5040. >TQLCDNumber</A
  5041. ></H3
  5042. ><P
  5043. ><TT
  5044. CLASS="LITERAL"
  5045. >TQLCDNumber</TT
  5046. > is fully implemented.</P
  5047. ></DIV
  5048. ><DIV
  5049. CLASS="SECT2"
  5050. ><HR><H3
  5051. CLASS="SECT2"
  5052. ><A
  5053. NAME="AEN1828"
  5054. >TQLibrary (TQt v3+)</A
  5055. ></H3
  5056. ><P
  5057. ><TT
  5058. CLASS="LITERAL"
  5059. >TQLibrary</TT
  5060. > is fully implemented.</P
  5061. ></DIV
  5062. ><DIV
  5063. CLASS="SECT2"
  5064. ><HR><H3
  5065. CLASS="SECT2"
  5066. ><A
  5067. NAME="AEN1832"
  5068. >TQLineEdit</A
  5069. ></H3
  5070. ><DIV
  5071. CLASS="FUNCSYNOPSIS"
  5072. ><P
  5073. ></P
  5074. ><A
  5075. NAME="AEN1834"
  5076. ></A
  5077. ><CODE
  5078. CLASS="FUNCDEF"
  5079. >int characterAt</CODE
  5080. >(int xpos, TQChar *chr);<P
  5081. ></P
  5082. ></DIV
  5083. ><P
  5084. >This takes only the <TT
  5085. CLASS="LITERAL"
  5086. >xpos</TT
  5087. > parameter and returns the int
  5088. result and the <TT
  5089. CLASS="LITERAL"
  5090. >chr</TT
  5091. > value as a tuple. (TQt v3+)</P
  5092. ><DIV
  5093. CLASS="FUNCSYNOPSIS"
  5094. ><P
  5095. ></P
  5096. ><A
  5097. NAME="AEN1844"
  5098. ></A
  5099. ><CODE
  5100. CLASS="FUNCDEF"
  5101. >void del</CODE
  5102. >();<P
  5103. ></P
  5104. ></DIV
  5105. ><P
  5106. >This has been renamed <TT
  5107. CLASS="LITERAL"
  5108. >delChar</TT
  5109. > in Python. (TQt v2+)</P
  5110. ><DIV
  5111. CLASS="FUNCSYNOPSIS"
  5112. ><P
  5113. ></P
  5114. ><A
  5115. NAME="AEN1850"
  5116. ></A
  5117. ><CODE
  5118. CLASS="FUNCDEF"
  5119. >bool getSelection</CODE
  5120. >(int *start, int *end);<P
  5121. ></P
  5122. ></DIV
  5123. ><P
  5124. >This takes no parameters and returns the bool result and the
  5125. <TT
  5126. CLASS="LITERAL"
  5127. >start</TT
  5128. > and <TT
  5129. CLASS="LITERAL"
  5130. >end</TT
  5131. > values as a tuple.
  5132. (TQt v3+)</P
  5133. ></DIV
  5134. ><DIV
  5135. CLASS="SECT2"
  5136. ><HR><H3
  5137. CLASS="SECT2"
  5138. ><A
  5139. NAME="AEN1860"
  5140. >TQList&lt;type&gt; (TQt v2)</A
  5141. ></H3
  5142. ><P
  5143. >Types based on the <TT
  5144. CLASS="LITERAL"
  5145. >TQList</TT
  5146. > template are automatically
  5147. converted to and from Python lists of the type.</P
  5148. ></DIV
  5149. ><DIV
  5150. CLASS="SECT2"
  5151. ><HR><H3
  5152. CLASS="SECT2"
  5153. ><A
  5154. NAME="AEN1864"
  5155. >TQListBox</A
  5156. ></H3
  5157. ><DIV
  5158. CLASS="FUNCSYNOPSIS"
  5159. ><P
  5160. ></P
  5161. ><A
  5162. NAME="AEN1866"
  5163. ></A
  5164. ><CODE
  5165. CLASS="FUNCDEF"
  5166. >bool itemYPos</CODE
  5167. >(int index, int *yPos);<P
  5168. ></P
  5169. ></DIV
  5170. ><P
  5171. >This takes the <TT
  5172. CLASS="LITERAL"
  5173. >index</TT
  5174. > parameter and returns a tuple
  5175. containing the <TT
  5176. CLASS="LITERAL"
  5177. >bool</TT
  5178. > result and <TT
  5179. CLASS="LITERAL"
  5180. >yPos</TT
  5181. >.
  5182. (TQt v1.x)</P
  5183. ></DIV
  5184. ><DIV
  5185. CLASS="SECT2"
  5186. ><HR><H3
  5187. CLASS="SECT2"
  5188. ><A
  5189. NAME="AEN1877"
  5190. >TQListBoxItem</A
  5191. ></H3
  5192. ><P
  5193. ><TT
  5194. CLASS="LITERAL"
  5195. >TQListBoxItem</TT
  5196. > is fully implemented.</P
  5197. ></DIV
  5198. ><DIV
  5199. CLASS="SECT2"
  5200. ><HR><H3
  5201. CLASS="SECT2"
  5202. ><A
  5203. NAME="AEN1881"
  5204. >TQListBoxPixmap</A
  5205. ></H3
  5206. ><P
  5207. ><TT
  5208. CLASS="LITERAL"
  5209. >TQListBoxPixmap</TT
  5210. > is fully implemented.</P
  5211. ></DIV
  5212. ><DIV
  5213. CLASS="SECT2"
  5214. ><HR><H3
  5215. CLASS="SECT2"
  5216. ><A
  5217. NAME="AEN1885"
  5218. >TQListBoxText</A
  5219. ></H3
  5220. ><P
  5221. ><TT
  5222. CLASS="LITERAL"
  5223. >TQListBoxText</TT
  5224. > is fully implemented.</P
  5225. ></DIV
  5226. ><DIV
  5227. CLASS="SECT2"
  5228. ><HR><H3
  5229. CLASS="SECT2"
  5230. ><A
  5231. NAME="AEN1889"
  5232. >TQListView</A
  5233. ></H3
  5234. ><P
  5235. ><TT
  5236. CLASS="LITERAL"
  5237. >TQListView</TT
  5238. > is fully implemented.</P
  5239. ><P
  5240. >Note that to remove a child <TT
  5241. CLASS="LITERAL"
  5242. >TQListViewItem</TT
  5243. > you must first
  5244. call <TT
  5245. CLASS="LITERAL"
  5246. >takeItem()</TT
  5247. > and then <TT
  5248. CLASS="LITERAL"
  5249. >del()</TT
  5250. >.</P
  5251. ></DIV
  5252. ><DIV
  5253. CLASS="SECT2"
  5254. ><HR><H3
  5255. CLASS="SECT2"
  5256. ><A
  5257. NAME="AEN1897"
  5258. >TQListViewItem</A
  5259. ></H3
  5260. ><P
  5261. ><TT
  5262. CLASS="LITERAL"
  5263. >TQListViewItem</TT
  5264. > is fully implemented.</P
  5265. ><P
  5266. >Note that to remove a child <TT
  5267. CLASS="LITERAL"
  5268. >TQListViewItem</TT
  5269. > you must first
  5270. call <TT
  5271. CLASS="LITERAL"
  5272. >takeItem()</TT
  5273. > and then <TT
  5274. CLASS="LITERAL"
  5275. >del()</TT
  5276. >.</P
  5277. ></DIV
  5278. ><DIV
  5279. CLASS="SECT2"
  5280. ><HR><H3
  5281. CLASS="SECT2"
  5282. ><A
  5283. NAME="AEN1905"
  5284. >TQCheckListItem</A
  5285. ></H3
  5286. ><P
  5287. ><TT
  5288. CLASS="LITERAL"
  5289. >TQCheckListItem</TT
  5290. > is fully implemented.</P
  5291. ></DIV
  5292. ><DIV
  5293. CLASS="SECT2"
  5294. ><HR><H3
  5295. CLASS="SECT2"
  5296. ><A
  5297. NAME="AEN1909"
  5298. >TQListViewItemIterator (TQt v2+)</A
  5299. ></H3
  5300. ><P
  5301. ><TT
  5302. CLASS="LITERAL"
  5303. >TQListViewItemIterator</TT
  5304. > is fully implemented.</P
  5305. ></DIV
  5306. ><DIV
  5307. CLASS="SECT2"
  5308. ><HR><H3
  5309. CLASS="SECT2"
  5310. ><A
  5311. NAME="AEN1913"
  5312. >TQLocale (TQt v3.3+)</A
  5313. ></H3
  5314. ><DIV
  5315. CLASS="FUNCSYNOPSIS"
  5316. ><P
  5317. ></P
  5318. ><A
  5319. NAME="AEN1915"
  5320. ></A
  5321. ><CODE
  5322. CLASS="FUNCDEF"
  5323. >short toShort</CODE
  5324. >(bool *ok = 0);<P
  5325. ></P
  5326. ></DIV
  5327. ><P
  5328. >This returns a tuple of the <TT
  5329. CLASS="LITERAL"
  5330. >short</TT
  5331. > result and the
  5332. <TT
  5333. CLASS="LITERAL"
  5334. >ok</TT
  5335. > value.</P
  5336. ><DIV
  5337. CLASS="FUNCSYNOPSIS"
  5338. ><P
  5339. ></P
  5340. ><A
  5341. NAME="AEN1923"
  5342. ></A
  5343. ><CODE
  5344. CLASS="FUNCDEF"
  5345. >ushort toUShort</CODE
  5346. >(bool *ok = 0);<P
  5347. ></P
  5348. ></DIV
  5349. ><P
  5350. >This returns a tuple of the <TT
  5351. CLASS="LITERAL"
  5352. >ushort</TT
  5353. > result and the
  5354. <TT
  5355. CLASS="LITERAL"
  5356. >ok</TT
  5357. > value.</P
  5358. ><DIV
  5359. CLASS="FUNCSYNOPSIS"
  5360. ><P
  5361. ></P
  5362. ><A
  5363. NAME="AEN1931"
  5364. ></A
  5365. ><CODE
  5366. CLASS="FUNCDEF"
  5367. >int toInt</CODE
  5368. >(bool *ok = 0);<P
  5369. ></P
  5370. ></DIV
  5371. ><P
  5372. >This returns a tuple of the <TT
  5373. CLASS="LITERAL"
  5374. >int</TT
  5375. > result and the
  5376. <TT
  5377. CLASS="LITERAL"
  5378. >ok</TT
  5379. > value.</P
  5380. ><DIV
  5381. CLASS="FUNCSYNOPSIS"
  5382. ><P
  5383. ></P
  5384. ><A
  5385. NAME="AEN1939"
  5386. ></A
  5387. ><CODE
  5388. CLASS="FUNCDEF"
  5389. >uint toUInt</CODE
  5390. >(bool *ok = 0);<P
  5391. ></P
  5392. ></DIV
  5393. ><P
  5394. >This returns a tuple of the <TT
  5395. CLASS="LITERAL"
  5396. >uint</TT
  5397. > result and the
  5398. <TT
  5399. CLASS="LITERAL"
  5400. >ok</TT
  5401. > value.</P
  5402. ><DIV
  5403. CLASS="FUNCSYNOPSIS"
  5404. ><P
  5405. ></P
  5406. ><A
  5407. NAME="AEN1947"
  5408. ></A
  5409. ><CODE
  5410. CLASS="FUNCDEF"
  5411. >Q_LONG toLong</CODE
  5412. >(bool *ok = 0);<P
  5413. ></P
  5414. ></DIV
  5415. ><P
  5416. >This returns a tuple of the <TT
  5417. CLASS="LITERAL"
  5418. >long</TT
  5419. > result and the
  5420. <TT
  5421. CLASS="LITERAL"
  5422. >ok</TT
  5423. > value.</P
  5424. ><DIV
  5425. CLASS="FUNCSYNOPSIS"
  5426. ><P
  5427. ></P
  5428. ><A
  5429. NAME="AEN1955"
  5430. ></A
  5431. ><CODE
  5432. CLASS="FUNCDEF"
  5433. >Q_ULONG toULong</CODE
  5434. >(bool *ok = 0);<P
  5435. ></P
  5436. ></DIV
  5437. ><P
  5438. >This returns a tuple of the <TT
  5439. CLASS="LITERAL"
  5440. >ulong</TT
  5441. > result and the
  5442. <TT
  5443. CLASS="LITERAL"
  5444. >ok</TT
  5445. > value.</P
  5446. ><DIV
  5447. CLASS="FUNCSYNOPSIS"
  5448. ><P
  5449. ></P
  5450. ><A
  5451. NAME="AEN1963"
  5452. ></A
  5453. ><CODE
  5454. CLASS="FUNCDEF"
  5455. >float toFloat</CODE
  5456. >(bool *ok = 0);<P
  5457. ></P
  5458. ></DIV
  5459. ><P
  5460. >This returns a tuple of the <TT
  5461. CLASS="LITERAL"
  5462. >float</TT
  5463. > result and the
  5464. <TT
  5465. CLASS="LITERAL"
  5466. >ok</TT
  5467. > value.</P
  5468. ><DIV
  5469. CLASS="FUNCSYNOPSIS"
  5470. ><P
  5471. ></P
  5472. ><A
  5473. NAME="AEN1971"
  5474. ></A
  5475. ><CODE
  5476. CLASS="FUNCDEF"
  5477. >double toDouble</CODE
  5478. >(bool *ok = 0);<P
  5479. ></P
  5480. ></DIV
  5481. ><P
  5482. >This returns a tuple of the <TT
  5483. CLASS="LITERAL"
  5484. >double</TT
  5485. > result and the
  5486. <TT
  5487. CLASS="LITERAL"
  5488. >ok</TT
  5489. > value.</P
  5490. ></DIV
  5491. ><DIV
  5492. CLASS="SECT2"
  5493. ><HR><H3
  5494. CLASS="SECT2"
  5495. ><A
  5496. NAME="AEN1979"
  5497. >TQMainWindow</A
  5498. ></H3
  5499. ><DIV
  5500. CLASS="FUNCSYNOPSIS"
  5501. ><P
  5502. ></P
  5503. ><A
  5504. NAME="AEN1981"
  5505. ></A
  5506. ><CODE
  5507. CLASS="FUNCDEF"
  5508. >TQTextStream &amp;operator&lt;&lt;</CODE
  5509. >(TQTextStream &amp;, const TQMainWindow &amp;);<P
  5510. ></P
  5511. ></DIV
  5512. ><P
  5513. >This operator is fully implemented. (TQt v3+)</P
  5514. ><DIV
  5515. CLASS="FUNCSYNOPSIS"
  5516. ><P
  5517. ></P
  5518. ><A
  5519. NAME="AEN1989"
  5520. ></A
  5521. ><CODE
  5522. CLASS="FUNCDEF"
  5523. >TQTextStream &amp;operator&gt;&gt;</CODE
  5524. >(TQTextStream &amp;, TQMainWindow &amp;);<P
  5525. ></P
  5526. ></DIV
  5527. ><P
  5528. >This operator is fully implemented. (TQt v3+)</P
  5529. ><DIV
  5530. CLASS="FUNCSYNOPSIS"
  5531. ><P
  5532. ></P
  5533. ><A
  5534. NAME="AEN1997"
  5535. ></A
  5536. ><CODE
  5537. CLASS="FUNCDEF"
  5538. >bool getLocation</CODE
  5539. >(TQToolBar *tb, ToolBarDock &amp;dock, int &amp;index, bool &amp;nl, int &amp;extraOffset);<P
  5540. ></P
  5541. ></DIV
  5542. ><P
  5543. >This takes only the <TT
  5544. CLASS="LITERAL"
  5545. >tb</TT
  5546. > parameter and returns a tuple of the
  5547. result, <TT
  5548. CLASS="LITERAL"
  5549. >dock</TT
  5550. >, <TT
  5551. CLASS="LITERAL"
  5552. >index</TT
  5553. >,
  5554. <TT
  5555. CLASS="LITERAL"
  5556. >nl</TT
  5557. > and <TT
  5558. CLASS="LITERAL"
  5559. >extraOffset</TT
  5560. > values. (TQt v2.1.0+)</P
  5561. ><DIV
  5562. CLASS="FUNCSYNOPSIS"
  5563. ><P
  5564. ></P
  5565. ><A
  5566. NAME="AEN2016"
  5567. ></A
  5568. ><CODE
  5569. CLASS="FUNCDEF"
  5570. >TQList&lt;TQToolBar&gt; toolBars</CODE
  5571. >(ToolBarDock dock);<P
  5572. ></P
  5573. ></DIV
  5574. ><P
  5575. >This returns a list of <TT
  5576. CLASS="LITERAL"
  5577. >TQToolBar</TT
  5578. > instances. (TQt v2.1.0+)</P
  5579. ></DIV
  5580. ><DIV
  5581. CLASS="SECT2"
  5582. ><HR><H3
  5583. CLASS="SECT2"
  5584. ><A
  5585. NAME="AEN2023"
  5586. >TQMemArray&lt;type&gt; (TQt v3+)</A
  5587. ></H3
  5588. ><P
  5589. >Types based on the <TT
  5590. CLASS="LITERAL"
  5591. >TQMemArray</TT
  5592. > template are automatically
  5593. converted to and from Python lists of the type.</P
  5594. ></DIV
  5595. ><DIV
  5596. CLASS="SECT2"
  5597. ><HR><H3
  5598. CLASS="SECT2"
  5599. ><A
  5600. NAME="AEN2027"
  5601. >TQMenuBar</A
  5602. ></H3
  5603. ><P
  5604. ><TT
  5605. CLASS="LITERAL"
  5606. >TQMenuBar</TT
  5607. > is fully implemented.</P
  5608. ></DIV
  5609. ><DIV
  5610. CLASS="SECT2"
  5611. ><HR><H3
  5612. CLASS="SECT2"
  5613. ><A
  5614. NAME="AEN2031"
  5615. >TQMenuData</A
  5616. ></H3
  5617. ><DIV
  5618. CLASS="FUNCSYNOPSIS"
  5619. ><P
  5620. ></P
  5621. ><A
  5622. NAME="AEN2033"
  5623. ></A
  5624. ><CODE
  5625. CLASS="FUNCDEF"
  5626. >TQMenuItem *findItem</CODE
  5627. >(int id, TQMenuData **parent);<P
  5628. ></P
  5629. ></DIV
  5630. ><P
  5631. >Not implemented.</P
  5632. ></DIV
  5633. ><DIV
  5634. CLASS="SECT2"
  5635. ><HR><H3
  5636. CLASS="SECT2"
  5637. ><A
  5638. NAME="AEN2041"
  5639. >TQCustomMenuItem (TQt v2.1+)</A
  5640. ></H3
  5641. ><P
  5642. ><TT
  5643. CLASS="LITERAL"
  5644. >TQCustomMenuItem</TT
  5645. > is fully implemented.</P
  5646. ></DIV
  5647. ><DIV
  5648. CLASS="SECT2"
  5649. ><HR><H3
  5650. CLASS="SECT2"
  5651. ><A
  5652. NAME="AEN2045"
  5653. >TQMenuItem</A
  5654. ></H3
  5655. ><P
  5656. ><TT
  5657. CLASS="LITERAL"
  5658. >TQMenuItem</TT
  5659. > is an internal TQt class.</P
  5660. ></DIV
  5661. ><DIV
  5662. CLASS="SECT2"
  5663. ><HR><H3
  5664. CLASS="SECT2"
  5665. ><A
  5666. NAME="AEN2049"
  5667. >TQMessageBox</A
  5668. ></H3
  5669. ><P
  5670. ><TT
  5671. CLASS="LITERAL"
  5672. >TQMessageBox</TT
  5673. > is fully implemented.</P
  5674. ></DIV
  5675. ><DIV
  5676. CLASS="SECT2"
  5677. ><HR><H3
  5678. CLASS="SECT2"
  5679. ><A
  5680. NAME="AEN2053"
  5681. >TQMetaObject</A
  5682. ></H3
  5683. ><DIV
  5684. CLASS="FUNCSYNOPSIS"
  5685. ><P
  5686. ></P
  5687. ><A
  5688. NAME="AEN2055"
  5689. ></A
  5690. ><CODE
  5691. CLASS="FUNCDEF"
  5692. >int numClassInfo const</CODE
  5693. >(bool super = FALSE);<P
  5694. ></P
  5695. ></DIV
  5696. ><P
  5697. >Not implemented.</P
  5698. ><DIV
  5699. CLASS="FUNCSYNOPSIS"
  5700. ><P
  5701. ></P
  5702. ><A
  5703. NAME="AEN2061"
  5704. ></A
  5705. ><CODE
  5706. CLASS="FUNCDEF"
  5707. >const TQClassInfo *classInfo const</CODE
  5708. >(bool super = FALSE);<P
  5709. ></P
  5710. ></DIV
  5711. ><P
  5712. >Not implemented.</P
  5713. ></DIV
  5714. ><DIV
  5715. CLASS="SECT2"
  5716. ><HR><H3
  5717. CLASS="SECT2"
  5718. ><A
  5719. NAME="AEN2067"
  5720. >TQMetaProperty</A
  5721. ></H3
  5722. ><P
  5723. ><TT
  5724. CLASS="LITERAL"
  5725. >TQMetaProperty</TT
  5726. > is fully implemented.</P
  5727. ></DIV
  5728. ><DIV
  5729. CLASS="SECT2"
  5730. ><HR><H3
  5731. CLASS="SECT2"
  5732. ><A
  5733. NAME="AEN2071"
  5734. >TQMimeSource (TQt v2+)</A
  5735. ></H3
  5736. ><P
  5737. ><TT
  5738. CLASS="LITERAL"
  5739. >TQMimeSource</TT
  5740. > is fully implemented.</P
  5741. ></DIV
  5742. ><DIV
  5743. CLASS="SECT2"
  5744. ><HR><H3
  5745. CLASS="SECT2"
  5746. ><A
  5747. NAME="AEN2075"
  5748. >TQMimeSourceFactory (TQt v2+)</A
  5749. ></H3
  5750. ><P
  5751. ><TT
  5752. CLASS="LITERAL"
  5753. >TQMimeSourceFactory</TT
  5754. > is fully implemented.</P
  5755. ></DIV
  5756. ><DIV
  5757. CLASS="SECT2"
  5758. ><HR><H3
  5759. CLASS="SECT2"
  5760. ><A
  5761. NAME="AEN2079"
  5762. >TQWindowsMime (TQt v3+)</A
  5763. ></H3
  5764. ><P
  5765. ><TT
  5766. CLASS="LITERAL"
  5767. >TQWindowsMime</TT
  5768. > is fully implemented.</P
  5769. ></DIV
  5770. ><DIV
  5771. CLASS="SECT2"
  5772. ><HR><H3
  5773. CLASS="SECT2"
  5774. ><A
  5775. NAME="AEN2083"
  5776. >TQMotifPlusStyle (TQt v2.2+)</A
  5777. ></H3
  5778. ><DIV
  5779. CLASS="FUNCSYNOPSIS"
  5780. ><P
  5781. ></P
  5782. ><A
  5783. NAME="AEN2085"
  5784. ></A
  5785. ><CODE
  5786. CLASS="FUNCDEF"
  5787. >void getButtonShift</CODE
  5788. >(int &amp;x, int &amp;y);<P
  5789. ></P
  5790. ></DIV
  5791. ><P
  5792. >This takes no parameters and returns a tuple of the <TT
  5793. CLASS="LITERAL"
  5794. >x</TT
  5795. > and
  5796. <TT
  5797. CLASS="LITERAL"
  5798. >y</TT
  5799. > values. (TQt v2)</P
  5800. ><DIV
  5801. CLASS="FUNCSYNOPSIS"
  5802. ><P
  5803. ></P
  5804. ><A
  5805. NAME="AEN2095"
  5806. ></A
  5807. ><CODE
  5808. CLASS="FUNCDEF"
  5809. >void scrollBarMetrics</CODE
  5810. >(const TQScrollBar *sb, int &amp;sliderMin, int &amp;sliderMax, int &amp;sliderLength, int &amp;buttonDim);<P
  5811. ></P
  5812. ></DIV
  5813. ><P
  5814. >This takes only the <TT
  5815. CLASS="LITERAL"
  5816. >sb</TT
  5817. > parameter and returns a tuple of the
  5818. <TT
  5819. CLASS="LITERAL"
  5820. >sliderMin</TT
  5821. >, <TT
  5822. CLASS="LITERAL"
  5823. >sliderMax</TT
  5824. >,
  5825. <TT
  5826. CLASS="LITERAL"
  5827. >sliderLength</TT
  5828. > and <TT
  5829. CLASS="LITERAL"
  5830. >buttonDim</TT
  5831. > values.
  5832. (TQt v2)</P
  5833. ></DIV
  5834. ><DIV
  5835. CLASS="SECT2"
  5836. ><HR><H3
  5837. CLASS="SECT2"
  5838. ><A
  5839. NAME="AEN2114"
  5840. >TQMotifStyle (TQt v2+)</A
  5841. ></H3
  5842. ><DIV
  5843. CLASS="FUNCSYNOPSIS"
  5844. ><P
  5845. ></P
  5846. ><A
  5847. NAME="AEN2116"
  5848. ></A
  5849. ><CODE
  5850. CLASS="FUNCDEF"
  5851. >void scrollBarMetrics</CODE
  5852. >(const TQTabBar *sb, int &#38;sliderMin, int &#38;sliderMax, int &#38;sliderLength, int &#38;buttonDim);<P
  5853. ></P
  5854. ></DIV
  5855. ><P
  5856. >This takes only the <TT
  5857. CLASS="LITERAL"
  5858. >sb</TT
  5859. > parameter and returns a tuple of the
  5860. <TT
  5861. CLASS="LITERAL"
  5862. >sliderMin</TT
  5863. >, <TT
  5864. CLASS="LITERAL"
  5865. >sliderMax</TT
  5866. >,
  5867. <TT
  5868. CLASS="LITERAL"
  5869. >sliderLength</TT
  5870. > and <TT
  5871. CLASS="LITERAL"
  5872. >buttonDim</TT
  5873. > values.
  5874. (TQt v2)</P
  5875. ><DIV
  5876. CLASS="FUNCSYNOPSIS"
  5877. ><P
  5878. ></P
  5879. ><A
  5880. NAME="AEN2135"
  5881. ></A
  5882. ><CODE
  5883. CLASS="FUNCDEF"
  5884. >void tabbarMetrics</CODE
  5885. >(const TQTabBar *t, int &#38;hframe, int &#38;vframe, int &#38;overlap);<P
  5886. ></P
  5887. ></DIV
  5888. ><P
  5889. >This takes only the <TT
  5890. CLASS="LITERAL"
  5891. >t</TT
  5892. > parameter and returns a tuple of the
  5893. <TT
  5894. CLASS="LITERAL"
  5895. >hframe</TT
  5896. >, <TT
  5897. CLASS="LITERAL"
  5898. >vframe</TT
  5899. > and
  5900. <TT
  5901. CLASS="LITERAL"
  5902. >overlap</TT
  5903. > values. (TQt v2)</P
  5904. ></DIV
  5905. ><DIV
  5906. CLASS="SECT2"
  5907. ><HR><H3
  5908. CLASS="SECT2"
  5909. ><A
  5910. NAME="AEN2151"
  5911. >TQMovie</A
  5912. ></H3
  5913. ><DIV
  5914. CLASS="FUNCSYNOPSIS"
  5915. ><P
  5916. ></P
  5917. ><A
  5918. NAME="AEN2153"
  5919. ></A
  5920. ><CODE
  5921. CLASS="FUNCDEF"
  5922. >TQMovie</CODE
  5923. >(TQDataSource *src, int bufsize = 1024);<P
  5924. ></P
  5925. ></DIV
  5926. ><P
  5927. >Not implemented.</P
  5928. ><DIV
  5929. CLASS="FUNCSYNOPSIS"
  5930. ><P
  5931. ></P
  5932. ><A
  5933. NAME="AEN2161"
  5934. ></A
  5935. ><CODE
  5936. CLASS="FUNCDEF"
  5937. >void pushData</CODE
  5938. >(const uchar *data, int length);<P
  5939. ></P
  5940. ></DIV
  5941. ><P
  5942. ><TT
  5943. CLASS="LITERAL"
  5944. >length</TT
  5945. > is derived from <TT
  5946. CLASS="LITERAL"
  5947. >data</TT
  5948. > and not
  5949. passed as a parameter. (TQt v2.2.0+)</P
  5950. ></DIV
  5951. ><DIV
  5952. CLASS="SECT2"
  5953. ><HR><H3
  5954. CLASS="SECT2"
  5955. ><A
  5956. NAME="AEN2171"
  5957. >TQMultiLineEdit</A
  5958. ></H3
  5959. ><DIV
  5960. CLASS="FUNCSYNOPSIS"
  5961. ><P
  5962. ></P
  5963. ><A
  5964. NAME="AEN2173"
  5965. ></A
  5966. ><CODE
  5967. CLASS="FUNCDEF"
  5968. >void cursorPosition const</CODE
  5969. >(int *line, int *col);<P
  5970. ></P
  5971. ></DIV
  5972. ><P
  5973. >This takes no parameters and returns a tuple of the <TT
  5974. CLASS="LITERAL"
  5975. >line</TT
  5976. > and
  5977. <TT
  5978. CLASS="LITERAL"
  5979. >col</TT
  5980. > values. (TQt v1.x, TQt v2.x)</P
  5981. ><DIV
  5982. CLASS="FUNCSYNOPSIS"
  5983. ><P
  5984. ></P
  5985. ><A
  5986. NAME="AEN2183"
  5987. ></A
  5988. ><CODE
  5989. CLASS="FUNCDEF"
  5990. >virtual void del</CODE
  5991. >();<P
  5992. ></P
  5993. ></DIV
  5994. ><P
  5995. >This has been renamed <TT
  5996. CLASS="LITERAL"
  5997. >delChar</TT
  5998. > in Python. (TQt v1.x, TQt v2.x)</P
  5999. ><DIV
  6000. CLASS="FUNCSYNOPSIS"
  6001. ><P
  6002. ></P
  6003. ><A
  6004. NAME="AEN2189"
  6005. ></A
  6006. ><CODE
  6007. CLASS="FUNCDEF"
  6008. >void getCursorPosition const</CODE
  6009. >(int *line, int *col);<P
  6010. ></P
  6011. ></DIV
  6012. ><P
  6013. >This takes no parameters and returns a tuple of the <TT
  6014. CLASS="LITERAL"
  6015. >line</TT
  6016. > and
  6017. <TT
  6018. CLASS="LITERAL"
  6019. >col</TT
  6020. > values. (TQt v1.x, TQt v2.x)</P
  6021. ><DIV
  6022. CLASS="FUNCSYNOPSIS"
  6023. ><P
  6024. ></P
  6025. ><A
  6026. NAME="AEN2199"
  6027. ></A
  6028. ><CODE
  6029. CLASS="FUNCDEF"
  6030. >bool getMarkedRegion</CODE
  6031. >(int *line1, int *col1, int *line2, int *col2);<P
  6032. ></P
  6033. ></DIV
  6034. ><P
  6035. >This takes no parameters and returns a tuple of the bool result and the
  6036. <TT
  6037. CLASS="LITERAL"
  6038. >line1</TT
  6039. >, <TT
  6040. CLASS="LITERAL"
  6041. >col1</TT
  6042. >, <TT
  6043. CLASS="LITERAL"
  6044. >line2</TT
  6045. > and
  6046. <TT
  6047. CLASS="LITERAL"
  6048. >col2</TT
  6049. > values.</P
  6050. ></DIV
  6051. ><DIV
  6052. CLASS="SECT2"
  6053. ><HR><H3
  6054. CLASS="SECT2"
  6055. ><A
  6056. NAME="AEN2215"
  6057. >TQMutex (TQt v2.2+)</A
  6058. ></H3
  6059. ><P
  6060. ><TT
  6061. CLASS="LITERAL"
  6062. >TQMutex</TT
  6063. > is fully implemented.</P
  6064. ></DIV
  6065. ><DIV
  6066. CLASS="SECT2"
  6067. ><HR><H3
  6068. CLASS="SECT2"
  6069. ><A
  6070. NAME="AEN2219"
  6071. >TQMutexLocker (TQt v3.1+)</A
  6072. ></H3
  6073. ><P
  6074. ><TT
  6075. CLASS="LITERAL"
  6076. >TQMutexLocker</TT
  6077. > is fully implemented.</P
  6078. ></DIV
  6079. ><DIV
  6080. CLASS="SECT2"
  6081. ><HR><H3
  6082. CLASS="SECT2"
  6083. ><A
  6084. NAME="AEN2223"
  6085. >TQNetworkOperation (TQt v2.1+)</A
  6086. ></H3
  6087. ><P
  6088. ><TT
  6089. CLASS="LITERAL"
  6090. >TQNetworkOperation</TT
  6091. > is fully implemented.</P
  6092. ></DIV
  6093. ><DIV
  6094. CLASS="SECT2"
  6095. ><HR><H3
  6096. CLASS="SECT2"
  6097. ><A
  6098. NAME="AEN2227"
  6099. >TQNetworkProtocol (TQt v2.1+)</A
  6100. ></H3
  6101. ><P
  6102. ><TT
  6103. CLASS="LITERAL"
  6104. >TQNetworkProtocol</TT
  6105. > is fully implemented.</P
  6106. ></DIV
  6107. ><DIV
  6108. CLASS="SECT2"
  6109. ><HR><H3
  6110. CLASS="SECT2"
  6111. ><A
  6112. NAME="AEN2231"
  6113. >TQNetworkProtocolFactoryBase (TQt v2.1+)</A
  6114. ></H3
  6115. ><P
  6116. ><TT
  6117. CLASS="LITERAL"
  6118. >TQNetworkProtocolFactoryBase</TT
  6119. > is fully implemented.</P
  6120. ></DIV
  6121. ><DIV
  6122. CLASS="SECT2"
  6123. ><HR><H3
  6124. CLASS="SECT2"
  6125. ><A
  6126. NAME="AEN2235"
  6127. >TQObject</A
  6128. ></H3
  6129. ><DIV
  6130. CLASS="FUNCSYNOPSIS"
  6131. ><P
  6132. ></P
  6133. ><A
  6134. NAME="AEN2237"
  6135. ></A
  6136. ><CODE
  6137. CLASS="FUNCDEF"
  6138. >bool disconnect</CODE
  6139. >(const TQObject *receiver, const char *member = 0);<P
  6140. ></P
  6141. ></DIV
  6142. ><P
  6143. >Not yet implemented.</P
  6144. ><DIV
  6145. CLASS="FUNCSYNOPSIS"
  6146. ><P
  6147. ></P
  6148. ><A
  6149. NAME="AEN2245"
  6150. ></A
  6151. ><CODE
  6152. CLASS="FUNCDEF"
  6153. >bool disconnect</CODE
  6154. >(const char *signal = 0, const TQObject *receiver = 0, const char *member = 0);<P
  6155. ></P
  6156. ></DIV
  6157. ><P
  6158. >Not yet implemented.</P
  6159. ><DIV
  6160. CLASS="FUNCSYNOPSIS"
  6161. ><P
  6162. ></P
  6163. ><A
  6164. NAME="AEN2255"
  6165. ></A
  6166. ><CODE
  6167. CLASS="FUNCDEF"
  6168. >static bool disconnect</CODE
  6169. >(const TQObject *sender, const char *signal, const TQObject *receiver, const char *member);<P
  6170. ></P
  6171. ></DIV
  6172. ><P
  6173. >At the moment PyTQt does not support the full behaviour of the corresponding TQt
  6174. method. In particular, specifying None (ie. 0 in C++) for the
  6175. <TT
  6176. CLASS="LITERAL"
  6177. >signal</TT
  6178. > and <TT
  6179. CLASS="LITERAL"
  6180. >receiver</TT
  6181. > parameters is not yet
  6182. supported.</P
  6183. ></DIV
  6184. ><DIV
  6185. CLASS="SECT2"
  6186. ><HR><H3
  6187. CLASS="SECT2"
  6188. ><A
  6189. NAME="AEN2269"
  6190. >TQObjectCleanupHandler (TQt v3+)</A
  6191. ></H3
  6192. ><P
  6193. ><TT
  6194. CLASS="LITERAL"
  6195. >TQObjectCleanupHandler</TT
  6196. > is fully implemented.</P
  6197. ></DIV
  6198. ><DIV
  6199. CLASS="SECT2"
  6200. ><HR><H3
  6201. CLASS="SECT2"
  6202. ><A
  6203. NAME="AEN2273"
  6204. >TQObjectList</A
  6205. ></H3
  6206. ><P
  6207. >This class isn't implemented. Whenever a <TT
  6208. CLASS="LITERAL"
  6209. >TQObjectList</TT
  6210. > is the
  6211. return type of a function or the type of an argument, a Python list of
  6212. <TT
  6213. CLASS="LITERAL"
  6214. >TQObject</TT
  6215. > instances is used instead.</P
  6216. ></DIV
  6217. ><DIV
  6218. CLASS="SECT2"
  6219. ><HR><H3
  6220. CLASS="SECT2"
  6221. ><A
  6222. NAME="AEN2278"
  6223. >TQPaintDeviceMetrics</A
  6224. ></H3
  6225. ><P
  6226. ><TT
  6227. CLASS="LITERAL"
  6228. >TQPaintDeviceMetrics</TT
  6229. > is fully implemented.</P
  6230. ></DIV
  6231. ><DIV
  6232. CLASS="SECT2"
  6233. ><HR><H3
  6234. CLASS="SECT2"
  6235. ><A
  6236. NAME="AEN2282"
  6237. >TQPaintDevice</A
  6238. ></H3
  6239. ><DIV
  6240. CLASS="FUNCSYNOPSIS"
  6241. ><P
  6242. ></P
  6243. ><A
  6244. NAME="AEN2284"
  6245. ></A
  6246. ><CODE
  6247. CLASS="FUNCDEF"
  6248. >virtual bool cmd</CODE
  6249. >(int, TQPainter *, TQPDevCmdParam *);<P
  6250. ></P
  6251. ></DIV
  6252. ><P
  6253. >Not implemented.</P
  6254. ></DIV
  6255. ><DIV
  6256. CLASS="SECT2"
  6257. ><HR><H3
  6258. CLASS="SECT2"
  6259. ><A
  6260. NAME="AEN2291"
  6261. >TQPainter</A
  6262. ></H3
  6263. ><DIV
  6264. CLASS="FUNCSYNOPSIS"
  6265. ><P
  6266. ></P
  6267. ><A
  6268. NAME="AEN2293"
  6269. ></A
  6270. ><CODE
  6271. CLASS="FUNCDEF"
  6272. >TQRect boundingRect</CODE
  6273. >(int x, int y, int w, int h, int flags, const char *str, int len = -1, char **intern = 0);<P
  6274. ></P
  6275. ></DIV
  6276. ><P
  6277. >The <TT
  6278. CLASS="LITERAL"
  6279. >intern</TT
  6280. > parameter is not supported.</P
  6281. ><DIV
  6282. CLASS="FUNCSYNOPSIS"
  6283. ><P
  6284. ></P
  6285. ><A
  6286. NAME="AEN2314"
  6287. ></A
  6288. ><CODE
  6289. CLASS="FUNCDEF"
  6290. >TQRect boundingRect</CODE
  6291. >(const TQRect&#38;, int flags, const char *str, int len = -1, char **intern = 0);<P
  6292. ></P
  6293. ></DIV
  6294. ><P
  6295. >The <TT
  6296. CLASS="LITERAL"
  6297. >intern</TT
  6298. > parameter is not supported.</P
  6299. ><DIV
  6300. CLASS="FUNCSYNOPSIS"
  6301. ><P
  6302. ></P
  6303. ><A
  6304. NAME="AEN2328"
  6305. ></A
  6306. ><CODE
  6307. CLASS="FUNCDEF"
  6308. >void drawText</CODE
  6309. >(int x, int y, int w, int h, int flags, const char *str, int len = -1, TQRect *br = 0, char **intern = 0);<P
  6310. ></P
  6311. ></DIV
  6312. ><P
  6313. >The <TT
  6314. CLASS="LITERAL"
  6315. >intern</TT
  6316. > parameter is not supported.</P
  6317. ><DIV
  6318. CLASS="FUNCSYNOPSIS"
  6319. ><P
  6320. ></P
  6321. ><A
  6322. NAME="AEN2351"
  6323. ></A
  6324. ><CODE
  6325. CLASS="FUNCDEF"
  6326. >void drawText</CODE
  6327. >(const TQRect&#38;, int flags, const char *str, int len = -1, TQRect *br = 0, char **intern = 0);<P
  6328. ></P
  6329. ></DIV
  6330. ><P
  6331. >The <TT
  6332. CLASS="LITERAL"
  6333. >intern</TT
  6334. > parameter is not supported.</P
  6335. ><DIV
  6336. CLASS="FUNCSYNOPSIS"
  6337. ><P
  6338. ></P
  6339. ><A
  6340. NAME="AEN2367"
  6341. ></A
  6342. ><CODE
  6343. CLASS="FUNCDEF"
  6344. >void setTabArray</CODE
  6345. >(int *ta);<P
  6346. ></P
  6347. ></DIV
  6348. ><P
  6349. >This takes a single parameter which is a list of tab stops.</P
  6350. ><DIV
  6351. CLASS="FUNCSYNOPSIS"
  6352. ><P
  6353. ></P
  6354. ><A
  6355. NAME="AEN2373"
  6356. ></A
  6357. ><CODE
  6358. CLASS="FUNCDEF"
  6359. >int *tabArray</CODE
  6360. >();<P
  6361. ></P
  6362. ></DIV
  6363. ><P
  6364. >This returns a list of tab stops.</P
  6365. ></DIV
  6366. ><DIV
  6367. CLASS="SECT2"
  6368. ><HR><H3
  6369. CLASS="SECT2"
  6370. ><A
  6371. NAME="AEN2378"
  6372. >TQPalette</A
  6373. ></H3
  6374. ><P
  6375. ><TT
  6376. CLASS="LITERAL"
  6377. >TQPalette</TT
  6378. > is fully implemented, including the Python
  6379. <TT
  6380. CLASS="LITERAL"
  6381. >==</TT
  6382. > and <TT
  6383. CLASS="LITERAL"
  6384. >!=</TT
  6385. > operators.</P
  6386. ></DIV
  6387. ><DIV
  6388. CLASS="SECT2"
  6389. ><HR><H3
  6390. CLASS="SECT2"
  6391. ><A
  6392. NAME="AEN2384"
  6393. >TQPixmap</A
  6394. ></H3
  6395. ><DIV
  6396. CLASS="FUNCSYNOPSIS"
  6397. ><P
  6398. ></P
  6399. ><A
  6400. NAME="AEN2386"
  6401. ></A
  6402. ><CODE
  6403. CLASS="FUNCDEF"
  6404. >TQPixmap</CODE
  6405. >(const char *xpm[]);<P
  6406. ></P
  6407. ></DIV
  6408. ><P
  6409. >This takes a list of strings as its parameter.</P
  6410. ><DIV
  6411. CLASS="FUNCSYNOPSIS"
  6412. ><P
  6413. ></P
  6414. ><A
  6415. NAME="AEN2392"
  6416. ></A
  6417. ><CODE
  6418. CLASS="FUNCDEF"
  6419. >bool loadFromData</CODE
  6420. >(const uchar *buf, uint len, const char *format = 0, ColorMode mode = Auto);<P
  6421. ></P
  6422. ></DIV
  6423. ><P
  6424. ><TT
  6425. CLASS="LITERAL"
  6426. >len</TT
  6427. > is derived from <TT
  6428. CLASS="LITERAL"
  6429. >buf</TT
  6430. > and not passed as
  6431. a parameter.</P
  6432. ><DIV
  6433. CLASS="FUNCSYNOPSIS"
  6434. ><P
  6435. ></P
  6436. ><A
  6437. NAME="AEN2406"
  6438. ></A
  6439. ><CODE
  6440. CLASS="FUNCDEF"
  6441. >bool loadFromData</CODE
  6442. >(const uchar *buf, uint len, const char *format, int conversion_flags);<P
  6443. ></P
  6444. ></DIV
  6445. ><P
  6446. >Not implemented.</P
  6447. ></DIV
  6448. ><DIV
  6449. CLASS="SECT2"
  6450. ><HR><H3
  6451. CLASS="SECT2"
  6452. ><A
  6453. NAME="AEN2418"
  6454. >TQPixmapCache (TQt v3+)</A
  6455. ></H3
  6456. ><P
  6457. ><TT
  6458. CLASS="LITERAL"
  6459. >TQPixmapCache</TT
  6460. > is fully implemented.</P
  6461. ></DIV
  6462. ><DIV
  6463. CLASS="SECT2"
  6464. ><HR><H3
  6465. CLASS="SECT2"
  6466. ><A
  6467. NAME="AEN2422"
  6468. >TQPair&lt;type,type&gt; (TQt v3+)</A
  6469. ></H3
  6470. ><P
  6471. >Types based on the <TT
  6472. CLASS="LITERAL"
  6473. >TQPair</TT
  6474. > template are automatically
  6475. converted to and from Python tuples of two elements.</P
  6476. ></DIV
  6477. ><DIV
  6478. CLASS="SECT2"
  6479. ><HR><H3
  6480. CLASS="SECT2"
  6481. ><A
  6482. NAME="AEN2426"
  6483. >TQPen</A
  6484. ></H3
  6485. ><P
  6486. ><TT
  6487. CLASS="LITERAL"
  6488. >TQPen</TT
  6489. > is fully implemented, including the Python
  6490. <TT
  6491. CLASS="LITERAL"
  6492. >==</TT
  6493. > and <TT
  6494. CLASS="LITERAL"
  6495. >!=</TT
  6496. > operators.</P
  6497. ></DIV
  6498. ><DIV
  6499. CLASS="SECT2"
  6500. ><HR><H3
  6501. CLASS="SECT2"
  6502. ><A
  6503. NAME="AEN2432"
  6504. >TQPicture</A
  6505. ></H3
  6506. ><DIV
  6507. CLASS="FUNCSYNOPSIS"
  6508. ><P
  6509. ></P
  6510. ><A
  6511. NAME="AEN2434"
  6512. ></A
  6513. ><CODE
  6514. CLASS="FUNCDEF"
  6515. >const char *data</CODE
  6516. >();<P
  6517. ></P
  6518. ></DIV
  6519. ><P
  6520. >Not implemented.</P
  6521. ><DIV
  6522. CLASS="FUNCSYNOPSIS"
  6523. ><P
  6524. ></P
  6525. ><A
  6526. NAME="AEN2439"
  6527. ></A
  6528. ><CODE
  6529. CLASS="FUNCDEF"
  6530. >void setData</CODE
  6531. >(const char *data, uint size);<P
  6532. ></P
  6533. ></DIV
  6534. ><P
  6535. ><TT
  6536. CLASS="LITERAL"
  6537. >size</TT
  6538. > is derived from <TT
  6539. CLASS="LITERAL"
  6540. >data</TT
  6541. > and not passed
  6542. as a parameter.</P
  6543. ></DIV
  6544. ><DIV
  6545. CLASS="SECT2"
  6546. ><HR><H3
  6547. CLASS="SECT2"
  6548. ><A
  6549. NAME="AEN2449"
  6550. >TQPlatinumStyle (TQt v2+)</A
  6551. ></H3
  6552. ><DIV
  6553. CLASS="FUNCSYNOPSIS"
  6554. ><P
  6555. ></P
  6556. ><A
  6557. NAME="AEN2451"
  6558. ></A
  6559. ><CODE
  6560. CLASS="FUNCDEF"
  6561. >void scrollBarMetrics</CODE
  6562. >(const TQTabBar *sb, int &#38;sliderMin, int &#38;sliderMax, int &#38;sliderLength, int &#38;buttonDim);<P
  6563. ></P
  6564. ></DIV
  6565. ><P
  6566. >This takes only the <TT
  6567. CLASS="LITERAL"
  6568. >sb</TT
  6569. > parameter and returns a tuple of the
  6570. <TT
  6571. CLASS="LITERAL"
  6572. >sliderMin</TT
  6573. >, <TT
  6574. CLASS="LITERAL"
  6575. >sliderMax</TT
  6576. >,
  6577. <TT
  6578. CLASS="LITERAL"
  6579. >sliderLength</TT
  6580. > and <TT
  6581. CLASS="LITERAL"
  6582. >buttonDim</TT
  6583. > values.
  6584. (TQt v2)</P
  6585. ></DIV
  6586. ><DIV
  6587. CLASS="SECT2"
  6588. ><HR><H3
  6589. CLASS="SECT2"
  6590. ><A
  6591. NAME="AEN2470"
  6592. >TQPoint</A
  6593. ></H3
  6594. ><P
  6595. >The Python
  6596. <TT
  6597. CLASS="LITERAL"
  6598. >+</TT
  6599. >, <TT
  6600. CLASS="LITERAL"
  6601. >+=</TT
  6602. >,
  6603. <TT
  6604. CLASS="LITERAL"
  6605. >-</TT
  6606. >, <TT
  6607. CLASS="LITERAL"
  6608. >-=</TT
  6609. >, unary <TT
  6610. CLASS="LITERAL"
  6611. >-</TT
  6612. >,
  6613. <TT
  6614. CLASS="LITERAL"
  6615. >*</TT
  6616. >, <TT
  6617. CLASS="LITERAL"
  6618. >*=</TT
  6619. >,
  6620. <TT
  6621. CLASS="LITERAL"
  6622. >/</TT
  6623. >, <TT
  6624. CLASS="LITERAL"
  6625. >/=</TT
  6626. >,
  6627. <TT
  6628. CLASS="LITERAL"
  6629. >==</TT
  6630. >, <TT
  6631. CLASS="LITERAL"
  6632. >!=</TT
  6633. > and <TT
  6634. CLASS="LITERAL"
  6635. >__nonzero__</TT
  6636. >
  6637. operators are supported.</P
  6638. ><DIV
  6639. CLASS="FUNCSYNOPSIS"
  6640. ><P
  6641. ></P
  6642. ><A
  6643. NAME="AEN2485"
  6644. ></A
  6645. ><CODE
  6646. CLASS="FUNCDEF"
  6647. >TQCOORD &amp;rx</CODE
  6648. >();<P
  6649. ></P
  6650. ></DIV
  6651. ><P
  6652. >Not implemented.</P
  6653. ><DIV
  6654. CLASS="FUNCSYNOPSIS"
  6655. ><P
  6656. ></P
  6657. ><A
  6658. NAME="AEN2490"
  6659. ></A
  6660. ><CODE
  6661. CLASS="FUNCDEF"
  6662. >TQCOORD &amp;ry</CODE
  6663. >();<P
  6664. ></P
  6665. ></DIV
  6666. ><P
  6667. >Not implemented.</P
  6668. ></DIV
  6669. ><DIV
  6670. CLASS="SECT2"
  6671. ><HR><H3
  6672. CLASS="SECT2"
  6673. ><A
  6674. NAME="AEN2495"
  6675. >TQPointArray</A
  6676. ></H3
  6677. ><DIV
  6678. CLASS="FUNCSYNOPSIS"
  6679. ><P
  6680. ></P
  6681. ><A
  6682. NAME="AEN2497"
  6683. ></A
  6684. ><CODE
  6685. CLASS="FUNCDEF"
  6686. >TQPointArray</CODE
  6687. >(int nPoints, const TQCOORD *points);<P
  6688. ></P
  6689. ></DIV
  6690. ><P
  6691. >This takes a single parameter which is a list of points.</P
  6692. ><DIV
  6693. CLASS="FUNCSYNOPSIS"
  6694. ><P
  6695. ></P
  6696. ><A
  6697. NAME="AEN2505"
  6698. ></A
  6699. ><CODE
  6700. CLASS="FUNCDEF"
  6701. >void point</CODE
  6702. >(uint i, int *x, int *y);<P
  6703. ></P
  6704. ></DIV
  6705. ><P
  6706. >This takes the single parameter <TT
  6707. CLASS="LITERAL"
  6708. >i</TT
  6709. > and returns the
  6710. <TT
  6711. CLASS="LITERAL"
  6712. >x</TT
  6713. > and <TT
  6714. CLASS="LITERAL"
  6715. >y</TT
  6716. > values as a tuple.</P
  6717. ><DIV
  6718. CLASS="FUNCSYNOPSIS"
  6719. ><P
  6720. ></P
  6721. ><A
  6722. NAME="AEN2518"
  6723. ></A
  6724. ><CODE
  6725. CLASS="FUNCDEF"
  6726. >bool putPoints</CODE
  6727. >(int index, int nPoints, const TQCOORD *points);<P
  6728. ></P
  6729. ></DIV
  6730. ><P
  6731. >This takes two parameters, <TT
  6732. CLASS="LITERAL"
  6733. >index</TT
  6734. > and a list of points.</P
  6735. ><DIV
  6736. CLASS="FUNCSYNOPSIS"
  6737. ><P
  6738. ></P
  6739. ><A
  6740. NAME="AEN2529"
  6741. ></A
  6742. ><CODE
  6743. CLASS="FUNCDEF"
  6744. >bool putPoints</CODE
  6745. >(int index, int nPoints, int firstx, int firsty, ...);<P
  6746. ></P
  6747. ></DIV
  6748. ><P
  6749. >Not implemented.</P
  6750. ><DIV
  6751. CLASS="FUNCSYNOPSIS"
  6752. ><P
  6753. ></P
  6754. ><A
  6755. NAME="AEN2542"
  6756. ></A
  6757. ><CODE
  6758. CLASS="FUNCDEF"
  6759. >bool setPoints</CODE
  6760. >(int nPoints, const TQCOORD *points);<P
  6761. ></P
  6762. ></DIV
  6763. ><P
  6764. >This takes a single parameter which is a list of points.</P
  6765. ><DIV
  6766. CLASS="FUNCSYNOPSIS"
  6767. ><P
  6768. ></P
  6769. ><A
  6770. NAME="AEN2550"
  6771. ></A
  6772. ><CODE
  6773. CLASS="FUNCDEF"
  6774. >bool setPoints</CODE
  6775. >(int nPoints, int firstx, int firsty, ...);<P
  6776. ></P
  6777. ></DIV
  6778. ><P
  6779. >Not implemented.</P
  6780. ></DIV
  6781. ><DIV
  6782. CLASS="SECT2"
  6783. ><HR><H3
  6784. CLASS="SECT2"
  6785. ><A
  6786. NAME="AEN2561"
  6787. >TQPopupMenu</A
  6788. ></H3
  6789. ><DIV
  6790. CLASS="FUNCSYNOPSIS"
  6791. ><P
  6792. ></P
  6793. ><A
  6794. NAME="AEN2563"
  6795. ></A
  6796. ><CODE
  6797. CLASS="FUNCDEF"
  6798. >int exec</CODE
  6799. >();<P
  6800. ></P
  6801. ></DIV
  6802. ><P
  6803. >This has been renamed <TT
  6804. CLASS="LITERAL"
  6805. >exec_loop</TT
  6806. > in Python.</P
  6807. ><DIV
  6808. CLASS="FUNCSYNOPSIS"
  6809. ><P
  6810. ></P
  6811. ><A
  6812. NAME="AEN2569"
  6813. ></A
  6814. ><CODE
  6815. CLASS="FUNCDEF"
  6816. >int exec</CODE
  6817. >(const TQPoint &#38;pos, int indexAtPoint = 0);<P
  6818. ></P
  6819. ></DIV
  6820. ><P
  6821. >This has been renamed <TT
  6822. CLASS="LITERAL"
  6823. >exec_loop</TT
  6824. > in Python.</P
  6825. ></DIV
  6826. ><DIV
  6827. CLASS="SECT2"
  6828. ><HR><H3
  6829. CLASS="SECT2"
  6830. ><A
  6831. NAME="AEN2578"
  6832. >TQPrintDialog (X11)</A
  6833. ></H3
  6834. ><P
  6835. ><TT
  6836. CLASS="LITERAL"
  6837. >TQPrintDialog</TT
  6838. > is fully implemented.</P
  6839. ></DIV
  6840. ><DIV
  6841. CLASS="SECT2"
  6842. ><HR><H3
  6843. CLASS="SECT2"
  6844. ><A
  6845. NAME="AEN2582"
  6846. >TQPrinter</A
  6847. ></H3
  6848. ><P
  6849. ><TT
  6850. CLASS="LITERAL"
  6851. >TQPrinter</TT
  6852. > is fully implemented.</P
  6853. ></DIV
  6854. ><DIV
  6855. CLASS="SECT2"
  6856. ><HR><H3
  6857. CLASS="SECT2"
  6858. ><A
  6859. NAME="AEN2586"
  6860. >TQProcess (TQt v3+)</A
  6861. ></H3
  6862. ><P
  6863. ><TT
  6864. CLASS="LITERAL"
  6865. >TQProcess</TT
  6866. > is fully implemented.</P
  6867. ></DIV
  6868. ><DIV
  6869. CLASS="SECT2"
  6870. ><HR><H3
  6871. CLASS="SECT2"
  6872. ><A
  6873. NAME="AEN2590"
  6874. >TQProgressBar</A
  6875. ></H3
  6876. ><P
  6877. ><TT
  6878. CLASS="LITERAL"
  6879. >TQProgressBar</TT
  6880. > is fully implemented.</P
  6881. ></DIV
  6882. ><DIV
  6883. CLASS="SECT2"
  6884. ><HR><H3
  6885. CLASS="SECT2"
  6886. ><A
  6887. NAME="AEN2594"
  6888. >TQProgressDialog</A
  6889. ></H3
  6890. ><P
  6891. ><TT
  6892. CLASS="LITERAL"
  6893. >TQProgressDialog</TT
  6894. > is fully implemented.
  6895. value.</P
  6896. ></DIV
  6897. ><DIV
  6898. CLASS="SECT2"
  6899. ><HR><H3
  6900. CLASS="SECT2"
  6901. ><A
  6902. NAME="AEN2598"
  6903. >TQPtrList&lt;type&gt; (TQt v3+)</A
  6904. ></H3
  6905. ><P
  6906. >Types based on the <TT
  6907. CLASS="LITERAL"
  6908. >TQPtrList</TT
  6909. > template are automatically
  6910. converted to and from Python lists of the type.</P
  6911. ></DIV
  6912. ><DIV
  6913. CLASS="SECT2"
  6914. ><HR><H3
  6915. CLASS="SECT2"
  6916. ><A
  6917. NAME="AEN2602"
  6918. >TQPushButton</A
  6919. ></H3
  6920. ><P
  6921. ><TT
  6922. CLASS="LITERAL"
  6923. >TQPushButton</TT
  6924. > is fully implemented.</P
  6925. ></DIV
  6926. ><DIV
  6927. CLASS="SECT2"
  6928. ><HR><H3
  6929. CLASS="SECT2"
  6930. ><A
  6931. NAME="AEN2606"
  6932. >TQRadioButton</A
  6933. ></H3
  6934. ><P
  6935. ><TT
  6936. CLASS="LITERAL"
  6937. >TQRadioButton</TT
  6938. > is fully implemented.</P
  6939. ></DIV
  6940. ><DIV
  6941. CLASS="SECT2"
  6942. ><HR><H3
  6943. CLASS="SECT2"
  6944. ><A
  6945. NAME="AEN2610"
  6946. >TQRangeControl</A
  6947. ></H3
  6948. ><P
  6949. ><TT
  6950. CLASS="LITERAL"
  6951. >TQRangeControl</TT
  6952. > is fully implemented.</P
  6953. ></DIV
  6954. ><DIV
  6955. CLASS="SECT2"
  6956. ><HR><H3
  6957. CLASS="SECT2"
  6958. ><A
  6959. NAME="AEN2614"
  6960. >TQRect</A
  6961. ></H3
  6962. ><P
  6963. >The Python
  6964. <TT
  6965. CLASS="LITERAL"
  6966. >&amp;</TT
  6967. >, <TT
  6968. CLASS="LITERAL"
  6969. >&amp;=</TT
  6970. >,
  6971. <TT
  6972. CLASS="LITERAL"
  6973. >|</TT
  6974. >, <TT
  6975. CLASS="LITERAL"
  6976. >|=</TT
  6977. >,
  6978. <TT
  6979. CLASS="LITERAL"
  6980. >==</TT
  6981. >, <TT
  6982. CLASS="LITERAL"
  6983. >!=</TT
  6984. >, <TT
  6985. CLASS="LITERAL"
  6986. >in</TT
  6987. > and
  6988. <TT
  6989. CLASS="LITERAL"
  6990. >__nonzero__</TT
  6991. > operators are supported.</P
  6992. ><DIV
  6993. CLASS="FUNCSYNOPSIS"
  6994. ><P
  6995. ></P
  6996. ><A
  6997. NAME="AEN2625"
  6998. ></A
  6999. ><CODE
  7000. CLASS="FUNCDEF"
  7001. >void coords</CODE
  7002. >(int *x1, int *y1, int *x2, int *y2);<P
  7003. ></P
  7004. ></DIV
  7005. ><P
  7006. >This takes no parameters and returns a tuple containing the four values.</P
  7007. ><DIV
  7008. CLASS="FUNCSYNOPSIS"
  7009. ><P
  7010. ></P
  7011. ><A
  7012. NAME="AEN2637"
  7013. ></A
  7014. ><CODE
  7015. CLASS="FUNCDEF"
  7016. >void rect</CODE
  7017. >(int *x, int *y, int *w, int *h);<P
  7018. ></P
  7019. ></DIV
  7020. ><P
  7021. >This takes no parameters and returns a tuple containing the four values.</P
  7022. ><DIV
  7023. CLASS="FUNCSYNOPSIS"
  7024. ><P
  7025. ></P
  7026. ><A
  7027. NAME="AEN2649"
  7028. ></A
  7029. ><CODE
  7030. CLASS="FUNCDEF"
  7031. >TQCOORD &amp;rBottom</CODE
  7032. >();<P
  7033. ></P
  7034. ></DIV
  7035. ><P
  7036. >Not implemented. (TQt v2+)</P
  7037. ><DIV
  7038. CLASS="FUNCSYNOPSIS"
  7039. ><P
  7040. ></P
  7041. ><A
  7042. NAME="AEN2654"
  7043. ></A
  7044. ><CODE
  7045. CLASS="FUNCDEF"
  7046. >TQCOORD &amp;rLeft</CODE
  7047. >();<P
  7048. ></P
  7049. ></DIV
  7050. ><P
  7051. >Not implemented. (TQt v2+)</P
  7052. ><DIV
  7053. CLASS="FUNCSYNOPSIS"
  7054. ><P
  7055. ></P
  7056. ><A
  7057. NAME="AEN2659"
  7058. ></A
  7059. ><CODE
  7060. CLASS="FUNCDEF"
  7061. >TQCOORD &amp;rRight</CODE
  7062. >();<P
  7063. ></P
  7064. ></DIV
  7065. ><P
  7066. >Not implemented. (TQt v2+)</P
  7067. ><DIV
  7068. CLASS="FUNCSYNOPSIS"
  7069. ><P
  7070. ></P
  7071. ><A
  7072. NAME="AEN2664"
  7073. ></A
  7074. ><CODE
  7075. CLASS="FUNCDEF"
  7076. >TQCOORD &amp;rTop</CODE
  7077. >();<P
  7078. ></P
  7079. ></DIV
  7080. ><P
  7081. >Not implemented. (TQt v2+)</P
  7082. ></DIV
  7083. ><DIV
  7084. CLASS="SECT2"
  7085. ><HR><H3
  7086. CLASS="SECT2"
  7087. ><A
  7088. NAME="AEN2669"
  7089. >TQRegExp</A
  7090. ></H3
  7091. ><P
  7092. >The Python <TT
  7093. CLASS="LITERAL"
  7094. >==</TT
  7095. > and <TT
  7096. CLASS="LITERAL"
  7097. >!=</TT
  7098. > operators are
  7099. supported.</P
  7100. ><DIV
  7101. CLASS="FUNCSYNOPSIS"
  7102. ><P
  7103. ></P
  7104. ><A
  7105. NAME="AEN2674"
  7106. ></A
  7107. ><CODE
  7108. CLASS="FUNCDEF"
  7109. >int match</CODE
  7110. >(const char *str, int index = 0, int *len = 0);<P
  7111. ></P
  7112. ></DIV
  7113. ><P
  7114. >This takes <TT
  7115. CLASS="LITERAL"
  7116. >str</TT
  7117. > and <TT
  7118. CLASS="LITERAL"
  7119. >index</TT
  7120. > parameters and
  7121. returns a tuple of the <TT
  7122. CLASS="LITERAL"
  7123. >int</TT
  7124. > result and the
  7125. <TT
  7126. CLASS="LITERAL"
  7127. >len</TT
  7128. > value. (TQt v1.x)</P
  7129. ><DIV
  7130. CLASS="FUNCSYNOPSIS"
  7131. ><P
  7132. ></P
  7133. ><A
  7134. NAME="AEN2688"
  7135. ></A
  7136. ><CODE
  7137. CLASS="FUNCDEF"
  7138. >int match</CODE
  7139. >(const TQString &#38;str, int index = 0, int *len = 0);<P
  7140. ></P
  7141. ></DIV
  7142. ><P
  7143. >This takes <TT
  7144. CLASS="LITERAL"
  7145. >str</TT
  7146. > and <TT
  7147. CLASS="LITERAL"
  7148. >index</TT
  7149. > parameters and
  7150. returns a tuple of the <TT
  7151. CLASS="LITERAL"
  7152. >int</TT
  7153. > result and the
  7154. <TT
  7155. CLASS="LITERAL"
  7156. >len</TT
  7157. > value. (TQt v2+)</P
  7158. ></DIV
  7159. ><DIV
  7160. CLASS="SECT2"
  7161. ><HR><H3
  7162. CLASS="SECT2"
  7163. ><A
  7164. NAME="AEN2702"
  7165. >TQRegion</A
  7166. ></H3
  7167. ><P
  7168. >The Python
  7169. <TT
  7170. CLASS="LITERAL"
  7171. >|</TT
  7172. >, <TT
  7173. CLASS="LITERAL"
  7174. >|=</TT
  7175. >,
  7176. <TT
  7177. CLASS="LITERAL"
  7178. >+</TT
  7179. >, <TT
  7180. CLASS="LITERAL"
  7181. >+=</TT
  7182. >,
  7183. <TT
  7184. CLASS="LITERAL"
  7185. >&amp;</TT
  7186. >, <TT
  7187. CLASS="LITERAL"
  7188. >&amp;=</TT
  7189. >,
  7190. <TT
  7191. CLASS="LITERAL"
  7192. >-</TT
  7193. >, <TT
  7194. CLASS="LITERAL"
  7195. >-=</TT
  7196. >,
  7197. <TT
  7198. CLASS="LITERAL"
  7199. >^</TT
  7200. >, <TT
  7201. CLASS="LITERAL"
  7202. >^=</TT
  7203. >,
  7204. <TT
  7205. CLASS="LITERAL"
  7206. >==</TT
  7207. >, <TT
  7208. CLASS="LITERAL"
  7209. >!=</TT
  7210. >, <TT
  7211. CLASS="LITERAL"
  7212. >in</TT
  7213. > and
  7214. <TT
  7215. CLASS="LITERAL"
  7216. >__nonzero__</TT
  7217. > operators are supported.</P
  7218. ><DIV
  7219. CLASS="FUNCSYNOPSIS"
  7220. ><P
  7221. ></P
  7222. ><A
  7223. NAME="AEN2719"
  7224. ></A
  7225. ><CODE
  7226. CLASS="FUNCDEF"
  7227. >TQArray&lt;TQRect&gt; rects</CODE
  7228. >();<P
  7229. ></P
  7230. ></DIV
  7231. ><P
  7232. >Not implemented.</P
  7233. ><DIV
  7234. CLASS="FUNCSYNOPSIS"
  7235. ><P
  7236. ></P
  7237. ><A
  7238. NAME="AEN2724"
  7239. ></A
  7240. ><CODE
  7241. CLASS="FUNCDEF"
  7242. >void setRects</CODE
  7243. >(TQRect *rects, int num);<P
  7244. ></P
  7245. ></DIV
  7246. ><P
  7247. >Not yet implemented. (TQt v2.2+)</P
  7248. ></DIV
  7249. ><DIV
  7250. CLASS="SECT2"
  7251. ><HR><H3
  7252. CLASS="SECT2"
  7253. ><A
  7254. NAME="AEN2732"
  7255. >TQScrollBar</A
  7256. ></H3
  7257. ><P
  7258. ><TT
  7259. CLASS="LITERAL"
  7260. >TQScrollBar</TT
  7261. > is fully implemented.</P
  7262. ></DIV
  7263. ><DIV
  7264. CLASS="SECT2"
  7265. ><HR><H3
  7266. CLASS="SECT2"
  7267. ><A
  7268. NAME="AEN2736"
  7269. >TQScrollView</A
  7270. ></H3
  7271. ><DIV
  7272. CLASS="FUNCSYNOPSIS"
  7273. ><P
  7274. ></P
  7275. ><A
  7276. NAME="AEN2738"
  7277. ></A
  7278. ><CODE
  7279. CLASS="FUNCDEF"
  7280. >void contentsToViewport</CODE
  7281. >(int x, int y, int &#38;vx, int &#38;vy);<P
  7282. ></P
  7283. ></DIV
  7284. ><P
  7285. >This takes the <TT
  7286. CLASS="LITERAL"
  7287. >x</TT
  7288. > and <TT
  7289. CLASS="LITERAL"
  7290. >y</TT
  7291. > parameters and
  7292. returns a tuple containing the <TT
  7293. CLASS="LITERAL"
  7294. >vx</TT
  7295. > and <TT
  7296. CLASS="LITERAL"
  7297. >vy</TT
  7298. >
  7299. values. (TQt v2+)</P
  7300. ><DIV
  7301. CLASS="FUNCSYNOPSIS"
  7302. ><P
  7303. ></P
  7304. ><A
  7305. NAME="AEN2754"
  7306. ></A
  7307. ><CODE
  7308. CLASS="FUNCDEF"
  7309. >void viewportToContents</CODE
  7310. >(int vx, int vy, int &#38;x, int &#38;y);<P
  7311. ></P
  7312. ></DIV
  7313. ><P
  7314. >This takes the <TT
  7315. CLASS="LITERAL"
  7316. >vx</TT
  7317. > and <TT
  7318. CLASS="LITERAL"
  7319. >vy</TT
  7320. > parameters and
  7321. returns a tuple containing the <TT
  7322. CLASS="LITERAL"
  7323. >x</TT
  7324. > and <TT
  7325. CLASS="LITERAL"
  7326. >y</TT
  7327. >
  7328. values. (TQt v2+)</P
  7329. ></DIV
  7330. ><DIV
  7331. CLASS="SECT2"
  7332. ><HR><H3
  7333. CLASS="SECT2"
  7334. ><A
  7335. NAME="AEN2770"
  7336. >TQSemaphore (TQt v2.2+)</A
  7337. ></H3
  7338. ><P
  7339. ><TT
  7340. CLASS="LITERAL"
  7341. >TQSemaphore</TT
  7342. > is fully implemented. The <TT
  7343. CLASS="LITERAL"
  7344. >+=</TT
  7345. >
  7346. and <TT
  7347. CLASS="LITERAL"
  7348. >-=</TT
  7349. > operators have also been implemented, but require
  7350. Python v2.0 or later.</P
  7351. ></DIV
  7352. ><DIV
  7353. CLASS="SECT2"
  7354. ><HR><H3
  7355. CLASS="SECT2"
  7356. ><A
  7357. NAME="AEN2776"
  7358. >TQSemiModal (TQt v1, v2)</A
  7359. ></H3
  7360. ><P
  7361. ><TT
  7362. CLASS="LITERAL"
  7363. >TQSemiModal</TT
  7364. > is fully implemented.</P
  7365. ></DIV
  7366. ><DIV
  7367. CLASS="SECT2"
  7368. ><HR><H3
  7369. CLASS="SECT2"
  7370. ><A
  7371. NAME="AEN2780"
  7372. >TQSessionManager (TQt v2+)</A
  7373. ></H3
  7374. ><P
  7375. ><TT
  7376. CLASS="LITERAL"
  7377. >TQSessionManager</TT
  7378. > is fully implemented.</P
  7379. ></DIV
  7380. ><DIV
  7381. CLASS="SECT2"
  7382. ><HR><H3
  7383. CLASS="SECT2"
  7384. ><A
  7385. NAME="AEN2784"
  7386. >TQSettings (TQt v3+)</A
  7387. ></H3
  7388. ><DIV
  7389. CLASS="FUNCSYNOPSIS"
  7390. ><P
  7391. ></P
  7392. ><A
  7393. NAME="AEN2786"
  7394. ></A
  7395. ><CODE
  7396. CLASS="FUNCDEF"
  7397. >bool readBoolEntry</CODE
  7398. >(const TQString &amp;key, bool def = 0, bool *ok = 0);<P
  7399. ></P
  7400. ></DIV
  7401. ><P
  7402. >The <TT
  7403. CLASS="LITERAL"
  7404. >ok</TT
  7405. > is not passed and the returned value is a tuple of
  7406. the <TT
  7407. CLASS="LITERAL"
  7408. >bool</TT
  7409. > result and the <TT
  7410. CLASS="LITERAL"
  7411. >ok</TT
  7412. > flag.</P
  7413. ><DIV
  7414. CLASS="FUNCSYNOPSIS"
  7415. ><P
  7416. ></P
  7417. ><A
  7418. NAME="AEN2799"
  7419. ></A
  7420. ><CODE
  7421. CLASS="FUNCDEF"
  7422. >double readDoubleEntry</CODE
  7423. >(const TQString &amp;key, double def = 0, bool *ok = 0);<P
  7424. ></P
  7425. ></DIV
  7426. ><P
  7427. >The <TT
  7428. CLASS="LITERAL"
  7429. >ok</TT
  7430. > is not passed and the returned value is a tuple of
  7431. the <TT
  7432. CLASS="LITERAL"
  7433. >double</TT
  7434. > result and the <TT
  7435. CLASS="LITERAL"
  7436. >ok</TT
  7437. > flag.</P
  7438. ><DIV
  7439. CLASS="FUNCSYNOPSIS"
  7440. ><P
  7441. ></P
  7442. ><A
  7443. NAME="AEN2812"
  7444. ></A
  7445. ><CODE
  7446. CLASS="FUNCDEF"
  7447. >TQString readEntry</CODE
  7448. >(const TQString &amp;key, const TQString &amp;def = TQString::null, bool *ok = 0);<P
  7449. ></P
  7450. ></DIV
  7451. ><P