在本页

PdfStyle QML Type

PDF 浏览器组件的样式界面。更多

Import Statement: import QtQuick.Pdf
Inherits:

QtObject

属性

详细描述

PdfStyle 提供了修改PdfMultiPageView,PdfScrollablePageView, 和PdfPageView 外观的属性。

提供的默认样式与 Qt Quick Controls 中的样式相匹配。文件选择器用于加载与正在使用的 Controls 样式相对应的 PDF 样式。可使用不同的file selectors 自定义样式。

属性文档

currentSearchResultStrokeColor : color

current search result 周围方框轮廓的颜色。

另请参阅 PdfMultiPageView::searchBack(),PdfMultiPageView::searchForward() 和PdfSearchModel::currentResult

currentSearchResultStrokeWidth : real

current search result 周围方框轮廓的线宽。

另请参阅 PdfMultiPageView::searchBack(),PdfMultiPageView::searchForward() 和PdfSearchModel::currentResult

pageSearchResultsColor : color

覆盖在文本上的半透明矩形的颜色与search string 匹配。

另请参阅 PdfSearchModel

selectionColor : color

selected text 上叠加的半透明矩形的颜色。

另请参见 PdfSelection

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.