admin 管理员组

文章数量: 1087139


2024年4月20日发(作者:c语言能做什么项目)

QTextEdit窗口部件提供了强大的单页面的多信息文本编辑器。 详情请见……

#include

继承了QScrollView。

被QMultiLineEdit、QTextBrowser和QTextView继承。

所有成员函数的列表。

公有成员

enum WordWrap { NoWrap, WidgetWidth, FixedPixelWidth,

FixedColumnWidth }

enum WrapPolicy { AtWordBoundary, Anywhere, AtWhiteSpace =

AtWordBoundary }

enum KeyboardAction { ActionBackspace, ActionDelete, ActionReturn,

ActionKill }

enum CursorAction { MoveBackward, MoveForward, MoveWordBackward,

MoveWordForward, MoveUp, MoveDown, MoveLineStart, MoveLineEnd,

MoveHome, MoveEnd, MovePgUp, MovePgDown }

enum VerticalAlignment { AlignNormal, AlignSuperScript,

AlignSubScript }

QTextEdit ( const QString & text, const QString & context = QString::null,

QWidget * parent = 0, const char * name = 0 )

QTextEdit ( QWidget * parent = 0, const char * name = 0 )

QString text () const

QString text ( int para ) const

TextFormat textFormat () const

QString context () const

QString documentTitle () const

void getSelection ( int * paraFrom, int * indexFrom, int * paraTo,

int * indexTo, int selNum = 0 ) const

virtual bool find ( const QString & expr, bool cs, bool wo, bool forward =

TRUE, int * para = 0, int * index = 0 )

int paragraphs () const

int lines () const

int linesOfParagraph ( int para ) const

int lineOfChar ( int para, int index )

int length () const

QRect paragraphRect ( int para ) const

int paragraphAt ( const QPoint & pos ) const

int charAt ( const QPoint & pos, int * para ) const

int paragraphLength ( int para ) const

QStyleSheet * styleSheet () const

QMimeSourceFactory * mimeSourceFactory () const

QBrush paper () const

bool linkUnderline () const

virtual int heightForWidth ( int w ) const

bool hasSelectedText () const

QString selectedText () const

bool isUndoAvailable () const

bool isRedoAvailable () const

WordWrap wordWrap () const

int wrapColumnOrWidth () const

WrapPolicy wrapPolicy () const

int tabStopWidth () const

QString anchorAt ( const QPoint & pos )

bool isReadOnly () const

void getCursorPosition ( int * para, int * index ) const

bool isModified () const

bool italic () const

bool bold () const

bool underline () const

QString family () const

int pointSize () const

QColor color () const

QFont font () const

int alignment () const

int undoDepth () const

bool isOverwriteMode () const

QColor paragraphBackgroundColor ( int para ) const

bool isUndoRedoEnabled () const

公有槽

virtual void setMimeSourceFactory ( QMimeSourceFactory * factory )

virtual void setStyleSheet ( QStyleSheet * styleSheet )

virtual void scrollToAnchor ( const QString & name )

virtual void setPaper ( const QBrush & pap )

virtual void setLinkUnderline ( bool )

virtual void setWordWrap ( WordWrap mode )

virtual void setWrapColumnOrWidth ( int )

virtual void setWrapPolicy ( WrapPolicy policy )

virtual void copy ()

virtual void append ( const QString & text )

void setText ( const QString & txt )

virtual void setText ( const QString & text, const QString & context )

virtual void setTextFormat ( TextFormat f )

virtual void selectAll ( bool select = TRUE )

virtual void setTabStopWidth ( int ts )

virtual void zoomIn ( int range )

virtual void zoomIn ()

virtual void zoomOut ( int range )

virtual void zoomOut ()

virtual void zoomTo ( int size )

virtual void setReadOnly ( bool b )

virtual void undo ()

virtual void redo ()

virtual void cut ()

virtual void paste ()

virtual void pasteSubType ( const QCString & subtype )

virtual void clear ()

virtual void del ()

virtual void indent ()

virtual void setItalic ( bool b )

virtual void setBold ( bool b )

virtual void setUnderline ( bool b )

virtual void setFamily ( const QString & fontFamily )

virtual void setPointSize ( int s )

virtual void setColor ( const QColor & c )

virtual void setVerticalAlignment ( VerticalAlignment a )

virtual void setAlignment ( int a )

virtual void setCursorPosition ( int para, int index )

virtual void setSelection ( int paraFrom, int indexFrom, int paraTo,

int indexTo, int selNum = 0 )

virtual void setSelectionAttributes ( int selNum, const QColor & back,

bool invertText )

virtual void setModified ( bool m )

virtual void setUndoDepth ( int d )

virtual void ensureCursorVisible ()

virtual void placeCursor ( const QPoint & pos, QTextCursor * c = 0 )

virtual void moveCursor ( CursorAction action, bool select )

virtual void doKeyboardAction ( KeyboardAction action )

virtual void removeSelectedText ( int selNum = 0 )

virtual void removeSelection ( int selNum = 0 )

virtual void setCurrentFont ( const QFont & f )

virtual void setOverwriteMode ( bool b )

virtual void scrollToBottom ()

virtual void insert ( const QString & text, bool indent = FALSE,

bool checkNewLine = TRUE, bool removeSelected = TRUE )

virtual void insertAt ( const QString & text, int para, int index )

virtual void removeParagraph ( int para )

virtual void insertParagraph ( const QString & text, int para )

virtual void setParagraphBackgroundColor ( int para, const QColor & bg )

virtual void clearParagraphBackground ( int para )

virtual void setUndoRedoEnabled ( bool b )

信号

void textChanged ()

void selectionChanged ()

void copyAvailable ( bool yes )

void undoAvailable ( bool yes )

void redoAvailable ( bool yes )

void currentFontChanged ( const QFont & f )

void currentColorChanged ( const QColor & c )

void currentAlignmentChanged ( int a )

void currentVerticalAlignmentChanged ( VerticalAlignment a )

void cursorPositionChanged ( QTextCursor * c )

void cursorPositionChanged ( int para, int pos )

void returnPressed ()

void modificationChanged ( bool m )

属性

QString documentTitle - 从文本中分析出的文档标题

(只读)

bool hasSelectedText - 是否有文本被选择到选择区0中

(只读)

int length - 文本的字符数

(只读)

bool linkUnderline - 超文本链接是否使用下划线

bool modified - 文档是否已经被用户修改

bool overwriteMode - 文本编辑的覆盖模式

QBrush paper - 背景(纸)的画刷

bool readOnly - 文本编辑是否只读

QString selectedText - 被选择的文本(在选择区0中)或者如果当前没有

被选择的文本(在选择区0中)就是空字符串

(只读)

int tabStopWidth - tab stop的象素宽度s

QString text - 文本编辑的文本

TextFormat textFormat - 文本格式:多信息文本、一般文本或者自动文本

int undoDepth - 撤销历史的深度

bool undoRedoEnabled - 撤销/恢复是否生效

WordWrap wordWrap - 自动换行模式

int wrapColumnOrWidth - 被自动换行的文本的位置(根据自动换行模式

来决定是像素还是列)

WrapPolicy wrapPolicy - 自动换行策略,在空白符号还是在任何地方

保护成员

void repaintChanged ()

virtual void keyPressEvent ( QKeyEvent * e )

virtual bool focusNextPrevChild ( bool n )

QTextCursor * textCursor () const

virtual QPopupMenu * createPopupMenu ( const QPoint & pos )

virtual QPopupMenu * createPopupMenu () (obsolete)

详细描述

QTextEdit窗口部件提供了强大的单页面的多信息文本编辑器。

介绍和概念

使用QTextEdit作为一个显示窗口部件

o

只读的键绑定

使用QTextEdit作为一个编辑器

o

编辑键绑定

介绍和概念

QTextEdit是一个高级的所见即所得的支持使用HTML风格标记的多信息文本格

式的查看器/编辑器。它对于处理大文档和快速相应用户的输入进行了优化。

QTextEdit操作的三个模式:

模式 命令 注释

一般setTextFormat(PlainText) 使用setText()设置文本,text()可以返回一般文

文本本。文本属性(比如颜色)可以被设置,但是一

编辑般文本总是被返回。

1.

多信setTextFormat(RichText) 使用setText()设置文本,text()可以返回多信息文

息文本。多信息文本编辑是相当受限制的。例如你不

本编能设置边白或者插入图片(尽管你可以读取并且

辑器 正确地显示具有边白和包含图片的文件)。这个

模式对于编辑少量的多信息文本是非常有用的。

2.

文本setReadOnly(TRUE) 使用setText()或append()(这个没有撤销历史,

查看

3.

所以更快并且使用更少的内存)来设置文本,

text()根据textFormat()返回一般文本或者多信息

文本。这个模式可以正确显示HTML中一个比较

大的子集。

1.

我们

建议使用QTextEdit来创建语法高亮的编辑器,因为现在的应用编程接口对于这个目的

是不够的。我们希望能在以后的发行中发行一个支持语法高亮的更加完整的应用编程接口。

2.

在稍后的Qt发行中计划推出一个更完整的支持设置边白、图片等等的应用编程接口。

3.

Qt 3.1将提供一个日志浏览器模式,它是专门为快速地并且有效使用内存地显示大量的只读文

本而优化的。

我们建议你总是调用setTextFormat()来设置你想使用的模式。如果你是用

AutoText,那么setText()和append()将会试图决定给定的文本是一般文本还是多

信息文本。如果你使用RichText,那么setText()和append()总是假设给定的文本

是多信息文本。insert()简单的插入给定的文本。

QTextEdit在段落和字符上工作。段落就是被自动换行来适应窗口部件的宽度的

被格式化的字符串。默认情况下当读取一般文本时,两个换行符确定一个段落。

一个文档由零或更多个段落组成,索引从0开始。字符是基于每一个段落来被索

引的,也是从0开始。段落中的单字根据段落的alignment()进行对齐。段落被硬

换行分隔。段落中的字符都有自己的属性,例如字体和颜色。

文本编辑文档使用如下概念:

当前格式

-- 这是当前光标位置的格式,如果存在被选择文本,

也是

它的

格式。

当前段落

-- 包含光标的段落。

QTextEdit可以显示图片(使用QMimeSourceFactory)、列表和表格。如果文本

太大以至于不能在文本编辑的视口中查看时,滚动条将会出现。文本编辑可以载

入一般文本和HTML文件(HTML3.2和4的子集)。表现风格和有效标记集由

styleSheet()来定义。自定义标记可以被创建并且被放置到样式单中。可以使用

setStyleSheet()改变样式单,具体情况请参考QStyleSheet。通过图片标记识别的

图片如果它们可以被使用文本编辑的QMimeSourceFactory解释的话就可以被显

示,请参考setMimeSourceFactory()。

如果你想要一个有更多导航的文本浏览器,请使用QTextBrowser。如果你只是

想显示一小条多信息文本,请使用QLabel或者QSimpleRichText。

如果你创建一个新的QTextEdit并且想允许用户编辑多信息文本,请调用

setTextFormat(Qt::RichText)来确保文本被看做多信息文本。(多信息文本使用

HTML标记来设置文本格式属性。关于被支持的HTML标记的信息请参考

QStyleSheet。)如果你不明确地调用setTextFormat(),文本编辑将会猜测文本自

己是多信息文本还是一般文本。这也就是说如果文本看起来像HTML或XML,

它可能被解释为多信息文本,所以你应该调用setTextFormat(Qt::PlainText)来保

护这些文本。

注意我们并不是要为Qt添加一个具有所有特征的网页浏览器窗口部件(因为这

将很容易使Qt的大小加倍并且只有很少的应用程序可以从这里受益)。Qt中的

多信息文本支持是被设计为应用程序提供一个快速、可移植并且有效率地方式来

添加合理的在线帮助工具,并且提供一个多信息文本编辑器的基础。

使用QTextEdit作为一个显示窗口部件

QTextEdit可以显示一个包括表格和图片的大的HTML子集。

文本通过使用setText()来设置或者替换,它删除任何已经存在的文本并且用传递

给setText()调用的文本替换它。如果你使用继承HTML(强制使用

setTextFormat(RichText))调用setText(),并且然后调用text(),返回的文本可能

有不同的标签,但是它们呈现的都是一样的。文本可以使用insert()、paste()、

pasteSubType()和append()来插入。被添加的文本没有进入撤销历史中,这使得

append()更快并且消耗更少的内存。文本也可以被cut()。整个文本可以使用clear()

来被删除并且被选择的文本可以使用removeSelectedText()来被删除。被选择(被

标记)的文本也可以使用del()来被删除(如果没有文本被选择,这将删除光标

右面的字符)。

可以使用setText()和text()来达到载入和保存文本的目的,例如:

QFile file( fileName ); // 从文件中读取文本

if ( ( IO_ReadOnly ) ) {

QTextStream ts( &file );

textEdit->setText( () );

}

QFile file( fileName ); // 把文本写入到文件中

if ( ( IO_WriteOnly ) ) {

QTextStream ts( &file );

ts << textEdit->text();

textEdit->setModified( FALSE );

}

默认这个文本编辑会在空白符号处自动换行来适应文本编辑窗口部件。

setWordWrap()函数用来指定你想要的自动换行方式,或者如果你不像要任何自

动换行,请使用NoWrap。调用setWordWrap()来设置固定的像素宽度

FixedPixelWidth,或者由setWrapColumnOrWidth()确定的像素或者列数的字符列

数(例如80列)FixedColumnWidth。如果你是用自动换行来适应窗口部件的宽

度WidgetWidth,你可以使用setWrapPolicy()来指定是在空白符号或者任何地方

自动换行。

背景色的设置与其它窗口部件不同,使用setPaper()。你可以指定画刷风格是一

个普通颜色或者一个复杂的像素映射。

超文本链接可以自动加上下划线,这个可以通过setLinkUnderline()来改变。tab

stop宽度可以使用setTabStopWidth()来设置。

zoomIn()和zoomOut()函数能够用来通过增加(对于zoomOut()是减少)使用的点

的大小来重新定义文本的大小。

lines()函数返回文本中的行数并且paragraphs()返回段落数。特定段落中的函数可

以通过linesOfParagraph()返回。整个文本的字符长度可以通过length()返回。

你可以滚动到文本中的一个锚,也就是通过scrollToAnchor()到达

name="anchor">。find()函数可以被用来找到和选择文本中的给定字符串。

只读的QTextEdit提供了和(废弃的)QTextEdit相同的功能。(QTextView仍

被提供用来保证旧代码的兼容性。)

只读的键绑定

当QTextEdit被使用的时候,只读的键绑定仅限于浏览,并且文本只能被鼠标选

定:

按键

UpArrow 向上移动一行

操作

DownArrow 向下移动一行

LeftArrow 向左移动一个字符

RightArrow 向右移动一个字符

PageUp 向上移动一页(视口)

PageDown 向下移动一页(视口)

Home

End

移动到文本开始处

移动到文本结束处

Shift+Wheel 水平的滚动文本(Wheel就是鼠标滚轮)

Ctrl+Wheel 缩放文本

文本编辑也可以提供一些元信息。例如,documentTitle()函数将返回来自HTML

标签中的文本。 </p><p style="text-indent: 2em;font-size:18px;">文本编辑中显示的文本有一个context。context就是文本编辑的</p><p style="text-indent: 2em;font-size:18px;">QMimeSourceFactory用来解析文件和图片的定位的路径。当查询数据时,它被</p><p style="text-indent: 2em;font-size:18px;">传递给mimeSourceFactory()。(请参考See QTextEdit()和context()。) </p><p style="text-indent: 2em;font-size:18px;">使用QTextEdit作为一个编辑器 </p><p style="text-indent: 2em;font-size:18px;">使用QTextEdit作为显示窗口部件的所有信息这里也适用。 </p><p style="text-indent: 2em;font-size:18px;">当前格式属性可以通过setItalic()、setBold()、setUnderline()、setFamily()(字体</p><p style="text-indent: 2em;font-size:18px;">族)、setPointSize()、setColor()和setCurrentFont()来设置。当前段落的对齐方式</p><p style="text-indent: 2em;font-size:18px;">使用setAlignment()来设置。 </p><p style="text-indent: 2em;font-size:18px;">使用setSelection()来选择文本。setSelectionAttributes()函数用来指出被选择文本</p><p style="text-indent: 2em;font-size:18px;">应该如何被显示。使用hasSelectedText()来搜索是否有任何文本被选择。当前被</p><p style="text-indent: 2em;font-size:18px;">选择文本的位置可以由getSelection()提供并且被选择文本本身被selectedText()</p><p style="text-indent: 2em;font-size:18px;">返回。选择可以使用copy()来复制到剪贴板,或者使用cut()剪切到剪贴板中。它</p><p style="text-indent: 2em;font-size:18px;">可以被removeSelectedText()删除。使用selectAll()可以选择(或者取消选择)整</p><p style="text-indent: 2em;font-size:18px;">个文本。QTextEdit支持多重选择。绝大多数选择函数是在默认选择(选择区0)</p><p style="text-indent: 2em;font-size:18px;">中操作。如果用户按下非选择键,例如没有按下Shift的情况下的一个光标键,</p><p style="text-indent: 2em;font-size:18px;">所有选择都被清空。 </p><p style="text-indent: 2em;font-size:18px;">使用setCursorPosition()和getCursorPosition()可以分别设置和获得光标的位置。</p><p style="text-indent: 2em;font-size:18px;">当光标被移动,信号currentFontChanged()、currentColorChanged()和</p><p style="text-indent: 2em;font-size:18px;">currentAlignmentChanged()被发射来影响新光标位置的字体、颜色和对齐方式。 </p><p style="text-indent: 2em;font-size:18px;">如果文本改变了,textChanged()信号被发射,并且如果用户通过按下回车键或者</p><p style="text-indent: 2em;font-size:18px;">换行键插入一个新行,returnPressed()被发射。如果文本已经被修改,isModified()</p><p style="text-indent: 2em;font-size:18px;">函数将会返回真。 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit提供基于命令的撤销和恢复。使用setUndoDepth()可以设置命令历史</p><p style="text-indent: 2em;font-size:18px;">的深度,默认为100步。调用undo()或redo()可以撤销或者恢复上一次操作。信</p><p style="text-indent: 2em;font-size:18px;">号undoAvailable()和redoAvailable()表明撤销和恢复操作是否可以被执行。 </p><p style="text-indent: 2em;font-size:18px;">indent()函数用来再次缩进一个段落。它对于代码编辑器是很有用的,例如,Qt</p><p style="text-indent: 2em;font-size:18px;">设计器</p><p style="text-indent: 2em;font-size:18px;">的代码编辑器中,Ctrl+I调用indent()函数。 </p><p style="text-indent: 2em;font-size:18px;">编辑键绑定 </p><p style="text-indent: 2em;font-size:18px;">编辑中被实现的键绑定的列表: </p><p style="text-indent: 2em;font-size:18px;">按键 </p><p style="text-indent: 2em;font-size:18px;">Backspace </p><p style="text-indent: 2em;font-size:18px;">Delete </p><p style="text-indent: 2em;font-size:18px;">删除光标左侧的字符 </p><p style="text-indent: 2em;font-size:18px;">删除光标右侧的字符 </p><p style="text-indent: 2em;font-size:18px;">操作 </p><p style="text-indent: 2em;font-size:18px;"></p><p style="text-indent: 2em;font-size:18px;">Ctrl+A </p><p style="text-indent: 2em;font-size:18px;">Ctrl+B </p><p style="text-indent: 2em;font-size:18px;">Ctrl+C </p><p style="text-indent: 2em;font-size:18px;">Ctrl+D </p><p style="text-indent: 2em;font-size:18px;">Ctrl+E </p><p style="text-indent: 2em;font-size:18px;">Ctrl+F </p><p style="text-indent: 2em;font-size:18px;">Ctrl+H </p><p style="text-indent: 2em;font-size:18px;">Ctrl+K </p><p style="text-indent: 2em;font-size:18px;">Ctrl+N </p><p style="text-indent: 2em;font-size:18px;">Ctrl+P </p><p style="text-indent: 2em;font-size:18px;">Ctrl+V </p><p style="text-indent: 2em;font-size:18px;">Ctrl+X </p><p style="text-indent: 2em;font-size:18px;">Ctrl+Z </p><p style="text-indent: 2em;font-size:18px;">Ctrl+Y </p><p style="text-indent: 2em;font-size:18px;">LeftArrow </p><p style="text-indent: 2em;font-size:18px;">移动光标到行首 </p><p style="text-indent: 2em;font-size:18px;">向左移动光标一个字符 </p><p style="text-indent: 2em;font-size:18px;">复制标定的文本到剪贴板(也就是Windows下的Ctrl+Insert) </p><p style="text-indent: 2em;font-size:18px;">删除光标右侧的字符 </p><p style="text-indent: 2em;font-size:18px;">移动光标到行尾 </p><p style="text-indent: 2em;font-size:18px;">向右移动光标一个字符 </p><p style="text-indent: 2em;font-size:18px;">删除光标左侧的字符 </p><p style="text-indent: 2em;font-size:18px;">删除到行尾 </p><p style="text-indent: 2em;font-size:18px;">移动光标到下一行 </p><p style="text-indent: 2em;font-size:18px;">移动光标到上一行 </p><p style="text-indent: 2em;font-size:18px;">把剪贴板文本粘贴到行编辑中(也就是Windows下的</p><p style="text-indent: 2em;font-size:18px;">Shift+Insert) </p><p style="text-indent: 2em;font-size:18px;">剪切标定的文本,复制到剪贴板(也就是Windows下的</p><p style="text-indent: 2em;font-size:18px;">Shift+Delete) </p><p style="text-indent: 2em;font-size:18px;">撤销最后一次操作 </p><p style="text-indent: 2em;font-size:18px;">恢复最后一次操作 </p><p style="text-indent: 2em;font-size:18px;">向左移动光标一个字符 </p><p style="text-indent: 2em;font-size:18px;">Ctrl+LeftArrow 向左移动光标一个单字 </p><p style="text-indent: 2em;font-size:18px;">RightArrow 向右移动光标一个字符 </p><p style="text-indent: 2em;font-size:18px;">Ctrl+RightArrow 向右移动光标一个单字 </p><p style="text-indent: 2em;font-size:18px;">UpArrow </p><p style="text-indent: 2em;font-size:18px;">Ctrl+UpArrow </p><p style="text-indent: 2em;font-size:18px;">DownArrow </p><p style="text-indent: 2em;font-size:18px;">Ctrl+Down </p><p style="text-indent: 2em;font-size:18px;">Arrow </p><p style="text-indent: 2em;font-size:18px;">PageUp </p><p style="text-indent: 2em;font-size:18px;">PageDown </p><p style="text-indent: 2em;font-size:18px;">Home </p><p style="text-indent: 2em;font-size:18px;">Ctrl+Home </p><p style="text-indent: 2em;font-size:18px;">End </p><p style="text-indent: 2em;font-size:18px;">Ctrl+End </p><p style="text-indent: 2em;font-size:18px;">移动光标到上一行 </p><p style="text-indent: 2em;font-size:18px;">移动光标到上一个单字 </p><p style="text-indent: 2em;font-size:18px;">移动光标到下一行 </p><p style="text-indent: 2em;font-size:18px;">移动光标到下一个单字 </p><p style="text-indent: 2em;font-size:18px;">移动光标到上一页 </p><p style="text-indent: 2em;font-size:18px;">移动光标到下一页 </p><p style="text-indent: 2em;font-size:18px;">移动光标到行首 </p><p style="text-indent: 2em;font-size:18px;">移动光标到文首 </p><p style="text-indent: 2em;font-size:18px;">移动光标到行尾 </p><p style="text-indent: 2em;font-size:18px;">移动光标到文尾 </p><p style="text-indent: 2em;font-size:18px;"></p><p style="text-indent: 2em;font-size:18px;">Shift+Wheel </p><p style="text-indent: 2em;font-size:18px;">Ctrl+Wheel </p><p style="text-indent: 2em;font-size:18px;">水平的滚动文本(Wheel就是鼠标滚轮) </p><p style="text-indent: 2em;font-size:18px;">缩放文本 </p><p style="text-indent: 2em;font-size:18px;">要选择(标定)文本,按下一个移动键的同时按住Shift键,例如Shift+</p><p style="text-indent: 2em;font-size:18px;">右箭头</p><p style="text-indent: 2em;font-size:18px;">将会选择右面的字符,并且Shift+Ctrl+</p><p style="text-indent: 2em;font-size:18px;">右箭头</p><p style="text-indent: 2em;font-size:18px;">将会选择右面的单字,等等。 </p><p style="text-indent: 2em;font-size:18px;">默认情况下,文本编辑窗口部件在插入模式下工作,所以用户输入的文本都被插</p><p style="text-indent: 2em;font-size:18px;">入到文本编辑中并且光标右面的文本都会移动到不碍事的地方。使用</p><p style="text-indent: 2em;font-size:18px;">setOverwriteMode(),这个模式可以被改为覆盖,这时新文本将覆盖光标右面存</p><p style="text-indent: 2em;font-size:18px;">在的任何文本。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考基本窗口部件和文本相关类。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">成员类型文档 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::CursorAction </p><p style="text-indent: 2em;font-size:18px;">这个枚举变量被moveCursor()使用,它用来指定光标应该被移动的方向: </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::MoveBackward - 向后移动光标一个字符 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::MoveWordBackward - 向后移动光标一个单字 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::MoveForward - 向前移动光标一个字符 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::MoveWordForward - 向前移动光标一个单字 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::MoveUp - 向上移动光标一行 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::MoveDown - 向下移动光标一行 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::MoveLineStart - 移动光标到行首 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::MoveLineEnd - 移动光标到行尾 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::MoveHome - 移动光标到文首 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::MoveEnd - 移动光标到文尾 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::MovePgUp - 向上移动光标一页 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::MovePgDown - 向下移动光标一页 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::KeyboardAction </p><p style="text-indent: 2em;font-size:18px;">这个枚举变量被doKeyboardAction()使用,它用来指定哪个操作被执行: </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::ActionBackspace - 删除光标左面的字符。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::ActionDelete - 删除光标右面的字符。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::ActionReturn - 在光标位置分割段落。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::ActionKill - 如果光标不在段尾,从光标位置删除字符,直</p><p style="text-indent: 2em;font-size:18px;">到段尾。如果光标在段尾,删除段尾的硬回车符——这将会导致这个段落</p><p style="text-indent: 2em;font-size:18px;">和随后的段落被连接在一起。 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::VerticalAlignment </p><p style="text-indent: 2em;font-size:18px;">这个枚举变量被用来设置文本的垂直对齐方式。 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::AlignNormal - 普通对齐 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::AlignSuperScript - 上标 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::AlignSubScript - 下标 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::WordWrap </p><p style="text-indent: 2em;font-size:18px;">这个枚举变量定义了QTextEdit的自动换行模式。下面这些值是有效的: </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::NoWrap - 不自动换行。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::WidgetWidth - 在窗口部件的当前宽度自动换行(这是默认</p><p style="text-indent: 2em;font-size:18px;">的)。默认在空白符号处自动换行,这可以使用setWrapPolicy()来改变。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::FixedPixelWidth - 从窗口部件的左侧开始的固定数量的象</p><p style="text-indent: 2em;font-size:18px;">素数自动换行。象素的数量可以通过wrapColumnOrWidth()来设置。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::FixedColumnWidth - 从窗口部件左侧开始的固定数量的列数</p><p style="text-indent: 2em;font-size:18px;">自动换行。列数可以通过wrapColumnOrWidth()设置。如果你需要使用等</p><p style="text-indent: 2em;font-size:18px;">宽文本在设备上显示很好的格式文本,这是很有用的,例如标准的VT100</p><p style="text-indent: 2em;font-size:18px;">终端,你可以把wrapColumnOrWidth()设置为80。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">也可以参考wordWrap和wordWrap。 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::WrapPolicy </p><p style="text-indent: 2em;font-size:18px;">这个枚举变量定义了自动换行模式在哪里自动换行。 </p><p style="text-indent: 2em;font-size:18px;">下面这些值是有效的: </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::AtWhiteSpace - 在空白符号处(空格或者换行)自动换行。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::Anywhere - 在任何情况下自动换行,包括单字中。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::AtWordBoundary - 不要使用这个不赞成的值(它是</p><p style="text-indent: 2em;font-size:18px;">AtWhiteSpace的同义字,请使用后者替换它)。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">也可以参考wrapPolicy。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">成员函数文档 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::QTextEdit ( const QString & text, const QString & context </p><p style="text-indent: 2em;font-size:18px;">= QString::null, QWidget * parent = 0, const char * name = 0 ) </p><p style="text-indent: 2em;font-size:18px;">使用父对象parent和名称name构造一个QTextEdit。文本编辑将使用上下文</p><p style="text-indent: 2em;font-size:18px;">context来显示文本text。 </p><p style="text-indent: 2em;font-size:18px;">context是文本编辑的QMimeSourceFactory用来解析文件和图片的定位的路径。</p><p style="text-indent: 2em;font-size:18px;">当查询数据时,它被传递给mimeSourceFactory()。 </p><p style="text-indent: 2em;font-size:18px;">例如,如果文本包含一个文本标签,并且上下文为</p><p style="text-indent: 2em;font-size:18px;">“path/to/look/in”,那么QMimeSourceFactory将会试图从“path/to/look/in/”</p><p style="text-indent: 2em;font-size:18px;">载入图片。如果标签为,context将不会被使用(因为</p><p style="text-indent: 2em;font-size:18px;">QMimeSourceFactory识别出了我们使用的是绝对路径)并且将会试图载入</p><p style="text-indent: 2em;font-size:18px;">“/”。context也可以正确的适用于hrefs,例如<a </p><p style="text-indent: 2em;font-size:18px;">href="">Target</a>,将会被识别为“path/to/look/in/”。 </p><p style="text-indent: 2em;font-size:18px;">QTextEdit::QTextEdit ( QWidget * parent = 0, const char * name = 0 ) </p><p style="text-indent: 2em;font-size:18px;">使用父对象parent和名称name构造一个空的QTextEdit。 </p><p style="text-indent: 2em;font-size:18px;">int QTextEdit::alignment () const </p><p style="text-indent: 2em;font-size:18px;">返回当前段落的对齐方式。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setAlignment()。 </p><p style="text-indent: 2em;font-size:18px;">QString QTextEdit::anchorAt ( const QPoint & pos ) </p><p style="text-indent: 2em;font-size:18px;">如果在pos位置有一个锚(在内容坐标中),它的名称被返回,否则返回空字符</p><p style="text-indent: 2em;font-size:18px;">串。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::append ( const QString & text )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">把文本text添加到文本编辑的结尾。注意这个函数会清空撤销/恢复历史。 </p><p style="text-indent: 2em;font-size:18px;">实例:network/clientserver/client/、network/clientserver/server/、</p><p style="text-indent: 2em;font-size:18px;">network/httpd/和process/。 </p><p style="text-indent: 2em;font-size:18px;">bool QTextEdit::bold () const </p><p style="text-indent: 2em;font-size:18px;">如果当前格式是粗体的,返回真,否则返回假。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setBold()。 </p><p style="text-indent: 2em;font-size:18px;">int QTextEdit::charAt ( const QPoint & pos, int * para ) const </p><p style="text-indent: 2em;font-size:18px;">返回在pos位置(在内容坐标中)的字符的索引(相对于它的段落)。如果para</p><p style="text-indent: 2em;font-size:18px;">不为零,*para被设置为当前段落。如果在pos没有字符,-1被返回。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::clear ()</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">删除文本编辑中的所有文本。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考cut(), removeSelectedText()和text。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::clearParagraphBackground ( int para )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">清除para段落的背景色,所以背景色将再次被使用。 </p><p style="text-indent: 2em;font-size:18px;">QColor QTextEdit::color () const </p><p style="text-indent: 2em;font-size:18px;">返回当前格式的颜色。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setColor()和paper。 </p><p style="text-indent: 2em;font-size:18px;">QString QTextEdit::context () const </p><p style="text-indent: 2em;font-size:18px;">返回编辑的context。context是文本编辑的QMimeSourceFactory用来解析文件和</p><p style="text-indent: 2em;font-size:18px;">图片的定位的路径。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考text。 </p><p style="text-indent: 2em;font-size:18px;">实例:helpviewer/和qdir/。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::copy ()</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">复制任何选择文本(从选择区0中)到剪贴板。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考hasSelectedText和copyAvailable()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::copyAvailable ( bool yes )</p><p style="text-indent: 2em;font-size:18px;"> [信号]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">当文本编辑中的文本被选择或者取消选择时,这个信号被发射。 </p><p style="text-indent: 2em;font-size:18px;">当文本被选择时,这个信号被发射,这时yes被设置为真。如果没有文本被选择</p><p style="text-indent: 2em;font-size:18px;">或者如果被选择文本被取消选择,这个信号被发射,这时yes被设置为假。 </p><p style="text-indent: 2em;font-size:18px;">如果yes为真,那么copy()可以被用来复制所选文本到剪贴板。如果yes为假,</p><p style="text-indent: 2em;font-size:18px;">那么copy()什么也不做。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考selectionChanged()。 </p><p style="text-indent: 2em;font-size:18px;">QPopupMenu * QTextEdit::createPopupMenu ( const QPoint & pos )</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">[虚 保护]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">这个函数被用来在文档pos位置创建一个右键弹出菜单。如果你想创建一个自定</p><p style="text-indent: 2em;font-size:18px;">义弹出菜单,重新实现这个函数并且返回被创建的弹出菜单。弹出菜单的所有权</p><p style="text-indent: 2em;font-size:18px;">被传递给调用者。 </p><p style="text-indent: 2em;font-size:18px;">QPopupMenu * QTextEdit::createPopupMenu ()</p><p style="text-indent: 2em;font-size:18px;"> [虚 保护]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">这是一个重载成员函数,提供了方便。它的行为基本上和上面的函数相同。 </p><p style="text-indent: 2em;font-size:18px;">这个函数是废弃的。它的提供只是为了保证旧代码能够工作。我们强烈建议在新</p><p style="text-indent: 2em;font-size:18px;">代码中不要使用它。 </p><p style="text-indent: 2em;font-size:18px;">这个函数被用来创建一个右键弹出菜单。如果你想创建一个自定义弹出菜单,重</p><p style="text-indent: 2em;font-size:18px;">新实现这个函数并且返回被创建的弹出菜单。弹出菜单的所有权被传递给调用者。 </p><p style="text-indent: 2em;font-size:18px;">这个函数只有在createPopupMenu( const QPoint & )返回0时才能被调用。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::currentAlignmentChanged ( int a )</p><p style="text-indent: 2em;font-size:18px;"> [信号]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">如果当前段落的对齐方式已经改变时,这个信号被发射。 </p><p style="text-indent: 2em;font-size:18px;">新的对齐方式是a。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setAlignment()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::currentColorChanged ( const QColor & c )</p><p style="text-indent: 2em;font-size:18px;"> [信号]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">如果当前格式的颜色已经改变时,这个信号被发射。 </p><p style="text-indent: 2em;font-size:18px;">新的颜色是c。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setColor()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::currentFontChanged ( const QFont & f )</p><p style="text-indent: 2em;font-size:18px;"> [信号]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">如果当前格式的字体已经改变时,这个信号被发射。 </p><p style="text-indent: 2em;font-size:18px;">新的字体是f。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setCurrentFont()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::currentVerticalAlignmentChanged </p><p style="text-indent: 2em;font-size:18px;">( VerticalAlignment a )</p><p style="text-indent: 2em;font-size:18px;"> [信号]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">如果当前格式的垂直对齐方式已经改变时,这个信号被发射。 </p><p style="text-indent: 2em;font-size:18px;">新的垂直对齐方式是a。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setVerticalAlignment()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::cursorPositionChanged ( QTextCursor * c )</p><p style="text-indent: 2em;font-size:18px;"> [信号]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">如果光标位置发生改变,这个信号被发射。c指向文本光标对象。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setCursorPosition()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::cursorPositionChanged ( int para, int pos )</p><p style="text-indent: 2em;font-size:18px;"> [信号]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">这是一个重载成员函数,提供了方便。它的行为基本上和上面的函数相同。 </p><p style="text-indent: 2em;font-size:18px;">如果光标位置发生改变,这个信号被发射。para包含段落索引并且pos包含段落</p><p style="text-indent: 2em;font-size:18px;">中的字符位置。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setCursorPosition()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::cut ()</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">复制被选择文本(从选择区0中)到剪贴板并且从文本编辑中删除它。 </p><p style="text-indent: 2em;font-size:18px;">如果没有被选择文本(在选择区0中),就什么也不发生。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考QTextEdit::copy(), paste()和pasteSubType()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::del ()</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">如果有被选择文本(在选择区0中),它就被删除。如果没有被选择文本(在选</p><p style="text-indent: 2em;font-size:18px;">择区0中),文本光标右面的字符被删除。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考removeSelectedText()和cut()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::doKeyboardAction ( KeyboardAction action )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">执行键盘操作action。这通常被键盘事件处理器调用。 </p><p style="text-indent: 2em;font-size:18px;">QString QTextEdit::documentTitle () const </p><p style="text-indent: 2em;font-size:18px;">返回从文本中解析的文档标题。详细情况请参考“documentTitle”属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::ensureCursorVisible ()</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">如果需要,确保滚动文本编辑时光标是可视的。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setCursorPosition()。 </p><p style="text-indent: 2em;font-size:18px;">QString QTextEdit::family () const </p><p style="text-indent: 2em;font-size:18px;">返回当前格式的字体族。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setFamily(), setCurrentFont()和setPointSize()。 </p><p style="text-indent: 2em;font-size:18px;">bool QTextEdit::find ( const QString & expr, bool cs, bool wo, </p><p style="text-indent: 2em;font-size:18px;">bool forward = TRUE, int * para = 0, int * index = 0 )</p><p style="text-indent: 2em;font-size:18px;"> [虚]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">找到字符串expr下一个出现位置。如果expr被找到,返回真,否则返回假。 </p><p style="text-indent: 2em;font-size:18px;">如果para和index都为零,搜索将从当前光标位置开始。如果para和index全</p><p style="text-indent: 2em;font-size:18px;">不为零,搜索将从*para段的*index字符位置开始。 </p><p style="text-indent: 2em;font-size:18px;">如果cs为真,搜索是区分大小写的,否则它是不区分大小写的。如果wo为真,</p><p style="text-indent: 2em;font-size:18px;">搜索将查找匹配整个单字的,否则它搜索任何匹配的文本。如果forward为真(默</p><p style="text-indent: 2em;font-size:18px;">认),搜索将从开始位置到文尾进行工作,否则它从开始位置到文首进行工作。 </p><p style="text-indent: 2em;font-size:18px;">如果expr被找到,函数返回真。如果index和para不为零,被找到的匹配项的</p><p style="text-indent: 2em;font-size:18px;">第一个字符的段落号被放到*para,并且这个字符在段落中的索引位置被放到</p><p style="text-indent: 2em;font-size:18px;">*index。 </p><p style="text-indent: 2em;font-size:18px;">如果expr没有被找到,函数返回假。如果index和para不为零,并且expr没有</p><p style="text-indent: 2em;font-size:18px;">被找到,*index和*para都是不确定的。 </p><p style="text-indent: 2em;font-size:18px;">bool QTextEdit::focusNextPrevChild ( bool n )</p><p style="text-indent: 2em;font-size:18px;"> [虚 保护]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">重新实现用来允许链接间移动焦点。如果n为真,tab把焦点移动到下一个子对</p><p style="text-indent: 2em;font-size:18px;">象,如果n为假,tab把焦点移动到上一个子对象。如果焦点被移动,返回真,</p><p style="text-indent: 2em;font-size:18px;">否则返回假。 </p><p style="text-indent: 2em;font-size:18px;">QFont QTextEdit::font () const </p><p style="text-indent: 2em;font-size:18px;">返回当前格式的字体。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setCurrentFont(), setFamily()和setPointSize()。 </p><p style="text-indent: 2em;font-size:18px;">实例:action/、application/、mdi/和</p><p style="text-indent: 2em;font-size:18px;">qwerty/。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::getCursorPosition ( int * para, int * index ) const </p><p style="text-indent: 2em;font-size:18px;">这个函数设置*para和*index参数到当前光标位置。para和index必须为非空整</p><p style="text-indent: 2em;font-size:18px;">形指针。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setCursorPosition()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::getSelection ( int * paraFrom, int * indexFrom, </p><p style="text-indent: 2em;font-size:18px;">int * paraTo, int * indexTo, int selNum = 0 ) const </p><p style="text-indent: 2em;font-size:18px;">如果有选择,*paraFrom被设置为选择开始的段落号并且*paraTo被设置为选择</p><p style="text-indent: 2em;font-size:18px;">结束的段落号。(它们可以是相同的。)*indexFrom被设置为*paraFrom中选择</p><p style="text-indent: 2em;font-size:18px;">的开始索引并且*indexTo被设置为*paraTo中选择的结束缩影。 </p><p style="text-indent: 2em;font-size:18px;">如果没有选择,*paraFrom、*indexFrom、*paraTo和 *indexTo都被设置为-1。 </p><p style="text-indent: 2em;font-size:18px;">paraFrom、indexFrom、paraTo和indexTo都必须为非空整形指针。 </p><p style="text-indent: 2em;font-size:18px;">selNum是选择的数量(多重选择是被支持的)。它默认为0(默认选择)。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setSelection()和selectedText。 </p><p style="text-indent: 2em;font-size:18px;">bool QTextEdit::hasSelectedText () const </p><p style="text-indent: 2em;font-size:18px;">如果在选择区0中一些文本被选择,返回真,否则返回假。详细情况请参考</p><p style="text-indent: 2em;font-size:18px;">“hasSelectedText”属性。 </p><p style="text-indent: 2em;font-size:18px;">int QTextEdit::heightForWidth ( int w ) const</p><p style="text-indent: 2em;font-size:18px;"> [虚]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">返回如果文本编辑有w象素宽,文本编辑需要有多少象素高才能显示所有文本。 </p><p style="text-indent: 2em;font-size:18px;">从QWidget中被重新实现。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::indent ()</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">重新缩进当前段落。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::insert ( const QString & text, bool indent = FALSE, </p><p style="text-indent: 2em;font-size:18px;">bool checkNewLine = TRUE, bool removeSelected = TRUE )</p><p style="text-indent: 2em;font-size:18px;"> [虚 </p><p style="text-indent: 2em;font-size:18px;">槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">在当前光标位置插入text。如果indent为真,这个段落被重新缩进。如果</p><p style="text-indent: 2em;font-size:18px;">checkNewLine为真,在text中的新行符导致真正的硬换行(也就是新的段落)。</p><p style="text-indent: 2em;font-size:18px;">如果checkNewLine为假,text重的新行符的行为是不确定的。如果checkNewLine</p><p style="text-indent: 2em;font-size:18px;">为假,如果text包含新行符,编辑器的行为是不确定的。如果removeSelected为</p><p style="text-indent: 2em;font-size:18px;">真,任何被选择文本(在选择区0中)在文本被插入之前被移除。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考paste()和pasteSubType()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::insertAt ( const QString & text, int para, int index )</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">[虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">在para段落和index位置插入text。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::insertParagraph ( const QString & text, int para )</p><p style="text-indent: 2em;font-size:18px;"> [虚 </p><p style="text-indent: 2em;font-size:18px;">槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">在位置para插入text作为段落。如果para为-1,这些文本被追加。 </p><p style="text-indent: 2em;font-size:18px;">bool QTextEdit::isModified () const </p><p style="text-indent: 2em;font-size:18px;">如果文档已经被用户修改,返回真,否则返回假。详细情况请参考“modified”属</p><p style="text-indent: 2em;font-size:18px;">性。 </p><p style="text-indent: 2em;font-size:18px;">bool QTextEdit::isOverwriteMode () const </p><p style="text-indent: 2em;font-size:18px;">返回文本编辑的覆盖模式。详细情况请参考“overwriteMode”属性。 </p><p style="text-indent: 2em;font-size:18px;">bool QTextEdit::isReadOnly () const </p><p style="text-indent: 2em;font-size:18px;">如果文本编辑是只读的,返回真,否则返回假。详细情况请参考“readOnly”属性。 </p><p style="text-indent: 2em;font-size:18px;">bool QTextEdit::isRedoAvailable () const </p><p style="text-indent: 2em;font-size:18px;">返回恢复是否可用。 </p><p style="text-indent: 2em;font-size:18px;">bool QTextEdit::isUndoAvailable () const </p><p style="text-indent: 2em;font-size:18px;">返回撤销是否可用。 </p><p style="text-indent: 2em;font-size:18px;">bool QTextEdit::isUndoRedoEnabled () const </p><p style="text-indent: 2em;font-size:18px;">如果撤销/恢复是生效的,返回真,否则返回假。详细情况请参考</p><p style="text-indent: 2em;font-size:18px;">“undoRedoEnabled”属性。 </p><p style="text-indent: 2em;font-size:18px;">bool QTextEdit::italic () const </p><p style="text-indent: 2em;font-size:18px;">如果当前格式是斜体的,返回真,否则返回假。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setItalic()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::keyPressEvent ( QKeyEvent * e )</p><p style="text-indent: 2em;font-size:18px;"> [虚 保护]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">处理键盘事件e。默认情况,键盘事件是用来提供键盘导航和文本编辑的。 </p><p style="text-indent: 2em;font-size:18px;">从QWidget中被重新实现。 </p><p style="text-indent: 2em;font-size:18px;">在QTextBrowser中被重新实现。 </p><p style="text-indent: 2em;font-size:18px;">int QTextEdit::length () const </p><p style="text-indent: 2em;font-size:18px;">返回文本中的字符数。详细情况请参考“length”属性。 </p><p style="text-indent: 2em;font-size:18px;">int QTextEdit::lineOfChar ( int para, int index ) </p><p style="text-indent: 2em;font-size:18px;">返回在para段落的index位置出现的字符在段落中的行数。index位置是相对于</p><p style="text-indent: 2em;font-size:18px;">段首的位置。如果没有这个段落或者在index位置没有这样一个字符(也就是说</p><p style="text-indent: 2em;font-size:18px;">索引超出范围),-1被返回。 </p><p style="text-indent: 2em;font-size:18px;">int QTextEdit::lines () const </p><p style="text-indent: 2em;font-size:18px;">返回文本编辑中的行数,它可以为0。 </p><p style="text-indent: 2em;font-size:18px;">警告: 这个函数也许比较慢。行数会在自动换行期间发生改变,所以这个函数</p><p style="text-indent: 2em;font-size:18px;">不得不遍历所有的段落并且分别得到它们的行数。 </p><p style="text-indent: 2em;font-size:18px;">实例:action/和application/。 </p><p style="text-indent: 2em;font-size:18px;">int QTextEdit::linesOfParagraph ( int para ) const </p><p style="text-indent: 2em;font-size:18px;">返回para段落的行数,或者如果在para索引没有这个段落,返回-1。 </p><p style="text-indent: 2em;font-size:18px;">bool QTextEdit::linkUnderline () const </p><p style="text-indent: 2em;font-size:18px;">如果超文本链接将显示下划线,返回真,否则返回假。详细情况请参考</p><p style="text-indent: 2em;font-size:18px;">“linkUnderline”属性。 </p><p style="text-indent: 2em;font-size:18px;">QMimeSourceFactory * QTextEdit::mimeSourceFactory () const </p><p style="text-indent: 2em;font-size:18px;">返回这个文档编辑当前使用的QMimeSourceFactory。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setMimeSourceFactory()。 </p><p style="text-indent: 2em;font-size:18px;">实例:helpviewer/和qdir/。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::modificationChanged ( bool m )</p><p style="text-indent: 2em;font-size:18px;"> [信号]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">当文档修改发生改变时,这个信号被发射。如果m为真,文档被修改了,否则</p><p style="text-indent: 2em;font-size:18px;">修改状态已经被重置为未修改。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考modified。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::moveCursor ( CursorAction action, bool select )</p><p style="text-indent: 2em;font-size:18px;"> [虚 </p><p style="text-indent: 2em;font-size:18px;">槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">根据action移动文本光标。这通常被一些键盘事件处理器使用。select指定从当</p><p style="text-indent: 2em;font-size:18px;">前光标位置到新位置之间的文本是否应该被选定。 </p><p style="text-indent: 2em;font-size:18px;">QBrush QTextEdit::paper () const </p><p style="text-indent: 2em;font-size:18px;">返回背景(纸)的画刷。详细情况请参考“paper”属性。 </p><p style="text-indent: 2em;font-size:18px;">int QTextEdit::paragraphAt ( const QPoint & pos ) const </p><p style="text-indent: 2em;font-size:18px;">返回在pos位置(在内容坐标中)的段落,或者如果在pos索引没有段落,返回</p><p style="text-indent: 2em;font-size:18px;">-1。 </p><p style="text-indent: 2em;font-size:18px;">QColor QTextEdit::paragraphBackgroundColor ( int para ) const </p><p style="text-indent: 2em;font-size:18px;">返回para段落的背景色或者如果para超出范围或者这个段落没有背景设置,返</p><p style="text-indent: 2em;font-size:18px;">回一个无效的颜色。 </p><p style="text-indent: 2em;font-size:18px;">int QTextEdit::paragraphLength ( int para ) const </p><p style="text-indent: 2em;font-size:18px;">返回para段落的长度(字符数),或者如果para超出范围或者这个段落没有背</p><p style="text-indent: 2em;font-size:18px;">景设置,返回-1。 </p><p style="text-indent: 2em;font-size:18px;">QRect QTextEdit::paragraphRect ( int para ) const </p><p style="text-indent: 2em;font-size:18px;">返回para段落在内容坐标中的矩形,或者如果para超出范围,返回一个无效矩</p><p style="text-indent: 2em;font-size:18px;">形。 </p><p style="text-indent: 2em;font-size:18px;">int QTextEdit::paragraphs () const </p><p style="text-indent: 2em;font-size:18px;">返回文本中的段落数,它可以为0。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::paste ()</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">把剪贴板中的文本粘贴到文本编辑的当前光标位置。只有一般文本能够被粘贴。 </p><p style="text-indent: 2em;font-size:18px;">如果剪贴板中没有文本,就什么也没发生。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考pasteSubType(), cut()和QTextEdit::copy()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::pasteSubType ( const QCString & subtype )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">把剪贴板中格式为subtype的文本粘贴到文本编辑的当前光标位置。subtype可以</p><p style="text-indent: 2em;font-size:18px;">是“plain”或“html”。 </p><p style="text-indent: 2em;font-size:18px;">如果剪贴板中没有subtype格式的文本,就什么也没发生。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考paste(), cut()和QTextEdit::copy()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::placeCursor ( const QPoint & pos, QTextCursor * c = </p><p style="text-indent: 2em;font-size:18px;">0 )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">在离pos位置(在内容坐标中)最近的字符放置光标c。如果c为0,默认的文</p><p style="text-indent: 2em;font-size:18px;">本光标被放置。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setCursorPosition()。 </p><p style="text-indent: 2em;font-size:18px;">int QTextEdit::pointSize () const </p><p style="text-indent: 2em;font-size:18px;">返回当前格式的字体的点的大小。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setFamily(), setCurrentFont()和setPointSize()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::redo ()</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">恢复上一次操作。 </p><p style="text-indent: 2em;font-size:18px;">如果没有操作可以恢复,例如,在撤销/恢复历史中没有恢复步骤,就什么也没</p><p style="text-indent: 2em;font-size:18px;">发生。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考redoAvailable(), undo()和undoDepth。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::redoAvailable ( bool yes )</p><p style="text-indent: 2em;font-size:18px;"> [信号]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">当恢复的可用性发生改变时,这个信号被发射。如果yes为真,那么redo()可以</p><p style="text-indent: 2em;font-size:18px;">一直工作到redoAvailable( FALSE )被发射。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考redo()和undoDepth。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::removeParagraph ( int para )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">移除para段落。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::removeSelectedText ( int selNum = 0 )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">删除selNum(默认为0)选择区中的被选定文本(也就是默认选择的文本)。如</p><p style="text-indent: 2em;font-size:18px;">果没有被选定文本,就什么也没发生。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考selectedText和removeSelection()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::removeSelection ( int selNum = 0 )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">移除selNum(默认为0)选择区。这不会移除被选定文本。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考removeSelectedText()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::repaintChanged ()</p><p style="text-indent: 2em;font-size:18px;"> [保护]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">重新绘制任何已经改变的段落。 </p><p style="text-indent: 2em;font-size:18px;">尽管在内部广泛地使用,但是你也不应该需要自己调用这个函数。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::returnPressed ()</p><p style="text-indent: 2em;font-size:18px;"> [信号]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">如果用户按下回车键或者换行键,这个信号被发射。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::scrollToAnchor ( const QString & name )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">滚动文本编辑来使在被叫作name的锚的文本可视,如果它在文档中可以被发现</p><p style="text-indent: 2em;font-size:18px;">的话。如果这个锚不能被找到,就没有滚动发生。锚是使用HTML锚标签,也</p><p style="text-indent: 2em;font-size:18px;">就是<a name="target">定义的。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::scrollToBottom ()</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">滚动到文本的底部并且如果需要就重新执行格式操作。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::selectAll ( bool select = TRUE )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">如果select为真(默认),所有的文本都被选择作为选择区0。如果select为假,</p><p style="text-indent: 2em;font-size:18px;">所有的文本都被取消选择,也就是默认选择区(选择区0)被清空。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考selectedText。 </p><p style="text-indent: 2em;font-size:18px;">QString QTextEdit::selectedText () const </p><p style="text-indent: 2em;font-size:18px;">返回被选定文本(从选择区0中)或者如果当前没有被选定文本(在选择区0</p><p style="text-indent: 2em;font-size:18px;">中)返回空字符串。详细情况请参考“selectedText”属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::selectionChanged ()</p><p style="text-indent: 2em;font-size:18px;"> [信号]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">只要选择发生改变,这个信号就被发射。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setSelection()和copyAvailable()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setAlignment ( int a )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置当前段落的对齐方式为a。有效的对齐方式为Qt::AlignLeft、Qt::AlignRight、</p><p style="text-indent: 2em;font-size:18px;">Qt::AlignJustify和Qt::AlignCenter(这个是水平中间)。 </p><p style="text-indent: 2em;font-size:18px;">在QMultiLineEdit中被重新实现。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setBold ( bool b )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">如果b为真,设置当前格式为粗体,否则设置当前格式为非粗体。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考bold()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setColor ( const QColor & c )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置当前格式的颜色,也就是文本的颜色,为c。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考color()和paper。 </p><p style="text-indent: 2em;font-size:18px;">实例:action/actiongroup/。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setCurrentFont ( const QFont & f )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置当前格式的字体为f。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考font(), setPointSize()和setFamily()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setCursorPosition ( int para, int index )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置光标到para段落的index位置。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考getCursorPosition()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setFamily ( const QString & fontFamily )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置当前格式的字体族为fontFamily。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考family()和setCurrentFont()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setItalic ( bool b )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">如果b为真,设置当前格式为斜体,否则设置当前格式为非斜体。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考italic()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setLinkUnderline ( bool )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置超文本链接是否显示下划线。详细情况请参考“linkUnderline”属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setMimeSourceFactory </p><p style="text-indent: 2em;font-size:18px;">( QMimeSourceFactory * factory )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置文本编辑的mime源工厂为 factory。详细情况请参考QMimeSourceFactory。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考mimeSourceFactory()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setModified ( bool m )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置文档是否已经被用户修改为m。详细情况请参考“modified”属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setOverwriteMode ( bool b )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置文本编辑的覆盖模式为b。详细情况请参考“overwriteMode”属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setPaper ( const QBrush & pap )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置背景(纸)的画刷为pap。详细情况请参考“paper”属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setParagraphBackgroundColor ( int para, </p><p style="text-indent: 2em;font-size:18px;">const QColor & bg )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置para段落的背景色为bg。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setPointSize ( int s )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置当前格式的点大小为s。 </p><p style="text-indent: 2em;font-size:18px;">注意如果s为0或者负数,这个函数的行为是不确定的。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考pointSize(), setCurrentFont()和setFamily()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setReadOnly ( bool b )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置文本编辑是否只读为b。详细情况请参考“readOnly”属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setSelection ( int paraFrom, int indexFrom, int paraTo, </p><p style="text-indent: 2em;font-size:18px;">int indexTo, int selNum = 0 )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置一个选择从paraFrom段落的indexFrom位置开始,直到paraTo段落的</p><p style="text-indent: 2em;font-size:18px;">indexTo位置结束。有不同id(selNum)的选择区不会被移除,有相同id(selNum)</p><p style="text-indent: 2em;font-size:18px;">的选择区会被移除。 </p><p style="text-indent: 2em;font-size:18px;">使用selNum选择区的选择设置。如果selNum为0,这个就是默任选择了。 </p><p style="text-indent: 2em;font-size:18px;">如果selNum为0,光标被移动到这个选择的结尾,否则光标位置保持不变。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考getSelection()和selectedText。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setSelectionAttributes ( int selNum, </p><p style="text-indent: 2em;font-size:18px;">const QColor & back, bool invertText )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置selNum选择区的背景色为back并且指定这个选择区的文本是否应该被使用</p><p style="text-indent: 2em;font-size:18px;">invertText反白。 </p><p style="text-indent: 2em;font-size:18px;">这个只在selNum > 0的时候工作。默认选择(selNum == 0)从这个窗口部件的</p><p style="text-indent: 2em;font-size:18px;">colorGroup()得到它的属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setStyleSheet ( QStyleSheet * styleSheet )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置这个文本编辑使用的样式单为styleSheet。改变仅对通过setText()或append()</p><p style="text-indent: 2em;font-size:18px;">新增的文本有效。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考styleSheet()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setTabStopWidth ( int ts )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置tab stop宽度为ts象素。详细情况请参考“tabStopWidth”属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setText ( const QString & txt )</p><p style="text-indent: 2em;font-size:18px;"> [槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置文本编辑的文本为txt。详细情况请参考“text”属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setText ( const QString & text, </p><p style="text-indent: 2em;font-size:18px;">const QString & context )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">这是一个重载成员函数,提供了方便。它的行为基本上和上面的函数相同。 </p><p style="text-indent: 2em;font-size:18px;">改变文本编辑的文本为txt并且上下文为context。任何以前的文本都被移除。 </p><p style="text-indent: 2em;font-size:18px;">text可以被解释为一般文本或者多信息文本,取决于textFormat()。默认设置为</p><p style="text-indent: 2em;font-size:18px;">AutoText,也就是说文本编辑从text中自动检测格式。 </p><p style="text-indent: 2em;font-size:18px;">选项context就是文本编辑的QMimeSourceFactory用来解析文件和图片的定位的</p><p style="text-indent: 2em;font-size:18px;">路径。(请参考QTextEdit::QTextEdit()。)当查询数据时,它被传递给</p><p style="text-indent: 2em;font-size:18px;">mimeSourceFactory()。 </p><p style="text-indent: 2em;font-size:18px;">注意这个函数会清空撤销/恢复历史。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考text和textFormat。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setTextFormat ( TextFormat f )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置文本格式:多信息文本、一般文本或者自动文本为f。详细情况请参考</p><p style="text-indent: 2em;font-size:18px;">“textFormat”属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setUnderline ( bool b )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">如果b为真,设置当前格式是有下划线的,否则设置当前格式是没有下划线的。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考underline()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setUndoDepth ( int d )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置撤销历史的深度为d。详细情况请参考“undoDepth”属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setUndoRedoEnabled ( bool b )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置撤销/恢复是否生效为b。详细情况请参考“undoRedoEnabled”属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setVerticalAlignment ( VerticalAlignment a )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置当前格式的垂直对齐方式,也就是文本的,为a。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考color()和paper。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setWordWrap ( WordWrap mode )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置自动换行模式为mode。详细情况请参考“wordWrap”属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setWrapColumnOrWidth ( int )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置将被自动换行的文本的位置(根据自动换行模式决定是象素还是列数)。详</p><p style="text-indent: 2em;font-size:18px;">细情况请参考“wrapColumnOrWidth”属性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::setWrapPolicy ( WrapPolicy policy )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">设置自动换行策略,是在空白符号还是在任意处为policy。详细情况请参考</p><p style="text-indent: 2em;font-size:18px;">“wrapPolicy”属性。 </p><p style="text-indent: 2em;font-size:18px;">QStyleSheet * QTextEdit::styleSheet () const </p><p style="text-indent: 2em;font-size:18px;">返回文本编辑中当前使用的QStyleSheet。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setStyleSheet()。 </p><p style="text-indent: 2em;font-size:18px;">实例:helpviewer/。 </p><p style="text-indent: 2em;font-size:18px;">int QTextEdit::tabStopWidth () const </p><p style="text-indent: 2em;font-size:18px;">返回tab stop的象素宽度。详细情况请参考“tabStopWidth”属性。 </p><p style="text-indent: 2em;font-size:18px;">QString QTextEdit::text () const </p><p style="text-indent: 2em;font-size:18px;">返回文本编辑的文本。详细情况请参考“text”属性。 </p><p style="text-indent: 2em;font-size:18px;">QString QTextEdit::text ( int para ) const </p><p style="text-indent: 2em;font-size:18px;">这是一个重载成员函数,提供了方便。它的行为基本上和上面的函数相同。 </p><p style="text-indent: 2em;font-size:18px;">返回para段落的文本。 </p><p style="text-indent: 2em;font-size:18px;">如果textFormat()为RichText,文本将包含HTML格式标签。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::textChanged ()</p><p style="text-indent: 2em;font-size:18px;"> [信号]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">只要文本编辑中的文本发生改变,这个信号就被发射。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考text和append()。 </p><p style="text-indent: 2em;font-size:18px;">实例:helpviewer/、qwerty/和rot13/。 </p><p style="text-indent: 2em;font-size:18px;">QTextCursor * QTextEdit::textCursor () const</p><p style="text-indent: 2em;font-size:18px;"> [保护]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">返回文本编辑的文本光标。 </p><p style="text-indent: 2em;font-size:18px;">警告: QTextCursor不在公有的应用编程接口中,但在一些特殊环境中你也许需</p><p style="text-indent: 2em;font-size:18px;">要使用它。 </p><p style="text-indent: 2em;font-size:18px;">TextFormat QTextEdit::textFormat () const </p><p style="text-indent: 2em;font-size:18px;">返回文本格式:多信息文本、一般文本或者自动文本。详细情况请参考“textFormat”</p><p style="text-indent: 2em;font-size:18px;">属性。 </p><p style="text-indent: 2em;font-size:18px;">bool QTextEdit::underline () const </p><p style="text-indent: 2em;font-size:18px;">如果当前格式是有下划线的,返回真,否则返回假。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考setUnderline()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::undo ()</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">撤销上一次操作。 </p><p style="text-indent: 2em;font-size:18px;">如果没有操作可以撤销,例如在撤销/恢复历史中没有撤销步骤,那就什么也没</p><p style="text-indent: 2em;font-size:18px;">发生。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考undoAvailable(), redo()和undoDepth。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::undoAvailable ( bool yes )</p><p style="text-indent: 2em;font-size:18px;"> [信号]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">当撤销的可能性发生变化时,这个信号被发射。如果yes为真,那么undo()将会</p><p style="text-indent: 2em;font-size:18px;">一直工作到undoAvailable( FALSE )下一次被发射为止。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考undo()和undoDepth。 </p><p style="text-indent: 2em;font-size:18px;">int QTextEdit::undoDepth () const </p><p style="text-indent: 2em;font-size:18px;">返回撤销历史的深度。详细情况请参考“undoDepth”属性。 </p><p style="text-indent: 2em;font-size:18px;">WordWrap QTextEdit::wordWrap () const </p><p style="text-indent: 2em;font-size:18px;">返回自动换行模式。详细情况请参考“wordWrap”属性。 </p><p style="text-indent: 2em;font-size:18px;">int QTextEdit::wrapColumnOrWidth () const </p><p style="text-indent: 2em;font-size:18px;">返回将被自动换行的文本的位置(根据自动换行模式决定是象素还是列数)。详</p><p style="text-indent: 2em;font-size:18px;">细情况请参考“wrapColumnOrWidth”属性。 </p><p style="text-indent: 2em;font-size:18px;">WrapPolicy QTextEdit::wrapPolicy () const </p><p style="text-indent: 2em;font-size:18px;">返回自动换行策略是在空白符号还是在任意处。详细情况请参考“wrapPolicy”属</p><p style="text-indent: 2em;font-size:18px;">性。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::zoomIn ( int range )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">通过把基本字体大小增大range点并且重新计算所有字体大小来放大文本。这不</p><p style="text-indent: 2em;font-size:18px;">会改变任何图片的大小。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考zoomOut()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::zoomIn ()</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">这是一个重载成员函数,提供了方便。它的行为基本上和上面的函数相同。 </p><p style="text-indent: 2em;font-size:18px;">通过把基本字体大小增大1点并且重新计算所有字体大小来放大文本。这不会改</p><p style="text-indent: 2em;font-size:18px;">变任何图片的大小。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考zoomOut()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::zoomOut ( int range )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">通过把基本字体大小缩小range点并且重新计算所有字体大小来放大文本。这不</p><p style="text-indent: 2em;font-size:18px;">会改变任何图片的大小。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考zoomIn()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::zoomOut ()</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">这是一个重载成员函数,提供了方便。它的行为基本上和上面的函数相同。 </p><p style="text-indent: 2em;font-size:18px;">通过把基本字体大小缩小1点并且重新计算所有字体大小来放大文本。这不会改</p><p style="text-indent: 2em;font-size:18px;">变任何图片的大小。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考zoomIn()。 </p><p style="text-indent: 2em;font-size:18px;">void QTextEdit::zoomTo ( int size )</p><p style="text-indent: 2em;font-size:18px;"> [虚 槽]</p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">通过把基本字体大小变为size点并且重新计算所有字体大小来显示文本。这不会</p><p style="text-indent: 2em;font-size:18px;">改变任何图片的大小。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">属性文档 </p><p style="text-indent: 2em;font-size:18px;">QString documentTitle </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是从文本中分析出的文档标题。 </p><p style="text-indent: 2em;font-size:18px;">对于PlainText,标题将为空字符串。对于RichText,如果存在,标题将为<title></p><p style="text-indent: 2em;font-size:18px;">标签之间的文本,否则为空字符串。 </p><p style="text-indent: 2em;font-size:18px;">通过documentTitle()来获得属性值。 </p><p style="text-indent: 2em;font-size:18px;">bool hasSelectedText </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是是否有文本被选择到选择区0中。 </p><p style="text-indent: 2em;font-size:18px;">通过hasSelectedText()来获得属性值。 </p><p style="text-indent: 2em;font-size:18px;">int length </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是文本的字符数。 </p><p style="text-indent: 2em;font-size:18px;">通过length()来获得属性值。 </p><p style="text-indent: 2em;font-size:18px;">bool linkUnderline </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是超文本链接是否使用下划线。 </p><p style="text-indent: 2em;font-size:18px;">如果为真(默认),超文本链接将被显示下划线。如果为假,链接将不被显示下</p><p style="text-indent: 2em;font-size:18px;">划线。 </p><p style="text-indent: 2em;font-size:18px;">通过setLinkUnderline()设置属性值并且通过linkUnderline()来获得属性值。 </p><p style="text-indent: 2em;font-size:18px;">bool modified </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是文档是否已经被用户修改。 </p><p style="text-indent: 2em;font-size:18px;">通过setModified()设置属性值并且通过isModified()来获得属性值。 </p><p style="text-indent: 2em;font-size:18px;">bool overwriteMode </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是文本编辑的覆盖模式。 </p><p style="text-indent: 2em;font-size:18px;">如果为真(默认),用户输入的文本都被插入到文本编辑中并且光标右面的文本</p><p style="text-indent: 2em;font-size:18px;">都会移动到不碍事的地方。如果为假,编辑器是覆盖模式,也就是说新文本将覆</p><p style="text-indent: 2em;font-size:18px;">盖光标右面存在的任何文本。 </p><p style="text-indent: 2em;font-size:18px;">通过setOverwriteMode()设置属性值并且通过isOverwriteMode()来获得属性值。 </p><p style="text-indent: 2em;font-size:18px;">QBrush paper </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是背景(纸)的画刷。 </p><p style="text-indent: 2em;font-size:18px;">这个画刷是当前用于绘制文本编辑的背景的。初始设置是空画刷。 </p><p style="text-indent: 2em;font-size:18px;">通过setPaper()设置属性值并且通过paper()来获得属性值。 </p><p style="text-indent: 2em;font-size:18px;">bool readOnly </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是文本编辑是否只读。 </p><p style="text-indent: 2em;font-size:18px;">在只读的文本编辑中,用户只能在文本中浏览和选择文本,修改文本是不可能的。 </p><p style="text-indent: 2em;font-size:18px;">这个属性默认为假。 </p><p style="text-indent: 2em;font-size:18px;">通过setReadOnly()设置属性值并且通过isReadOnly()来获得属性值。 </p><p style="text-indent: 2em;font-size:18px;">QString selectedText </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是被选择的文本(在选择区0中)或者如果当前没有被选择的文</p><p style="text-indent: 2em;font-size:18px;">本(在选择区0中)就是空字符串。 </p><p style="text-indent: 2em;font-size:18px;">这个文本不管文本格式总是被作为PlainText返回。在Qt的未来的版本中,根据</p><p style="text-indent: 2em;font-size:18px;">文本格式,HTML的子集</p><p style="text-indent: 2em;font-size:18px;">可能</p><p style="text-indent: 2em;font-size:18px;">被返回。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考hasSelectedText。 </p><p style="text-indent: 2em;font-size:18px;">通过selectedText()来获得属性质。 </p><p style="text-indent: 2em;font-size:18px;">int tabStopWidth </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是tab stop的象素宽度。 </p><p style="text-indent: 2em;font-size:18px;">通过setTabStopWidth()设置属性值并且通过tabStopWidth()来获得属性值。 </p><p style="text-indent: 2em;font-size:18px;">QString text </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是文本编辑的文本。 </p><p style="text-indent: 2em;font-size:18px;">这里没有默认文本。 </p><p style="text-indent: 2em;font-size:18px;">在设置的时候,任何以前的文本都被删除了。 </p><p style="text-indent: 2em;font-size:18px;">根据textFormat(),文本可以被作为一般文本或者多信息文本来解释。默认设置</p><p style="text-indent: 2em;font-size:18px;">为AutoText,也就是说文本编辑自动探测文本格式。 </p><p style="text-indent: 2em;font-size:18px;">对于多信息文本,在可编辑的QTextEdit上调用text()将会导致文本会被文本编</p><p style="text-indent: 2em;font-size:18px;">辑重新生成。这也许意味着被返回的QString也许和原来被设置的不同。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考textFormat。 </p><p style="text-indent: 2em;font-size:18px;">通过setText()设置属性值并且通过text()来获得属性值。 </p><p style="text-indent: 2em;font-size:18px;">TextFormat textFormat </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是文本格式:多信息文本、一般文本或者自动文本。 </p><p style="text-indent: 2em;font-size:18px;">文本格式是下列之一: </p><p style="text-indent: 2em;font-size:18px;">PlainText - 所有的文本,除了新行符,包括空格都被逐字地显示。只要文</p><p style="text-indent: 2em;font-size:18px;">本中出现一个新行符,文本编辑就插入一个硬换行并且开始一个新的段落。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">RichText - 多信息文本表现。可用的样式在默认样式单</p><p style="text-indent: 2em;font-size:18px;">QStyleSheet::defaultSheet()中定义。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">AutoText - 这是默认值。文本编辑会自动探测哪一个表现样式更好,</p><p style="text-indent: 2em;font-size:18px;">PlainText或RichText这个是通过使用QStyleSheet::mightBeRichText()函数</p><p style="text-indent: 2em;font-size:18px;">完成的。 </p><p style="text-indent: 2em;font-size:18px;"> </p><p style="text-indent: 2em;font-size:18px;">通过setTextFormat()设置属性值并且通过textFormat()来获得属性值。 </p><p style="text-indent: 2em;font-size:18px;">int undoDepth </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是撤销历史的深度。 </p><p style="text-indent: 2em;font-size:18px;">也就是撤销/恢复历史中的最大步数。默认为100。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考undo()和redo()。 </p><p style="text-indent: 2em;font-size:18px;">通过setUndoDepth()设置属性值并且通过undoDepth()来获得属性值。 </p><p style="text-indent: 2em;font-size:18px;">bool undoRedoEnabled </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是撤销/恢复是否生效。 </p><p style="text-indent: 2em;font-size:18px;">默认为真。 </p><p style="text-indent: 2em;font-size:18px;">通过setUndoRedoEnabled()设置属性值并且通过isUndoRedoEnabled()来得到属性</p><p style="text-indent: 2em;font-size:18px;">值。 </p><p style="text-indent: 2em;font-size:18px;">WordWrap wordWrap </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是自动换行模式。 </p><p style="text-indent: 2em;font-size:18px;">默认模式是WidgetWidth,也就是在文本编辑右边缘的单字将被自动换行。在空</p><p style="text-indent: 2em;font-size:18px;">白字符处自动换行,保证整个单字不被分割。如果你想在单字内自动换行,请使</p><p style="text-indent: 2em;font-size:18px;">用setWrapPolicy()。如果你设置自动换行模式为FixedPixelWidth或者</p><p style="text-indent: 2em;font-size:18px;">FixedColumnWidth,你也应该调用setWrapColumnOrWidth()你希望的宽度。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考WordWrap、wrapColumnOrWidth和wrapPolicy。 </p><p style="text-indent: 2em;font-size:18px;">通过setWordWrap()设置属性值并且通过wordWrap()来获得属性值。 </p><p style="text-indent: 2em;font-size:18px;">int wrapColumnOrWidth </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是被自动换行的文本的位置(根据自动换行模式来决定是像素还</p><p style="text-indent: 2em;font-size:18px;">是列)。 </p><p style="text-indent: 2em;font-size:18px;">如果自动换行模式为FixedPixelWidth,那么这个值就是从文本编辑左边界开始需</p><p style="text-indent: 2em;font-size:18px;">要自动换行的象素数量。如果自动换行模式为FixedColumnWidth,那么这个值</p><p style="text-indent: 2em;font-size:18px;">就是从文本编辑左边界开始需要自动换行的列数。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考wordWrap。 </p><p style="text-indent: 2em;font-size:18px;">通过setWrapColumnOrWidth()设置属性值并且通过wrapColumnOrWidth()来获得</p><p style="text-indent: 2em;font-size:18px;">属性值。 </p><p style="text-indent: 2em;font-size:18px;">WrapPolicy wrapPolicy </p><p style="text-indent: 2em;font-size:18px;">这个属性保存的是自动换行策略,在空白符号还是在任何地方。 </p><p style="text-indent: 2em;font-size:18px;">当自动换行模式不是NoWrap的时候,定义文本在哪里自动换行。可以选择的是</p><p style="text-indent: 2em;font-size:18px;">AtWhiteSpace(默认)和Anywhere。 </p><p style="text-indent: 2em;font-size:18px;">也可以参考wordWrap。 </p><p style="text-indent: 2em;font-size:18px;">通过setWrapPolicy()设置属性值并且通过wrapPolicy()来获得属性值。 </p><p style="text-indent: 2em;font-size:18px;"> </p></div><br><p><h2></h2></p> <!-- 附件 --> <p class="tag"> 本文标签: <a style="margin-right: 10px" href="/tag/748.html" target="_blank">文本</a> <a style="margin-right: 10px" href="/tag/430871.html" target="_blank">文本编辑</a> <a style="margin-right: 10px" href="/tag/185.html" target="_blank">选择</a> <a style="margin-right: 10px" href="/tag/701.html" target="_blank">返回</a> <a style="margin-right: 10px" href="/tag/567.html" target="_blank">光标</a> </p> <div class="roclinux-cn copyright"> <blockquote> <p> 版权声明:本文标题:强大的QTextEdit功能 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:<a href="http://roclinux.cn/b/1713605805a642992.html">http://roclinux.cn/b/1713605805a642992.html</a>, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。 </p> </blockquote> </div> </div> <div class="roclinux-cn block-wrap single-relative"> <h2 class="block-title"> 更多相关文章 </h2> <div class="roclinux-cn post-list"> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/p/1735218429a1641959.html" title="凝思LINU 系统环境搭建手册">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="凝思LINU 系统环境搭建手册">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/p" target="_blank">技术日记</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/p/1735218429a1641959.html" class="post-item-title" title="凝思LINU 系统环境搭建手册"> <h3>凝思LINU 系统环境搭建手册</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/p" target="_blank">技术日记</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">年月日发(作者:都市彩票中奖类完结小说)凝思系统环境搭建手册版本历史版本状态.作者计勇参与者周淑雄起止日期--新编备注凝思操作系统目次引言...................................................</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/p/1735281735a1642487.html" title="电脑系统语言设置方法">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="电脑系统语言设置方法">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/p" target="_blank">技术日记</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/p/1735281735a1642487.html" class="post-item-title" title="电脑系统语言设置方法"> <h3>电脑系统语言设置方法</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/p" target="_blank">技术日记</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">年月日发(作者:教程从入门到精通集)电脑系统语言设置方法在电脑使用中,语言设置是十分重要的。正确设置电脑系统语言可以帮助用户更好地理解和使用操作界面,提高工作效率和使用体验。本文将介绍电脑系统语言设置的方法,帮助读者轻松应对语言切换的问题。</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/p/1735313783a1646746.html" title="elementui upload on-change 触发条件 -回复">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="elementui upload on-change 触发条件 -回复">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/p" target="_blank">技术日记</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/p/1735313783a1646746.html" class="post-item-title" title="elementui upload on-change 触发条件 -回复"> <h3>elementui upload on-change 触发条件 -回复</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/p" target="_blank">技术日记</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">年月日发(作者:搭建个人网盘)-触发条件-回复是一款基于的前端框架,它提供了丰富的组件和功能,方便开发者快速搭建各种类型的应用程序。其中,(上传)组件是中常用的组件之一,用于方便地实现文件上传功能。在使用组件时,我们可以通过设置-事件来触发</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/p/1735331577a1649230.html" title="ios deb安装方法">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="ios deb安装方法">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/p" target="_blank">技术日记</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/p/1735331577a1649230.html" class="post-item-title" title="ios deb安装方法"> <h3>ios deb安装方法</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/p" target="_blank">技术日记</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">年月日发(作者:滚动条怎么使用)最常见的安装方法,我就介绍以下这种。准备工作:、我不用说吧,越狱的都认识、一般插件的都是在-管理-软件包里的、软件源就像是下载地址,供一般插件的连接方式、手机上要有这个插件,现在已经更新改名为(自己百度是什么</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/p/1735530984a1673938.html" title="Bio-Rad Imaging System ChemiDoc MP 快速操作指南说明书">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="Bio-Rad Imaging System ChemiDoc MP 快速操作指南说明书">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/p" target="_blank">技术日记</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/p/1735530984a1673938.html" class="post-item-title" title="Bio-Rad Imaging System ChemiDoc MP 快速操作指南说明书"> <h3>Bio-Rad Imaging System ChemiDoc MP 快速操作指南说明书</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/p" target="_blank">技术日记</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">年月日发(作者:表单)-快速操作指南()左行菜单栏中“”选择相应的实验程序:根据实验需求,选择应用方法:如果做核酸成像,则在“”中选择相应染料;如果做蛋白胶成像,则在“”中选择相应染料;如果做印迹膜成像,则在“”中选择相应染料,其中,化学发</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/p/1735549008a1675717.html" title="Oracle如何卸载 绝对教你把该软件卸载干净">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="Oracle如何卸载 绝对教你把该软件卸载干净">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/p" target="_blank">技术日记</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/p/1735549008a1675717.html" class="post-item-title" title="Oracle如何卸载 绝对教你把该软件卸载干净"> <h3>Oracle如何卸载 绝对教你把该软件卸载干净</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/p" target="_blank">技术日记</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">年月日发(作者:新手教程下载):如何卸载软件环境:、、安装路径为::实现方法:、开始-设置-控制面板-管理工具-服务停止所有服务;、开始-程序-–_-卸装所有产品,但本身不能被删除;、运行(进入注册表),选择__,按键删除这个入口;、运行,</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/p/1735549516a1675788.html" title="aix oracle11 grid安装,卸载">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="aix oracle11 grid安装,卸载">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/p" target="_blank">技术日记</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/p/1735549516a1675788.html" class="post-item-title" title="aix oracle11 grid安装,卸载"> <h3>aix oracle11 grid安装,卸载</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/p" target="_blank">技术日记</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">年月日发(作者:线性拟合函数)数据版软件安装,安装所需要的操作系统环境包,,(.):••••.("--"),.("--),-.("--"),-.("--"),-:•••••••••...............:•••••••••.....</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/p/1735560315a1676950.html" title="用python学数学中文pdf">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="用python学数学中文pdf">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/p" target="_blank">技术日记</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/p/1735560315a1676950.html" class="post-item-title" title="用python学数学中文pdf"> <h3>用python学数学中文pdf</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/p" target="_blank">技术日记</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">年月日发(作者:里属性)用学数学中文您可以使用中的一些库来处理和阅读文件,比如或。这些库可以帮助您提取文本内容并进行相关处理。首先,您需要安装所需的库。可以使用以下命令来安装:然后,您可以使用以下代码来提取文件中的文本内容:#打开文件(&#</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/p/1735568619a1677022.html" title="createnode函数">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="createnode函数">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/p" target="_blank">技术日记</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/p/1735568619a1677022.html" class="post-item-title" title="createnode函数"> <h3>createnode函数</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/p" target="_blank">技术日记</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">年月日发(作者:面试笔试题程序题)函数一、函数介绍本文将详细介绍一个名为的函数,该函数用于创建一个新的节点,并返回该节点的指针。在数据结构中,节点是构成链表、树等数据结构的基本单元,因此创建节点是一项非常常见的操作。二、函数原型以下是函数的</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/p/1735569429a1677030.html" title="return;c语言">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="return;c语言">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/p" target="_blank">技术日记</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/p/1735569429a1677030.html" class="post-item-title" title="return;c语言"> <h3>return;c语言</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/p" target="_blank">技术日记</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">年月日发(作者:年二建报名时间和条件);语言在语言中,语句是非常重要的一种语句。它用于从函数中返回一个值,并结束函数的执行。语句的一般形式是:;在语言中,语句有以下几个特点:.返回值:语句可以返回一个值给调用函数。这个值可以是任何语言的数据</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/p/1735615846a1680959.html" title="华为手机里的相册照片删除了怎么找回?">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="华为手机里的相册照片删除了怎么找回?">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/p" target="_blank">技术日记</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/p/1735615846a1680959.html" class="post-item-title" title="华为手机里的相册照片删除了怎么找回?"> <h3>华为手机里的相册照片删除了怎么找回?</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/p" target="_blank">技术日记</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">年月日发(作者:)华为手机里的相册照片删除了怎么找回?华为手机照片不小心删除了怎么找回?有些拍照达人,同样的地点,同样的姿势,都要拍上几十张,然后再慢慢整理手机中的照片,对残次品进行删除。但是,由于所有的照片都很相似,很容易删错照片。其实,</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/p/1735621212a1681719.html" title="如何进行华为手机的数据备份和恢复">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="如何进行华为手机的数据备份和恢复">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/p" target="_blank">技术日记</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/p/1735621212a1681719.html" class="post-item-title" title="如何进行华为手机的数据备份和恢复"> <h3>如何进行华为手机的数据备份和恢复</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/p" target="_blank">技术日记</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">年月日发(作者:啥意思)如何进行华为手机的数据备份和恢复在日常使用中,我们的手机中存储了大量的重要数据,如联系人、短信、照片、视频等。为了避免数据丢失或者在更换手机时能够方便地恢复数据,进行手机数据备份和恢复是非常必要的。本文将介绍如何进行</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/p/1735699906a1682879.html" title="Word2003 模拟练习">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="Word2003 模拟练习">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/p" target="_blank">技术日记</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/p/1735699906a1682879.html" class="post-item-title" title="Word2003 模拟练习"> <h3>Word2003 模拟练习</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/p" target="_blank">技术日记</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">年月日发(作者:)专业技术人员人事部门计算机考试模拟练习及答案、新建一文档,将剪贴板上的内容粘贴到该文档中。答:单击“工具栏”的“新建”按钮,在新建的空白文档中单击鼠标右键,选择“粘贴”命令。、保存当前文档的版本(不输入版本的备注),并设置</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/p/1735871464a1699073.html" title="计算机应用基础知识点">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="计算机应用基础知识点">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/p" target="_blank">技术日记</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/p/1735871464a1699073.html" class="post-item-title" title="计算机应用基础知识点"> <h3>计算机应用基础知识点</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/p" target="_blank">技术日记</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">年月日发(作者:)计算机应用基础知识点计算机基础知识计算机是一种能够自动进行数据处理的电子设备。它的发展历程可以分为四个阶段,分别是电子管、晶体管、中、小规模的集成电路和大规模、超大规模的集成电路。计算机的应用领域非常广泛,包括科学计算、数</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/b/1736251307a1725995.html" title="Linux系统常用文本处理命令介绍">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="Linux系统常用文本处理命令介绍">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/b" target="_blank">编程</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/b/1736251307a1725995.html" class="post-item-title" title="Linux系统常用文本处理命令介绍"> <h3>Linux系统常用文本处理命令介绍</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/b" target="_blank">编程</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">5月前</div> </div> <p class="post-item-summary">在Linux系统中&#xff0c;cat, vim, grep&#xff0c;find&#xff0c;sed&#xff0c;awk&#xff0c;head&#xff0c;less&#x</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/b/1737318369a1816623.html" title="如何识别来自 ChatGPT 的文本输出">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="如何识别来自 ChatGPT 的文本输出">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/b" target="_blank">编程</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/b/1737318369a1816623.html" class="post-item-title" title="如何识别来自 ChatGPT 的文本输出"> <h3>如何识别来自 ChatGPT 的文本输出</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/b" target="_blank">编程</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">4月前</div> </div> <p class="post-item-summary">既然 ChatGPT 生成的内容需要和人类生成的内容有明确的区分&#xff0c;那如果我们拿到一个几经转手的、缺失标记的内容片段&#xff0c;有没有办法来判断他的作者&#xff0c;到底属于 ChatGPT&</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/b/1737947473a1900095.html" title="运维系列&amp;AI系列&amp;Lenovo-G双系统系列(前传-装之前搜索的):Ubuntu开机黑屏,只有白色光标在左上角闪烁的解决办法">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="运维系列&amp;AI系列&amp;Lenovo-G双系统系列(前传-装之前搜索的):Ubuntu开机黑屏,只有白色光标在左上角闪烁的解决办法">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/b" target="_blank">编程</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/b/1737947473a1900095.html" class="post-item-title" title="运维系列&amp;AI系列&amp;Lenovo-G双系统系列(前传-装之前搜索的):Ubuntu开机黑屏,只有白色光标在左上角闪烁的解决办法"> <h3>运维系列&amp;AI系列&amp;Lenovo-G双系统系列(前传-装之前搜索的):Ubuntu开机黑屏,只有白色光标在左上角闪烁的解决办法</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/b" target="_blank">编程</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">4月前</div> </div> <p class="post-item-summary">Ubuntu开机黑屏&#xff0c;只有白色光标在左上角闪烁的解决办法 Ubantu开机黑屏&#xff0c;只有白色光标在左上角闪烁的解决办法底下评论问题一&#xff1a;所以重启电脑&#xff0c;进入gr</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/b/1737971361a1903476.html" title="在sql界面的鼠标光标不见了怎么办?">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="在sql界面的鼠标光标不见了怎么办?">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/b" target="_blank">编程</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/b/1737971361a1903476.html" class="post-item-title" title="在sql界面的鼠标光标不见了怎么办?"> <h3>在sql界面的鼠标光标不见了怎么办?</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/b" target="_blank">编程</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">4月前</div> </div> <p class="post-item-summary">在mysql界面内按ctrlm 即 选中右击界面空白处编辑中的标记。 &#xff08;怕自己忘记了过来记一下&#xff09;</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/b/1741177150a2269385.html" title="电脑光标出现黑色方块怎么办?(超详细解答)">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="电脑光标出现黑色方块怎么办?(超详细解答)">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/b" target="_blank">编程</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/b/1741177150a2269385.html" class="post-item-title" title="电脑光标出现黑色方块怎么办?(超详细解答)"> <h3>电脑光标出现黑色方块怎么办?(超详细解答)</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/b" target="_blank">编程</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">3月前</div> </div> <p class="post-item-summary">电脑光标出现黑色方块怎么办&#xff1f;) 在执行数据库脚本的时候不小心按到了键盘哪里&#xff0c;就出现了如图所示的黑色方块&#xff0c;写一个删一个&#xff0c;闹心的很。 。 。 。 。 。</p> </div> <div class="roclinux-cn post-item"> <!--<div class="roclinux-cn post-item-cover">--> <!-- <a class="post-item-img" href="/b/1743665005a2459100.html" title="ChatGPT 使用全攻略:解锁高效提问与进阶文本生成技巧!">--> <!-- <img class="hover-scale" src="/view/img/nopic.png" alt="ChatGPT 使用全攻略:解锁高效提问与进阶文本生成技巧!">--> <!-- </a>--> <!-- <ul class="post-categories">--> <!-- <li><a href="/b" target="_blank">编程</a></li>--> <!-- </ul>--> <!--</div>--> <a href="/b/1743665005a2459100.html" class="post-item-title" title="ChatGPT 使用全攻略:解锁高效提问与进阶文本生成技巧!"> <h3>ChatGPT 使用全攻略:解锁高效提问与进阶文本生成技巧!</h3> <div class="roclinux-cn post-item-cover" style="display:inline-grid"> <ul class="post-categories"> <li> <a href="/b" target="_blank">编程</a> </li> </ul> </div> </a> <div class="roclinux-cn post-item-footer"> <div class="roclinux-cn tag-wrap"> </div> <div class="roclinux-cn post-item-meta">2月前</div> </div> <p class="post-item-summary">文章目录 零、前言一、ChatGPT 的用法指南&#xff1a;提问与文本生成的进阶指令1.1、操作指导1.2、基础用法&#xff1a;如何提问1.3、基础指令&#xff1a;生成文本1.4、 12 种基础指令提示1</p> </div> </div> </div> <div class="roclinux-cn comments"> <div class="roclinux-cn postcomm block-wrap" id="divCommentPost"> <h2 class="block-title"> 发表评论 </h2> <form id="saypl" target="_self" method="post" name="saypl" action="/comment/create/642992.html?safe_token=8zrJvB_2FxR_2FeBsONoqHgTtmg_2B5u6mDmNyee7FMLR4531rWM133Vx2EaE9eHTUzTi5mM7UHTcR4O7C65bZL7kTSg_3D_3D"> <input type="hidden" name="doctype" value="1" /> <input type="hidden" name="quotepid" value="0" /> <div class="roclinux-cn comment-box comment-textarea"> <textarea name="message" id="txaArticle" class="text" cols="50" rows="4" tabindex="5" placeholder="评论内容"></textarea> </div> <input name="sumbit" type="submit" tabindex="6" value="发表评论" class="sub"> </form> </div> </div> <div class="sn-comments"> <div class="sn-comments__title">全部评论 0</div> <div class="sn-comments__body"> <div class="sn-empty">暂无评论</div> </div> </div> </div> </div> <div class="aside"> <div class="block-wrap" id="side-top-dxt"> <h2 class="block-title">推荐文章<i class="mcico mico-right"></i></h2> <div class="mcdas"> <a href="/p/1744033307a2521904.html" title="javascript not loading in HTML file - nodejs + http - Stack Overflow" class="photo-item" target="_blank" style="background:#364cc6"> <!--<img src="/view/img/nopic.png" alt="javascript not loading in HTML file - nodejs + http - Stack Overflow" class="photo-item-img hover-scale" />--> <div class="photo-item-inner"> <h3 class="photo-item-title"> javascript not loading in HTML file - nodejs + http - Stack Overflow </h3> </div> </a> <a href="/p/1744056113a2525879.html" title="loops - JavaScript - prevent push of certain element into an array if condition is true - Stack Overflow" class="photo-item" target="_blank" style="background:#364cc6"> <!--<img src="/view/img/nopic.png" alt="loops - JavaScript - prevent push of certain element into an array if condition is true - Stack Overflow" class="photo-item-img hover-scale" />--> <div class="photo-item-inner"> <h3 class="photo-item-title"> loops - JavaScript - prevent push of certain element into an array if condition is true - Stack Overflow </h3> </div> </a> <a href="/b/1747541756a2541650.html" title="ChatGPT与Claude AI:两大生成式对话模型的比较分析" class="photo-item" target="_blank" style="background:#364cc6"> <!--<img src="/view/img/nopic.png" alt="ChatGPT与Claude AI:两大生成式对话模型的比较分析" class="photo-item-img hover-scale" />--> <div class="photo-item-inner"> <h3 class="photo-item-title"> ChatGPT与Claude AI:两大生成式对话模型的比较分析 </h3> </div> </a> <a href="/b/1748232285a2634179.html" title="Win10 ssh远程关机" class="photo-item" target="_blank" style="background:#364cc6"> <!--<img src="/view/img/nopic.png" alt="Win10 ssh远程关机" class="photo-item-img hover-scale" />--> <div class="photo-item-inner"> <h3 class="photo-item-title"> Win10 ssh远程关机 </h3> </div> </a> <a href="/b/1748330307a2646969.html" title="如何配置光猫+路由器实现外网IP访问内部网络?" class="photo-item" target="_blank" style="background:#364cc6"> <!--<img src="/view/img/nopic.png" alt="如何配置光猫+路由器实现外网IP访问内部网络?" class="photo-item-img hover-scale" />--> <div class="photo-item-inner"> <h3 class="photo-item-title"> 如何配置光猫+路由器实现外网IP访问内部网络? </h3> </div> </a> </div> </div> <div class="block-wrap" id="side-hot-view-item"> <h2 class="block-title">热门文章<i class="mcico mico-right"></i> </h2> <ul> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/p/1744021889a2519943.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="javascript - &quot;How to &#39;Reload the only Partial View&#39; part after submitting the form with HTML Helper in " class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="javascript - &quot;How to &#39;Reload the only Partial View&#39; part after submitting the form with HTML Helper in " target="_blank" href="/p/1744021889a2519943.html"> <h3>javascript - &quot;How to &#39;Reload the only Partial View&#39; part after submitting the form with HTML Helper in </h3> </a> <span class="post-date">2月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/p/1744024229a2520347.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="javascript - Is this JS Unique ID Generator Unreliable? (Getting collisions) - Stack Overflow" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="javascript - Is this JS Unique ID Generator Unreliable? (Getting collisions) - Stack Overflow" target="_blank" href="/p/1744024229a2520347.html"> <h3>javascript - Is this JS Unique ID Generator Unreliable? (Getting collisions) - Stack Overflow</h3> </a> <span class="post-date">2月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/p/1744032206a2521711.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="javascript - Loading dynamic form from JSON using angular 6 - Stack Overflow" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="javascript - Loading dynamic form from JSON using angular 6 - Stack Overflow" target="_blank" href="/p/1744032206a2521711.html"> <h3>javascript - Loading dynamic form from JSON using angular 6 - Stack Overflow</h3> </a> <span class="post-date">2月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/p/1744036789a2522514.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="javascript - Programmatically display keyboard in UIWebView - Stack Overflow" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="javascript - Programmatically display keyboard in UIWebView - Stack Overflow" target="_blank" href="/p/1744036789a2522514.html"> <h3>javascript - Programmatically display keyboard in UIWebView - Stack Overflow</h3> </a> <span class="post-date">2月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/p/1744049135a2524687.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="javascript - Rendering MathJax updated with .html() - Stack Overflow" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="javascript - Rendering MathJax updated with .html() - Stack Overflow" target="_blank" href="/p/1744049135a2524687.html"> <h3>javascript - Rendering MathJax updated with .html() - Stack Overflow</h3> </a> <span class="post-date">2月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/p/1744059113a2526393.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="CVE-2025-24813- is applicable for Spring boot Embedded tomcat - Stack Overflow" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="CVE-2025-24813- is applicable for Spring boot Embedded tomcat - Stack Overflow" target="_blank" href="/p/1744059113a2526393.html"> <h3>CVE-2025-24813- is applicable for Spring boot Embedded tomcat - Stack Overflow</h3> </a> <span class="post-date">2月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/p/1744077099a2529552.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="javascript - Popup window always on top - Stack Overflow" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="javascript - Popup window always on top - Stack Overflow" target="_blank" href="/p/1744077099a2529552.html"> <h3>javascript - Popup window always on top - Stack Overflow</h3> </a> <span class="post-date">2月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/p/1744085605a2531065.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="google cloud platform - How to pass {{job.trigger.time.iso_date}} - 1 day as a Databricks pipeline parameter? - Stack Overflow" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="google cloud platform - How to pass {{job.trigger.time.iso_date}} - 1 day as a Databricks pipeline parameter? - Stack Overflow" target="_blank" href="/p/1744085605a2531065.html"> <h3>google cloud platform - How to pass {{job.trigger.time.iso_date}} - 1 day as a Databricks pipeline parameter? - Stack Overflow</h3> </a> <span class="post-date">2月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/b/1747557111a2544220.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="虚拟机安装win7后VMware Tools灰色无法安装" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="虚拟机安装win7后VMware Tools灰色无法安装" target="_blank" href="/b/1747557111a2544220.html"> <h3>虚拟机安装win7后VMware Tools灰色无法安装</h3> </a> <span class="post-date">21天前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/b/1748344173a2648706.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="如何打开Win7系统的"NFS服务"功能方法" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="如何打开Win7系统的"NFS服务"功能方法" target="_blank" href="/b/1748344173a2648706.html"> <h3>如何打开Win7系统的"NFS服务"功能方法</h3> </a> <span class="post-date">11天前</span> </div> </li> </ul> </div> <div class="block-wrap" id="side-new-view-item"> <h2 class="block-title">最新文章<i class="mcico mico-right"></i> </h2> <ul> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/p/1744100356a2533471.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="javascript - How do I toggle the readonly attribute of all child element with jquery - Stack Overflow" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="javascript - How do I toggle the readonly attribute of all child element with jquery - Stack Overflow" target="_blank" href="/p/1744100356a2533471.html"> <h3>javascript - How do I toggle the readonly attribute of all child element with jquery - Stack Overflow</h3> </a> <span class="post-date">2月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/p/1744100331a2533470.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="javascript - Might it be possible to block an entire US state from accessing my site, using PHP? - Stack Overflow" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="javascript - Might it be possible to block an entire US state from accessing my site, using PHP? - Stack Overflow" target="_blank" href="/p/1744100331a2533470.html"> <h3>javascript - Might it be possible to block an entire US state from accessing my site, using PHP? - Stack Overflow</h3> </a> <span class="post-date">2月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/p/1744100330a2533469.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="c++ - Is dereferencing std::span::end always undefined? - Stack Overflow" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="c++ - Is dereferencing std::span::end always undefined? - Stack Overflow" target="_blank" href="/p/1744100330a2533469.html"> <h3>c++ - Is dereferencing std::span::end always undefined? - Stack Overflow</h3> </a> <span class="post-date">2月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/p/1744100302a2533468.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="javascript - Delay function execution if it has been called recently - Stack Overflow" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="javascript - Delay function execution if it has been called recently - Stack Overflow" target="_blank" href="/p/1744100302a2533468.html"> <h3>javascript - Delay function execution if it has been called recently - Stack Overflow</h3> </a> <span class="post-date">2月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/p/1744100275a2533467.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="javascript - Google Maps Autocomplete List - Stack Overflow" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="javascript - Google Maps Autocomplete List - Stack Overflow" target="_blank" href="/p/1744100275a2533467.html"> <h3>javascript - Google Maps Autocomplete List - Stack Overflow</h3> </a> <span class="post-date">2月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/b/1749343656a2704355.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="Windows 安装和连接使用 PgSql数据库" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="Windows 安装和连接使用 PgSql数据库" target="_blank" href="/b/1749343656a2704355.html"> <h3>Windows 安装和连接使用 PgSql数据库</h3> </a> <span class="post-date">1小时前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/b/1749343641a2704353.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="cmd打开计算机D盘,Win7利用cmd命令进入d盘文件夹的操作方法" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="cmd打开计算机D盘,Win7利用cmd命令进入d盘文件夹的操作方法" target="_blank" href="/b/1749343641a2704353.html"> <h3>cmd打开计算机D盘,Win7利用cmd命令进入d盘文件夹的操作方法</h3> </a> <span class="post-date">1小时前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/b/1749343616a2704350.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="如何在VMare中制作Windows Embedded Standard 7 (WES 7)" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="如何在VMare中制作Windows Embedded Standard 7 (WES 7)" target="_blank" href="/b/1749343616a2704350.html"> <h3>如何在VMare中制作Windows Embedded Standard 7 (WES 7)</h3> </a> <span class="post-date">1小时前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/b/1749342928a2704263.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="开机、注销后自动登录Windows" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="开机、注销后自动登录Windows" target="_blank" href="/b/1749342928a2704263.html"> <h3>开机、注销后自动登录Windows</h3> </a> <span class="post-date">1小时前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/b/1749251520a2692895.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="【教程】Python Flask快速学习" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="【教程】Python Flask快速学习" target="_blank" href="/b/1749251520a2692895.html"> <h3>【教程】Python Flask快速学习</h3> </a> <span class="post-date">1天前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/lvyou/1736247036a1725023.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="Exploring the Finest Accommodations: A Comprehensive Guide to Ruston LA Hotels" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="Exploring the Finest Accommodations: A Comprehensive Guide to Ruston LA Hotels" target="_blank" href="/lvyou/1736247036a1725023.html"> <h3>Exploring the Finest Accommodations: A Comprehensive Guide to Ruston LA Hotels</h3> </a> <span class="post-date">5月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/lvyou/1736246824a1724956.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="The Enchanting Experience of ScaliniTella NYC: A Culinary Gem in the Heart of Manhattan" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="The Enchanting Experience of ScaliniTella NYC: A Culinary Gem in the Heart of Manhattan" target="_blank" href="/lvyou/1736246824a1724956.html"> <h3>The Enchanting Experience of ScaliniTella NYC: A Culinary Gem in the Heart of Manhattan</h3> </a> <span class="post-date">5月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/lvyou/1736246607a1724902.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="Exploring the Exquisite Aloft Chicago O'Hare: A Blend of Modern Luxury and Convenience" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="Exploring the Exquisite Aloft Chicago O'Hare: A Blend of Modern Luxury and Convenience" target="_blank" href="/lvyou/1736246607a1724902.html"> <h3>Exploring the Exquisite Aloft Chicago O'Hare: A Blend of Modern Luxury and Convenience</h3> </a> <span class="post-date">5月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/lvyou/1736246384a1724842.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="A Culinary Journey: Discovering the Finest Dining Experiences in Waco, TX" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="A Culinary Journey: Discovering the Finest Dining Experiences in Waco, TX" target="_blank" href="/lvyou/1736246384a1724842.html"> <h3>A Culinary Journey: Discovering the Finest Dining Experiences in Waco, TX</h3> </a> <span class="post-date">5月前</span> </div> </li> <li class="mclas"> <!--<div class="list-img">--> <!-- <a href="/lvyou/1736246169a1724784.html" target="_blank">--> <!-- <img src="/view/img/nopic.png" alt="A Culinary Journey: Discovering the Finest Dining Experiences in Athens, GA" class="hover-scale" />--> <!-- </a>--> <!--</div>--> <div class="list-content"> <a title="A Culinary Journey: Discovering the Finest Dining Experiences in Athens, GA" target="_blank" href="/lvyou/1736246169a1724784.html"> <h3>A Culinary Journey: Discovering the Finest Dining Experiences in Athens, GA</h3> </a> <span class="post-date">5月前</span> </div> </li> </ul> </div> </div> </div> <div class="footer"> CopyRight © 2022 All Rights Reserved. <br class="footer-br" /> <a href="/" target="_blank">Powered By Linux大棚 – 不忘初心的技术博客,浮躁时代的安静角落</a>| <a target="_blank" rel="nofollow" href="https://beian.miit.gov.cn/" style="font-size: 12px;">豫ICP备2022026798号-10</a> </div> <script src="/view/js/xiuno.js?2.3.0"></script> <script src="/view/template/quzhiwa/js/custom.js?2.3.0"></script> <script> $('.cat-tab-wrap li[data-active="fid-4"]').addClass('current-menu-item'); $('.menu-header-container li[data-active="fid-4"]').addClass('current-menu-item'); </script> </body> </html>