📄 book1.htm
字号:
><DT><AHREF="c7878.htm#AEN7882">Types of gui customization</A></DT><DT><AHREF="x7898.htm">Faking it with bitmaps</A></DT><DT><AHREF="x7947.htm">Creating themes with QStyle</A></DT></DL></DD><DT>23. <AHREF="c8016.htm">Drag and drop</A></DT><DD><DL><DT><AHREF="c8016.htm#AEN8026">Handling drops</A></DT><DT><AHREF="x8073.htm">Initiating drags</A></DT><DT><AHREF="x8095.htm">Conclusion</A></DT></DL></DD><DT>24. <AHREF="c8100.htm">Printing</A></DT><DD><DL><DT><AHREF="c8100.htm#AEN8115">The <TTCLASS="CLASSNAME">QPrinter</TT> class</A></DT><DT><AHREF="x8141.htm">Adding printing to Kalam</A></DT><DT><AHREF="x8148.htm">Putting ink to paper</A></DT><DT><AHREF="x8207.htm">Conclusion</A></DT></DL></DD><DT>25. <AHREF="c8212.htm">Internationalizing an Application</A></DT><DD><DL><DT><AHREF="c8212.htm#AEN8238">Translating screen texts</A></DT></DL></DD><DT>26. <AHREF="c8349.htm">Delivering your Application</A></DT><DD><DL><DT><AHREF="c8349.htm#AEN8351">Introduction</A></DT><DT><AHREF="x8401.htm">Packaging source</A></DT><DT><AHREF="x8418.htm">Starting with distutils.</A></DT><DT><AHREF="x8580.htm">Creating Unix RPM packages</A></DT><DT><AHREF="x8613.htm">Windows installers</A></DT><DT><AHREF="x8628.htm">Desktop integration</A></DT></DL></DD><DT>27. <AHREF="c8636.htm">Envoi</A></DT></DL></DD><DT>IV. <AHREF="p8645.htm">Appendices</A></DT><DD><DL><DT>A. <AHREF="a8647.htm">Reading the Qt Documentation</A></DT><DT>B. <AHREF="a8743.htm">PyQwt: Python Bindings for Qwt</A></DT><DD><DL><DT><AHREF="a8743.htm#SECTNUMPY">NumPy</A></DT><DT><AHREF="x8818.htm">PyQwt</A></DT></DL></DD><DT>C. <AHREF="a8834.htm">First Steps with Sip</A></DT><DD><DL><DT><AHREF="a8834.htm#AEN8842">Introduction</A></DT><DT><AHREF="x8867.htm">How sip works</A></DT><DT><AHREF="x8887.htm">Creating .sip files</A></DT><DT><AHREF="x8949.htm">Things <BCLASS="COMMAND">sip</B> can't do automatically</A></DT><DT><AHREF="x9012.htm">Where to look to start writing your own wrappers/bindings</A></DT><DT><AHREF="x9022.htm">Sip usage and syntax</A></DT><DT><AHREF="x9236.htm">Directives</A></DT><DT><AHREF="x9571.htm">Accepted C++ / Qt constructs</A></DT><DT><AHREF="x9684.htm">SIPLIB Functions</A></DT></DL></DD></DL></DD><DT><AHREF="b10472.htm">Bibliography</A></DT><DT><AHREF="i10749.htm">Index</A></DT></DL></DIV><DIVCLASS="LOT"><DLCLASS="LOT"><DT><B>List of Tables</B></DT><DT>1-1. <AHREF="x179.htm#AEN187">GUI Toolkits for Python</A></DT><DT>7-1. <AHREF="x1408.htm#AEN1559">Matrix of <TTCLASS="CLASSNAME">QObject</TT>.<TTCLASS="FUNCTION">connect()</TT> combinations.</A></DT><DT>10-1. <AHREF="x3738.htm#AEN3789">Qt and Python high-level datastructures</A></DT><DT>10-2. <AHREF="x3738.htm#AEN4039">Qt and Python network classes</A></DT><DT>C-1. <AHREF="x8887.htm#AEN8899">C++ access specifiers and sip</A></DT><DT>C-2. <AHREF="x9022.htm#AEN9053">Command line options</A></DT><DT>C-3. <AHREF="x9022.htm#AEN9208">Macros in Makefile Templates</A></DT><DT>C-4. <AHREF="x9571.htm#AEN9608">Flags in member function declaration</A></DT><DT>C-1. <AHREF="r9791.htm#AEN9816">Error flags in sipParseArgs()</A></DT><DT>C-2. <AHREF="r9791.htm#AEN9848">Format specifiers for sipParseArgs()</A></DT></DL></DIV><DIVCLASS="LOT"><DLCLASS="LOT"><DT><B>List of Figures</B></DT><DT>10-1. <AHREF="c2591.htm#AEN2605">Qt Inheritance Hierarchy (only the most important classes)</A></DT><DT>10-2. <AHREF="c2591.htm#AEN2626">Object Ownership Hierarchy</A></DT><DT>20-1. <AHREF="c6996.htm#AEN7095">Playing with <TTCLASS="FUNCTION">eval()</TT></A></DT><DT>20-2. <AHREF="c6996.htm#AEN7121">Playing with <TTCLASS="FUNCTION">exec</TT></A></DT><DT>20-3. <AHREF="c6996.htm#AEN7149">Playing with <TTCLASS="FUNCTION">execfile()</TT></A></DT></DL></DIV><DIVCLASS="LOT"><DLCLASS="LOT"><DT><B>List of Examples</B></DT><DT>1-1. <AHREF="c88.htm#AEN143">Bootstrapping a Python application</A></DT><DT>6-1. <AHREF="x1067.htm#AEN1087">hello1.py — hello world</A></DT><DT>6-2. <AHREF="x1149.htm#AEN1152">hello2.py — a better hello world</A></DT><DT>6-3. <AHREF="x1149.htm#AEN1185">fragment from hello3.py</A></DT><DT>6-4. <AHREF="x1149.htm#AEN1197">Fragment from hello5.py</A></DT><DT>6-5. <AHREF="x1149.htm#AEN1203">Fragment from hello4.py</A></DT><DT>6-6. <AHREF="x1214.htm#AEN1239">frmconnect.py</A></DT><DT>6-7. <AHREF="x1214.htm#AEN1248">dlgconnect.py — the subclass of the generated form</A></DT><DT>7-1. <AHREF="c1267.htm#AEN1280">A stupid button which is not reusable</A></DT><DT>7-2. <AHREF="c1267.htm#AEN1290">A simple callback system</A></DT><DT>7-3. <AHREF="c1267.htm#AEN1326">A central registry of connected widgets</A></DT><DT>7-4. <AHREF="x1408.htm#AEN1467">Connecting a signal to a slot</A></DT><DT>7-5. <AHREF="x1408.htm#CH6-EXAMPLE-QDIAL">Connection a dial to a label with signals and slots</A></DT><DT>7-6. <AHREF="x1408.htm#AEN1535">Python signals and slots</A></DT><DT>7-7. <AHREF="x1408.htm#AEN1544">Python signals and slots with arguments</A></DT><DT>7-8. <AHREF="x1631.htm#AEN1665">datasource.py — connecting and disconnecting signals and slots</A></DT><DT>7-9. <AHREF="x1807.htm#AEN1825">An XML parser with signals and slots</A></DT><DT>8-1. <AHREF="x2068.htm#AEN2084">qstring1.py — conversion from <TTCLASS="CLASSNAME">QString</TT> to a Python string.</A></DT><DT>8-2. <AHREF="x2068.htm#AEN2099">qstring2.py - second try of saving a <TTCLASS="CLASSNAME">QString</TT> to a file</A></DT><DT>8-3. <AHREF="x2104.htm#AEN2120">empty.py - feeding zero bytes to a QCString</A></DT><DT>8-4. <AHREF="x2104.htm#AEN2158">null.py - empty and null QCStrings and Python strings</A></DT><DT>8-5. <AHREF="x2104.htm#AEN2170">emptyqstring.py - feeding zero bytes to a QString</A></DT><DT>8-6. <AHREF="x2183.htm#AEN2256">Loading an utf-8 encoded text</A></DT><DT>8-7. <AHREF="x2183.htm#AEN2272">Building a string from single Unicode characters</A></DT><DT>8-8. <AHREF="x2183.htm#AEN2301">sitecustomize.py — saving a useful function from wanton destruction</A></DT><DT>8-9. <AHREF="x2183.htm#AEN2308">uniqstring3.py - messing with Unicode strings using utf-8 as default encoding</A></DT><DT>8-10. <AHREF="x2183.htm#AEN2330">uniqstring1.py - coercing Python strings into and from QStrings</A></DT><DT>8-11. <AHREF="x2183.htm#AEN2338">uniqstring2.py - coercing Python strings into and from QStrings</A></DT><DT>9-1. <AHREF="c2341.htm#AEN2367">refs.py - showing object references</A></DT><DT>9-2. <AHREF="x2377.htm#AEN2382">circular.py - circululululular references</A></DT><DT>9-3. <AHREF="x2420.htm#AEN2429">qtrefs1.py — about Qt reference counting</A></DT><DT>9-4. <AHREF="x2420.htm#AEN2441">qtrefs2.py - keeping a Qt widget alive</A></DT><DT>9-5. <AHREF="x2420.htm#AEN2449">qtrefs3.py - Qt parents and children</A></DT><DT>9-6. <AHREF="x2420.htm#AEN2477">Eradicating a widget</A></DT><DT>9-7. <AHREF="x2420.htm#CH3EXAMPLECHILDREN">children.py - getting the children from a single parent</A></DT><DT>9-8. <AHREF="x2420.htm#AEN2498">Iterating over children</A></DT><DT>9-9. <AHREF="x2549.htm#AEN2556">sigslot.py - a simple signals/slots implementation in Python, following the Observer pattern</A></DT><DT>9-10. <AHREF="x2568.htm#AEN2581">Object introspection using Qt</A></DT><DT>9-11. <AHREF="x2568.htm#AEN2585">Object introspection using Python</A></DT><DT>10-1. <AHREF="x2629.htm#AEN2679">event1.py - handling mouse events in PyQt</A></DT><DT>10-2. <AHREF="x2693.htm#AEN2723">action.py - Using a QAction to group data associated with user commands</A></DT><DT>10-3. <AHREF="x2693.htm#AEN2756">fragment from mdi.py - ten little scribbling windows</A></DT><DT>10-4. <AHREF="x2765.htm#AEN2778">event2.py - using QWidget to create a custom, double-buffered drawing widget.</A></DT><DT>10-5. <AHREF="x2765.htm#AEN2820">snippet from event3.py - a peach puff drawing board</A></DT><DT>10-6. <AHREF="x2765.htm#AEN2908">fragment from action2.py - You cannot create a QPixmap before a QApplication</A></DT><DT>10-7. <AHREF="x2976.htm#AEN3057">buttons.py - Four pushbuttons saying ‘hello'.</A></DT><DT>10-8. <AHREF="x2976.htm#AEN3077">label.py - a label associated with an edit control</A></DT><DT>10-9. <AHREF="x2976.htm#CH2EXAMPLERADIOBUTTONS">radio.py - a group of mutually exclusive options</A></DT><DT>10-10. <AHREF="x2976.htm#AEN3160">listbox.py - A listbox where data can be associated with an entry</A></DT><DT>10-11. <AHREF="x3270.htm#AEN3321">tree.py - building a tree</A></DT><DT>10-12. <AHREF="x3410.htm#CH2EXAMPLELAYOUT">layout.py - two box layouts and adding and removing buttons dynamically to a layout</A></DT><DT>10-13. <AHREF="x3410.htm#AEN3578">geometry.py - setting the initial size of an application</A></DT><DT>10-14. <AHREF="x3581.htm#AEN3605">dialogs.py - opening message and default dialogs boxes</A></DT><DT>10-15. <AHREF="x3581.htm#AEN3661">fragment from dialogs.py - opening a file dialog</A></DT><DT>10-16. <AHREF="x3581.htm#AEN3683">fragment from dialogs.py - opening a font dialog</A></DT><DT>10-17. <AHREF="x3581.htm#AEN3706">fragment from dialogs.py - opening a color dialog</A></DT><DT>10-18. <AHREF="x3738.htm#AEN3754">from dv_qt.py - using Qt utility classes</A></DT><DT>10-19. <AHREF="x3738.htm#AEN3757">fragment from db_python.py - using Python utility classes</A></DT><DT>10-20. <AHREF="x3738.htm#AEN3961">Using QMimeSourceFactory (application.py)</A></DT><DT>10-21. <AHREF="x3738.htm#AEN4002">thread1.py — Python threads without gui</A></DT><DT>10-22. <AHREF="x3738.htm#AEN4008">Python threads and a PyQt gui window</A></DT><DT>11-1. <AHREF="x4274.htm#AEN4551">dlgcomplex.py — a subclass of frmcomplex.py</A></DT><DT>11-2. <AHREF="x4274.htm#AEN4596">Setting default values</A></DT><DT>12-1. <AHREF="c4631.htm#AEN4672">A simple document-view framework</A></DT><DT>12-2. <AHREF="x4760.htm#AEN4767">Scripting an application is easy</A></DT><DT>13-1. <AHREF="c4807.htm#AEN4870">Defining a complex toggle action</A></DT><DT>15-1. <AHREF="x5339.htm#AEN5356">A testcase for a document manager</A></DT><DT>15-2. <AHREF="x5388.htm#AEN5392">The document manager class</A></DT><DT>15-3. <AHREF="x5451.htm#AEN5455">The document class</A></DT><DT>15-4. <AHREF="x5458.htm#AEN5466">The view class</A></DT><DT>15-5. <AHREF="x5469.htm#AEN5477">The application class</A></DT><DT>21-1. <AHREF="c7391.htm#AEN7480">typometer.py - A silly type-o-meter that keeps a running count of how many characters are added to a certain document and shows a chart of the typerate...</A></DT><DT>21-2. <AHREF="x7601.htm#AEN7689">charmap.py - a Unicode character selection widget</A></DT><DT>22-1. <AHREF="x7898.htm#AEN7924">remote.py - remote control application</A></DT><DT>22-2. <AHREF="x7898.htm#AEN7931">view.py - the main view of the remote control application</A></DT><DT>22-3. <AHREF="x7898.htm#AEN7940">button.py - the class that implements the pixmapped buttons</A></DT><DT>22-4. <AHREF="x7947.htm#AEN7998">A Qt 2 custom style - a minimalist implementation of the classic Mac style in PyQt.</A></DT><DT>22-5. <AHREF="x7947.htm#AEN8007">Testing styles</A></DT><DT>23-1. <AHREF="c8016.htm#AEN8046">Handling drop events</A></DT><DT>23-2. <AHREF="x8073.htm#AEN8092">Drag and drop</A></DT><DT>25-1. <AHREF="c8212.htm#AEN8337">Installing the translator</A></DT><DT>26-1. <AHREF="x8401.htm#AEN8412">README</A></DT><DT>26-2. <AHREF="x8418.htm#AEN8442">setup.py - a sample setup script</A></DT><DT>26-3. <AHREF="x8418.htm#AEN8505">MANIFEST.in</A></DT><DT>C-1. <AHREF="r9791.htm#AEN9929">Interface for QRegExp::match</A></DT></DL></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"> </TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"> </TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="f26.htm"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"> </TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"> </TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Preface</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -