返回介绍

Qt Assistant in More Detail

发布于 2019-10-04 14:57:36 字数 6097 浏览 1113 评论 0 收藏 0

The Sidebar

The sidebar provides three ways of navigating documentation:

  1. The Contents tab presents a tree view of the documentation sets that are available. If you click an item, its documentation will appear in the documentation window. If you double click an item or click a '+' sign to the left of an item, the item's sub-items will appear. Click a sub-item to make its page appear in the documentation window. Click a '-' sign to the left of an item to hide its sub-items.

  2. The Index tab is used to look up key words or phrases. See The 1 Minute Guide to using Qt Assistant for how to use this tab.

  3. The Bookmarks tab lists any bookmarks you've made. Double click a bookmark to make its page appear in the documentation window. The Bookmarks tab has a New Bookmark button and a Delete Bookmark button at the bottom. Click New Bookmark to bookmark the page that is showing in the documentation window. Click a bookmark in the list, then click Delete Bookmark to delete the highlighted bookmark.

If you want the documentation window to use as much space as possible, you can easily hide or show the Sidebar. If the Sidebar is showing, press Ctrl+T, Ctrl+I or Ctrl+B to hide it. If the Sidebar is hidden, press Ctrl+T to show it on the Contents tab, or press Ctrl+I to show it on the Index tab (with the focus in the 'Look For' line edit box), or press Ctrl+B to show it on the Bookmarks tab.

The Sidebar is a dock window, so you can drag it to the top, left, right or bottom of Qt Assistant's window, or you can drag it outside Qt Assistant to float it.

The Toolbar

The toolbar provides fast access to the most common actions.

  • Previous takes you to the previous page. The menu option is Go|Previous and the keyboard shortcut is Alt+Left Arrow.

  • Next takes you to the next page. The menu option is Go|Next and the keyboard shortcut is Alt+Right Arrow.

  • Home takes you to the home page (normally the home page of the Qt Reference Documentation). The menu option is Go|Home and the keyboard shortcut is Ctrl+Home.

  • Copy copies any selected text to the clipboard. The menu option is Edit|Copy and the keyboard shortcut is Ctrl+C.

  • Find in Text invokes the Find Text dialog. The menu option is Edit|Find in Text and the keyboard shortcut is Ctrl+F.

  • Print invokes the Print dialog. The menu option is File|Print and the keyboard shortcut is Ctrl+P.

  • Zoom in increases the font size. The menu option is View|Zoom in and the keyboard shortcut is Ctrl++.

  • Zoom out decreases the font size. The menu option is View|Zoom out and the keyboard shortcut is Ctrl+-.

The remaining toolbar buttons are bookmarks and will vary depending on your configuration.

The Menus

The File Menu

  • File|Print invokes the Print dialog.

  • File|Exit terminates Qt Assistant.

The Edit Menu

  • Edit|Copy copies any selected text to the clipboard.

  • Edit|Find in Text invokes the Find Text dialog.

  • Edit|Settings invokes the Settings dialog.

The View Menu

  • View|Zoom in increases the font size.

  • View|Zoom out decreases the font size.

  • View|Views|Sidebar toggles the display of the Sidebar.

  • View|Views|Toolbar toggles the display of the Toolbar.

  • View|Views|Line up lines up the toolbar buttons in the Toolbar.

The Go Menu

  • Go|Previous display the previous page.

  • Go|Next display the next page.

  • Go|home go to the home page.

This menu also has additional items; these are pre-defined bookmarks that vary depending on your configuration.

The Bookmarks Menu

  • Bookmarks|Add add the current page to the list of bookmarks.

This menu may have additional items, i.e. any bookmarks that you have already made. If you want to delete a bookmark go to the Bookmarks tab on the Sidebar.

The Dialogs

The Print Dialog

This dialog is platform-specific. It gives access to various printer options and can be used to print the current page.

The Find Text Dialog

This dialog is used to find text in the current page. Enter the text you want to find in the Find line edit. If you check the 'Whole words only' checkbox, the search will only consider whole words, i.e. if you search for 'spin' with this checkbox checked it will not match 'spinbox', but will match 'spin'. If you check the 'Case sensitive' check box then, for example, 'spin' will match 'spin' but not 'Spin'. You can search Forward or Backward from your current position in the page by clicking one of the Direction radio buttons. Click the Find button to search (or search again), and click the Close button to finish.

The Settings Dialog

This dialog is used to set your preferences for Qt Assistant. You can change the base font used throughout by choosing a new font from the Font combobox. You can choose a new fixed-width font, e.g. used to show code snippets, by choosing a new font from the 'Fixed font' combobox. You can change the color of hypertext links by clicking the 'Link color' color button. Uncheck the 'Underline links' checkbox if you don't want underlined links. Click OK to confirm your changes or click Cancel to keep the previous settings.

Qt Assistant will remember your settings between sessions, including window sizes and positions, and which page(s) you have open.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文