亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? designer-manual-8.html

?? QT 下載資料僅供參考
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/reggie/tmp/qt-3.0-reggie-5401/qt-x11-commercial-3.0.5/tools/designer/book/chap-customizing.leaf:3 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Customizing and Integrating Qt Designer</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr bgcolor="#E5E5E5"><td valign=center> <a href="index.html"><font color="#004faf">Home</font></a> | <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a> | <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a> | <a href="annotated.html"><font color="#004faf">Annotated</font></a> | <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a> | <a href="functions.html"><font color="#004faf">Functions</font></a></td><td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><p align="right">[<a href="designer-manual-7.html">Prev: Creating Database Applications</a>] [<a href="designer-manual.html">Home</a>] [<a href="designer-manual-9.html">Next: Reference: Key Bindings</a>]</p><h2 align="center">Customizing and Integrating Qt Designer</h2><h3><a name="1"></a>Customizing Qt Designer</h3><p><em>Qt Designer</em> can be customized in two ways: you can add custom widgets, and you can change aspects of how <em>Qt Designer</em> works. Custom widgets are covered in <a href="designer-manual-6.html">Creating Custom Widgets</a>. This section will focus on customizing <em>Qt Designer</em> itself.</p><p><em>Qt Designer</em>'s toolbars are all dockable so they can be dragged by their toolbar handles and arranged how you like. The Files, Object Hierarchy, Property Editor and Output Windows are also dockable so you can also drag them to the positions that you prefer. You can also make them into floating windows by dragging them outside <em>Qt Designer</em>'s dock areas.</p><p>General preferences can be set by clicking <b>Edit|Preferences</b> to invoke the <em>Preferences</em> dialog. If you check the 'Restore Last Workspace on Startup' checkbox then <em>Qt Designer</em> will remember the sizes and positions of the toolbars and the dockable windows. You can change <em>Qt Designer</em>'s main window background either by selecting a color or a pixmap. You can also switch off the grid (uncheck Show Grid) since using layouts makes the grid redundant.</p><!-- index Plugins --><!-- index Code Editing!Preferences --><!-- index Preferences!Code Editing --><p>The <em>Preferences</em> dialog may have additional tabs, depending on what plugins you have installed. We'll describe the C++ Editor tab since this is installed by default.</p><p>The C++ Editor tab is used to set your preferred fonts for syntax highlighting in <em>Qt Designer</em>'s code editor. The base font for all elements is set in the 'Standard' element which is the last item in the list. If you want one font to be used throughout then set the 'Standard' font and all the other elements will inherit its setting.</p><h4><a name="1-1"></a>Qt Designer's Code Editor</h4><p>The code editor is available if an Editor plugin is installed. The C++ Editor plugin is installed by default.</p><!-- index Keypresses (Qt Designer's code editor) --><p>The code editor provides the following keystrokes:</p><ul><li><p>Left Arrow -- Moves the cursor one character left</p><li><p>Right Arrow -- Moves the cursor one character right</p><li><p>Up Arrow -- Moves the cursor one line up</p><li><p>Down Arrow -- Moves the cursor one line down</p><li><p>Page Up -- Moves the cursor one page up</p><li><p>Page Down -- Moves the cursor one page down</p><li><p>Backspace -- Deletes the character to the left of the cursor</p><li><p>Home -- Moves the cursor to the beginning of the line</p><li><p>End -- Moves the cursor to the end of the line</p><li><p>Delete -- Deletes the character to the right of the cursor</p><li><p>Ctrl+A -- Moves the cursor to the beginning of the line</p><li><p>Ctrl+B -- Moves the cursor one character left</p><li><p>Ctrl+C -- Copies the selected text to the clipboard (also Ctrl+Insert under Windows)</p><li><p>Ctrl+D -- Deletes the character to the right of the cursor</p><li><p>Ctrl+E -- Moves the cursor to the end of the line</p><li><p>Ctrl+F -- Invokes the <em>Find Text</em> dialog</p><li><p>Ctrl+G -- Invokes the <em>Goto Line</em> dialog</p><li><p>Ctrl+H -- Deletes the character to the left of the cursor</p><li><p>Ctrl+I -- Indent the line or selected text that contains the cursor</p><li><p>Alt+I -- Starts incremental search (see below)</p><li><p>Ctrl+K -- Deletes from the cursor position to the end of the line</p><li><p>Ctrl+N -- Moves the cursor one line down</p><li><p>Ctrl+P -- Moves the cursor one line up</p><li><p>Ctrl+R -- Invokes the <em>Replace Text</em> dialog</p><li><p>Ctrl+V -- Pastes the clipboard text into line edit (also Shift+Insert under Windows)</p><li><p>Ctrl+X -- Cuts the marked text, copy to clipboard (also Shift+Delete under Windows)</p><li><p>Ctrl+Y -- Redoes the last operation</p><li><p>Ctrl+Z -- Undoes the last operation</p><li><p>Ctrl+Left Arrow -- Moves the cursor one word left</p><li><p>Ctrl+Right Arrow -- Moves the cursor one word right</p><li><p>Ctrl+Up Arrow -- Moves the cursor one word up</p><li><p>Ctrl+Down Arrow -- Moves the cursor one word down</p><li><p>Ctrl+Home Arrow -- Moves the cursor to the beginning of the text</p><li><p>Ctrl+End Arrow -- Moves the cursor to the end of the text</p><li><p>Tab -- Completion (see below)</p></ul><p>To select (mark) text hold down the Shift key whilst pressing one of the movement keystrokes, for example, <b>Shift+Right Arrow</b> will select the character to the right, and <b>Shift+Ctrl+Right Arrow</b> will select the word to the right, etc.</p><p>Pressing <b>Alt+I</b> starts incremental search. The characters you type will appear in the Incremental Search line edit in the Search toolbar and the cursor will be moved to the first matching text in the editor. As you type the search will continue. Press <b>Return</b> to move to the next match and press <b>Esc</b> to cancel the search at the position you've reached.</p><p>Pressing <b>Tab</b> after you've typed one or more characters invokes completion. Completion works like this: start typing some text then press <b>Tab</b>. If the editor can find another item of text that begins with the same characters it will complete your text for you; if it finds more than one possibility it will pop up a list of choices. You can use the arrow keys to choose a piece of text then press <b>Return</b>, or press <b>Esc</b> to continue typing. You can switch off completion in the <em>Preferences</em> dialog.</p><p>When you enter <tt>-&gt;</tt> or <tt>.</tt> the editor will pop up a command completion list; use the arrow keys to move to the item you want and press <b>Return</b>, or press <b>Esc</b> to ignore the list.</p><h3><a name="2"></a>Creating and Using Templates</h3><!-- index Creating Templates --><!-- index Templates!Creating and Using --><p><em>Qt Designer</em> supports two approaches to creating template forms. The simplest approach involves little more than saving a<!-- index .ui --> <tt>.ui</tt> file into the templates directory. The second approach involves creating a container widget class to be used as a base class for forms that use the template. We will explain both techniques.</p><h4><a name="2-1"></a>Simple Templates</h4><p>These templates are most useful when you want to create a whole set of forms which all have some common widgets. For example, you might have a project that will require many forms, all of which need to be branded with a company name and logo.</p><p>First we'll create the simple template.</p><ol type=1><li><p>Click <b>File|New</b> to invoke the <em>New File</em> dialog. Click the Dialog template then click <b>OK</b>.</p><li><p>Click the <b>Text Label</b> toolbar button, then click near the top left of the form. Change the font Point Size property to 16 and change the <em>text</em> property to your or your company's name. Click the <b>Line</b> toolbar button, then click the form below the label; click Horizontal on the pop-up menu.</p><li><p>Select the label and the line. (<b>Ctrl+Click</b> the form, then drag the rubber band so that it touches or includes the line and the label.) Press <b>Ctrl+L</b> to lay them out vertically.</p><li><p>Click the <b>Save</b> toolbar button. In the <em>Save As</em> dialog, navigate to <em>Qt Designer</em>'s templates directory, e.g. (<tt>qt/tools/designer/templates</tt>. Type in the name 'Simple_Dialog.ui' and click <b>Save</b>.</p><li><p>Right click the form in the Forms list, then click Remove form from project.</p></ol><p>Now that we have the simple template we are ready to use it. Click <b>File|New</b> to invoke the <em>New File</em> dialog. One of the templates that will appear is 'Simple Dialog'. Click the simple dialog, then click <b>OK</b>. A new form will appear with the same widgets and layout as the template. Add any other widgets and functionality. When you attempt to save the form you will be prompted for a new form name.</p><h4><a name="2-2"></a>Base-class Templates</h4><!-- index Templates!Base Class Templates --><p>These templates are useful when you want to provide some default functionality that all the forms based on the base class can inherit. In our example we'll use a class called <b>SizeAware</b> that remembers and restores its size as the basis of a template. We won't describe the class itself, but will focus instead on making use of it as a <em>Qt Designer</em> template. The source for the class is in <tt>qt/tools/designer/examples/sizeaware</tt>.</p><p>The template can either be based on a custom widget or on any existing container widget.</p><p>If you want to base the template on a custom widget you must first add it to <em>Qt Designer</em>'s custom widgets. Click <b>Tools|Custom|Edit Custom Widgets</b> to invoke the <em>Edit Custom Widgets</em> dialog. (This dialog is explained in more detail in <a href="designer-manual-6.html#1">Simple Custom Widgets</a>.) Click <b>New Widget</b>. Change the Class from 'MyCustomWidget' to 'SizeAware'. Click the Headerfile ellipsis button and select the file <tt>qt/tools/designer/examples/sizeaware/sizeaware.h</tt>. Check the Container Widget checkbox. This class provides two properties. Click the Properties tab. Click <b>New Property</b> and change the property name to 'company'. Click the <b>New Property</b> again and change the property name to 'settingsFile'. Click <b>Close</b>.</p><p>To create a template, based on an existing widget or on your own custom widget, click <b>File|Create Template</b> to invoke the <em>Create Template</em> dialog. Change the Template Name to 'SizeAware' and click the SizeAware base class, then click <b>Create</b>. The dialog will create the template and close itself immediately. Close <em>Qt Designer</em> and restart it.</p><p>A new template, 'SizeAware' is now available from the list of templates. Click <b>File|New</b>, click SizeAware and click <b>OK</b>. Note that the two properties, company and settingsFile, are available in the Properties window. Any forms based on this template will remember their size and resize when reloaded. (In practical applications having one settingsFile per form is not recommended, so this template would only really be useful for applications that have a single main window.)</p><h3><a name="3"></a>Integrating Qt Designer with Visual Studio</h3><p><em>Qt Designer</em> can be integrated into Visual Studio using the<!-- index qmsdev.dsp --> <tt>qmsdev.dsp</tt> file that is supplied with Qt.</p><!-- index Visual Studio --><p>Start up Visual Studio and click <b>File|Open Workspace</b>. Open <tt>%QTDIR%</tt>\tools\designer\integration\qmsdev\qmsdev.dsp. Click <b>Build|Set Active Configuration</b> and in the list click 'QMsDev - Win32 Release', then click <b>OK</b>. Now click <b>Build|Build qmsdev.dll</b>. You should now copy the file <tt>%QTDIR%</tt>\tools\designer\integration\qmsdev\Release\qmsdev.dll into <tt>Microsoft Visual Studio\Common\MSDev98\AddIns</tt>. Now click <b>Tools|Customize</b>. Click the Add-in Macro Files tab, then click the <b>Browse</b> button. Change the file type to 'Add-ins (.dll)' and navigate to <tt>Microsoft Visual Studio\Common\MSDev98\AddIns</tt>. Click the<!-- index qmsdev.dll --> <tt>qmsdev.dll</tt> file, click <b>Open</b>, then click <b>Close</b>.</p><p>A new toolbar will appear in Visual Studio with the following toolbar buttons:</p><ul><li><p>New Qt Project -- A small application wizard</p><li><p>Generate Qt Project -- Runs <tt>qmake</tt> (or the functionally equivalent <tt>tmake</tt>) with a<!-- index .pro --> <tt>.pro</tt> file</p><li><p>New Qt Dialog -- Add an empty Qt Dialog to the active project</p><li><p>Qt GUI Designer -- Run <em>Qt Designer</em></p><li><p>Use Qt -- Add the Qt libraries to the active project</p><li><p>Add MOC -- Add the <tt>moc</tt> precompiler to the active file</p><li><p>Add UIC -- Add the <tt>uic</tt> precompiler to the active file</p></ul><p>Double clicking a<!-- index .ui --> <tt>.ui</tt> file in the workspace overview will now launch <em>Qt Designer</em>.</p><!-- index Macros!Q_OBJECT --><!-- index Q_OBJECT --><p>If you create a<!-- index .cpp --> <tt>.cpp</tt> file which contains the <tt>Q_OBJECT</tt> macro you will need an additional file which is generated by the <tt>moc</tt> to be included in your project. For example, if you have 'file.cpp', then the last line would be <tt>#include "file.moc"</tt> and the additional file would be called 'file.moc'. To ensure that Visual Studio executes the <tt>moc</tt> and generates this file you must create a custom dependency. Double click the<!-- index .cpp --> <tt>.cpp</tt> file (in your project workspace) that contains the <tt>Q_OBJECT</tt> macro. Click the <b>Add MOC</b> toolbar button; this will create an empty<!-- index .moc --> <tt>.moc</tt> file in your project workspace. Right click the newly created<!-- index .moc --> <tt>.moc</tt> file, then click <b>Settings</b> from the pop-up menu to invoke the Project Settings dialog. Click the Custom Build tab. Click the <b>Dependencies</b> button to pop up the User Defined Dependencies dialog. Type in <tt>$(InputDir)\$(InputPath)</tt>, then press <b>Return</b>. Click <b>OK</b> to leave the Dependencies dialog, then click <b>OK</b> to leave the Project Settings dialog.</p><p>If you wish to delete the add-in remove it from the toolbar then delete the<!-- index qmsdev.dll --> <tt>qmsdev.dll</tt> file from the add-ins directory.</p>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本aⅴ免费视频一区二区三区| 喷白浆一区二区| 北条麻妃国产九九精品视频| 久久欧美中文字幕| 国产精品99久久久久久似苏梦涵| 日韩女优毛片在线| 久久精品国内一区二区三区| 欧美日韩国产电影| 亚洲成人av中文| 欧美精品视频www在线观看| 午夜av电影一区| 欧美一级在线视频| 精品一区二区综合| 久久久久久免费| 成人丝袜视频网| **性色生活片久久毛片| 91美女片黄在线观看91美女| 亚洲美女偷拍久久| 欧美四级电影网| 日韩电影网1区2区| 欧美大黄免费观看| 狠狠色狠狠色综合日日91app| 久久久久久久久久久99999| 国产成人综合在线| 国产精品久久久久久久浪潮网站| 92国产精品观看| 一区二区三区成人在线视频| 欧美丰满美乳xxx高潮www| 蜜桃91丨九色丨蝌蚪91桃色| 久久久无码精品亚洲日韩按摩| 丁香激情综合五月| 亚洲精品久久7777| 在线观看91精品国产麻豆| 久久99在线观看| 中文字幕精品综合| 欧美亚洲自拍偷拍| 免费看日韩a级影片| 国产日韩av一区| 91精品福利视频| 色悠悠久久综合| 性做久久久久久免费观看| 精品国产自在久精品国产| 国产suv一区二区三区88区| 亚洲精品中文在线影院| 91精品国产综合久久精品麻豆| 国模冰冰炮一区二区| 国产精品久久久久久亚洲伦| 欧美裸体一区二区三区| 六月丁香婷婷色狠狠久久| 国产精品国产馆在线真实露脸 | 国产美女娇喘av呻吟久久| 国产网站一区二区| 日本福利一区二区| 久久99精品久久久久久久久久久久| 中文字幕精品三区| 欧美日韩日日骚| 国产v日产∨综合v精品视频| 亚洲午夜久久久久久久久电影网| 精品国产一二三| 色94色欧美sute亚洲线路二| 久久精品国产亚洲5555| 亚洲天堂av一区| 欧美一区二区成人| 91丨porny丨国产入口| 日本三级亚洲精品| 亚洲日本韩国一区| 精品久久国产字幕高潮| 色综合天天天天做夜夜夜夜做| 麻豆精品国产91久久久久久| 亚洲欧美日韩国产手机在线| 精品美女一区二区三区| 91九色02白丝porn| 国产91丝袜在线播放0| 天天色综合成人网| 国产精品二三区| 精品久久一二三区| 欧美视频三区在线播放| 成人三级在线视频| 久久国产日韩欧美精品| 亚洲精品v日韩精品| 久久久久九九视频| 欧美一二三四在线| 色老汉av一区二区三区| 国产乱子伦一区二区三区国色天香| 一区二区三区四区中文字幕| 久久精品人人爽人人爽| 精品视频免费看| 99在线精品观看| 久久91精品国产91久久小草| 亚洲成年人网站在线观看| 亚洲欧洲日韩在线| 久久精品网站免费观看| 欧美一区二区久久| 欧美色图激情小说| 99精品视频在线播放观看| 国产一区二区视频在线| 日本欧美在线观看| 亚洲成人中文在线| 亚洲欧美日本韩国| 美腿丝袜亚洲一区| 香蕉影视欧美成人| 亚洲你懂的在线视频| 亚洲国产精品高清| 久久久精品综合| 精品不卡在线视频| 51午夜精品国产| 欧美日韩精品欧美日韩精品一综合| av中文字幕不卡| 成人爽a毛片一区二区免费| 精品一区二区三区免费观看| 日韩av中文字幕一区二区| 亚洲午夜私人影院| 亚洲精品免费播放| 亚洲区小说区图片区qvod| 国产精品久久久久久一区二区三区 | 玉足女爽爽91| 综合亚洲深深色噜噜狠狠网站| 中文文精品字幕一区二区| 26uuu成人网一区二区三区| 日韩一区二区三区电影在线观看| 欧美日韩aaa| 在线不卡a资源高清| 69精品人人人人| 8x福利精品第一导航| 欧美另类高清zo欧美| 欧美片在线播放| 欧美精品在线观看一区二区| 欧美日韩一区精品| 欧美日韩精品是欧美日韩精品| 欧美日韩午夜影院| 欧美情侣在线播放| 欧美一区二区三区公司| 日韩片之四级片| 日韩午夜激情视频| 精品少妇一区二区三区视频免付费 | 欧美日韩高清在线播放| 欧美酷刑日本凌虐凌虐| 欧美狂野另类xxxxoooo| 欧美一区二区久久| 日韩精品一区二区在线观看| 久久综合一区二区| 欧美激情综合五月色丁香 | 国产欧美综合色| 国产精品日产欧美久久久久| 自拍偷拍国产精品| 亚洲午夜一二三区视频| 日韩精彩视频在线观看| 玖玖九九国产精品| 国产盗摄精品一区二区三区在线| www.66久久| 欧美色视频一区| 欧美成人伊人久久综合网| 久久久不卡网国产精品二区| 国产精品国产a| 亚洲国产精品天堂| 久久超级碰视频| 成人小视频免费观看| 色婷婷av久久久久久久| 制服丝袜国产精品| 国产色产综合产在线视频| 亚洲美女少妇撒尿| 青青草国产成人av片免费| 国产成人精品影视| 欧美亚洲自拍偷拍| 日韩欧美一二三| 中文字幕免费不卡| 亚洲国产成人av好男人在线观看| 美国三级日本三级久久99| 丁香婷婷深情五月亚洲| 色嗨嗨av一区二区三区| 日韩欧美色电影| 国产精品人妖ts系列视频| 午夜成人在线视频| 国产高清不卡二三区| 色88888久久久久久影院野外| 91精品一区二区三区久久久久久| 国产亚洲欧洲997久久综合| 亚洲精品成人在线| 经典三级视频一区| 91浏览器在线视频| 日韩女优视频免费观看| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 中文字幕精品一区二区精品绿巨人| 一区二区三区欧美日| 国产一区欧美日韩| 欧美视频一区在线观看| 久久久久久**毛片大全| 亚洲成人av在线电影| 成人网男人的天堂| 91精品国产综合久久婷婷香蕉 | 成人国产免费视频| 91精品国产一区二区| 国产精品夫妻自拍| 久久精品国产99久久6| 色婷婷精品大视频在线蜜桃视频| 日韩精品一区国产麻豆| 亚洲一区在线视频| 丰满放荡岳乱妇91ww| 69堂国产成人免费视频| 亚洲图片欧美激情|