Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

Compatibility Members for QTextEdit

The following members of classQTextEditare part of the Qt compatibility layer. We advise against using them in new code.

Public Types

enumCursorAction { MoveBackward, MoveForward, MoveWordBackward, MoveWordForward, ..., MovePageDown }
enumKeyboardAction { ActionBackspace, ActionDelete, ActionReturn, ActionKill, ActionWordBackspace, ActionWordDelete }

Public Functions

QTextEdit(QWidget * parent, const char * name)
boolbold() const
QColorcolor() const
voiddoKeyboardAction(KeyboardAction action)
QStringfamily() const
boolfind(const QString & exp, bool cs, bool wo)
boolhasSelectedText() const
voidinsert(const QString & text)
boolisModified() const
boolisRedoAvailable() const
boolisUndoAvailable() const
boolitalic() const
voidmoveCursor(CursorAction action, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor)
voidmoveCursor(CursorAction action, bool select)
intpointSize() const
voidredo() const
QStringselectedText() const
voidsetBold(bool b)
voidsetFamily(const QString & family)
voidsetItalic(bool i)
voidsetPointSize(int size)
voidsetTextFormat(Qt::TextFormat f)
voidsetUnderline(bool b)
voidsync()
QStringtext() const
Qt::TextFormattextFormat() const
boolunderline() const
voidundo() const

Public Slots

voidsetColor(const QColor & color)
voidsetModified(bool m = true)
  • 1 public slot inherited fromQWidget

Signals

voidcurrentColorChanged(const QColor & color)
voidcurrentFontChanged(const QFont & font)

Member Type Documentation

enum QTextEdit::CursorAction

ConstantValue
QTextEdit::MoveBackward0
QTextEdit::MoveForward1
QTextEdit::MoveWordBackward2
QTextEdit::MoveWordForward3
QTextEdit::MoveUp4
QTextEdit::MoveDown5
QTextEdit::MoveLineStart6
QTextEdit::MoveLineEnd7
QTextEdit::MoveHome8
QTextEdit::MoveEnd9
QTextEdit::MovePageUp10
QTextEdit::MovePageDown11

enum QTextEdit::KeyboardAction

ConstantValue
QTextEdit::ActionBackspace0
QTextEdit::ActionDelete1
QTextEdit::ActionReturn2
QTextEdit::ActionKill3
QTextEdit::ActionWordBackspace4
QTextEdit::ActionWordDelete5

Member Function Documentation

QTextEdit::QTextEdit(QWidget * parent, constchar * name)

Use one of the constructors that doesn't take thename argument and then usesetObjectName() instead.

bool QTextEdit::bold() const

UsefontWeight() >=QFont::Bold instead.

See alsosetBold().

QColor QTextEdit::color() const

UsetextColor() instead.

See alsosetColor().

[signal]void QTextEdit::currentColorChanged(constQColor & color)

UsecurrentCharFormatChanged() instead.

[signal]void QTextEdit::currentFontChanged(constQFont & font)

UsecurrentCharFormatChanged() instead.

void QTextEdit::doKeyboardAction(KeyboardAction action)

Executes keyboard actionaction.

Use theQTextCursor class instead.

See alsotextCursor().

QString QTextEdit::family() const

UsefontFamily() instead.

See alsosetFamily().

bool QTextEdit::find(constQString & exp,bool cs,bool wo)

Use thefind() overload that takes aQTextDocument::FindFlags argument.

bool QTextEdit::hasSelectedText() const

UsetextCursor().hasSelection() instead.

void QTextEdit::insert(constQString & text)

UseinsertPlainText() instead.

bool QTextEdit::isModified() const

Usedocument()->isModified() instead.

bool QTextEdit::isRedoAvailable() const

Usedocument()->isRedoAvailable() instead.

bool QTextEdit::isUndoAvailable() const

Usedocument()->isUndoAvailable() instead.

bool QTextEdit::italic() const

UsefontItalic() instead.

See alsosetItalic().

void QTextEdit::moveCursor(CursorAction action,QTextCursor::MoveMode mode = QTextCursor::MoveAnchor)

Use theQTextCursor class instead.

void QTextEdit::moveCursor(CursorAction action,bool select)

Use theQTextCursor class instead.

int QTextEdit::pointSize() const

Use int(fontPointSize()+0.5) instead.

See alsosetPointSize().

void QTextEdit::redo() const

This is an overloaded function.

Use the non-const overload instead.

QString QTextEdit::selectedText() const

UsetextCursor().selectedText() instead.

void QTextEdit::setBold(bool b)

UsesetFontWeight() instead.

See alsobold().

[slot]void QTextEdit::setColor(constQColor & color)

UsesetTextColor() instead.

See alsocolor().

void QTextEdit::setFamily(constQString & family)

UsesetFontFamily() instead.

See alsofamily().

void QTextEdit::setItalic(bool i)

UsesetFontItalic() instead.

See alsoitalic().

[slot]void QTextEdit::setModified(bool m = true)

Use document->setModified() instead.

See alsoisModified().

void QTextEdit::setPointSize(int size)

UsesetFontPointSize() instead.

See alsopointSize().

void QTextEdit::setTextFormat(Qt::TextFormat f)

Sets the text format to formatf.

See alsotextFormat().

void QTextEdit::setUnderline(bool b)

UsesetFontUnderline() instead.

See alsounderline().

void QTextEdit::sync()

Does nothing.

QString QTextEdit::text() const

Returns all the text in the text edit as plain text.

See alsosetText().

Qt::TextFormat QTextEdit::textFormat() const

Returns the text format.

See alsosetTextFormat().

bool QTextEdit::underline() const

UsefontUnderline() instead.

See alsosetUnderline().

void QTextEdit::undo() const

This is an overloaded function.

Use the non-const overload instead.

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


[8]ページ先頭

©2009-2025 Movatter.jp