SelectableLabel

Search for usage in LXR

SelectableLabel Class Reference

Properties

var activeFocusOnPress
 
var baseUrl
 
bool canPaste
 
bool canRedo
 
bool canUndo
 
color color
 
real contentHeight
 
real contentWidth
 
var cursorDelegate
 
var cursorPosition
 
var cursorRectangle
 
var cursorSelection
 
var cursorShape
 
var cursorVisible
 
var effectiveHorizontalAlignment
 
var flickable
 
var horizontalAlignment
 
string hoveredLink
 
bool inputMethodComposing
 
var inputMethodHints
 
int length
 
int lineCount
 
var mouseSelectionMode
 
var overwriteMode
 
var persistentSelection
 
var placeholderText
 
var placeholderTextColor
 
string preeditText
 
bool readOnly
 
var renderType
 
var selectByKeyboard
 
bool selectByMouse
 
string selectedText
 
color selectedTextColor
 
color selectionColor
 
int selectionEnd
 
int selectionStart
 
var tabStopDistance
 
string text
 
var textDocument
 
var textFormat
 
var textMargin
 
var verticalAlignment
 
var wrapMode
 

Signals

void clicked ()
 
void editingFinished ()
 
void linkActivated (string link)
 
void linkHovered (string link)
 
void pressAndHold (MouseEvent event)
 
void pressed (MouseEvent event)
 
void released (MouseEvent event)
 

Detailed Description

This is a label which supports text selection.

The label uses TextEdit component, which is wrapped inside a Control component.

Example usage:

Kirigami.SelectableLabel {
text: "Label"
}
See also
https://bugreports.qt.io/browse/QTBUG-14077
Since
org.kde.kirigami 2.20
5.95

Definition at line 30 of file SelectableLabel.qml.

Property Documentation

◆ activeFocusOnPress

var SelectableLabel::activeFocusOnPress
read

Definition at line 134 of file SelectableLabel.qml.

◆ baseUrl

var SelectableLabel::baseUrl
read

Definition at line 48 of file SelectableLabel.qml.

◆ canPaste

bool SelectableLabel::canPaste
read
Remarks
This property is read-only

Definition at line 61 of file SelectableLabel.qml.

◆ canRedo

bool SelectableLabel::canRedo
read
Remarks
This property is read-only

Definition at line 64 of file SelectableLabel.qml.

◆ canUndo

bool SelectableLabel::canUndo
read
Remarks
This property is read-only

Definition at line 67 of file SelectableLabel.qml.

◆ color

color SelectableLabel::color
read

Definition at line 40 of file SelectableLabel.qml.

◆ contentHeight

real SelectableLabel::contentHeight
read
Remarks
This property is read-only

Definition at line 85 of file SelectableLabel.qml.

◆ contentWidth

real SelectableLabel::contentWidth
read
Remarks
This property is read-only

Definition at line 88 of file SelectableLabel.qml.

◆ cursorDelegate

var SelectableLabel::cursorDelegate
read

Definition at line 136 of file SelectableLabel.qml.

◆ cursorPosition

var SelectableLabel::cursorPosition
read

Definition at line 138 of file SelectableLabel.qml.

◆ cursorRectangle

var SelectableLabel::cursorRectangle
read
Remarks
This property is read-only

Definition at line 100 of file SelectableLabel.qml.

◆ cursorSelection

var SelectableLabel::cursorSelection
read
Remarks
This property is read-only

Definition at line 103 of file SelectableLabel.qml.

◆ cursorShape

var SelectableLabel::cursorShape
read

Definition at line 50 of file SelectableLabel.qml.

◆ cursorVisible

var SelectableLabel::cursorVisible
read

Definition at line 140 of file SelectableLabel.qml.

◆ effectiveHorizontalAlignment

var SelectableLabel::effectiveHorizontalAlignment
read
Remarks
This property is read-only

Definition at line 106 of file SelectableLabel.qml.

◆ flickable

var SelectableLabel::flickable
read

Definition at line 120 of file SelectableLabel.qml.

◆ horizontalAlignment

var SelectableLabel::horizontalAlignment
read

Definition at line 52 of file SelectableLabel.qml.

◆ hoveredLink

string SelectableLabel::hoveredLink
read
Remarks
This property is read-only

Definition at line 91 of file SelectableLabel.qml.

◆ inputMethodComposing

bool SelectableLabel::inputMethodComposing
read
Remarks
This property is read-only

Definition at line 70 of file SelectableLabel.qml.

◆ inputMethodHints

var SelectableLabel::inputMethodHints
read

Definition at line 142 of file SelectableLabel.qml.

◆ length

int SelectableLabel::length
read
Remarks
This property is read-only

Definition at line 73 of file SelectableLabel.qml.

◆ lineCount

int SelectableLabel::lineCount
read
Remarks
This property is read-only

Definition at line 76 of file SelectableLabel.qml.

◆ mouseSelectionMode

var SelectableLabel::mouseSelectionMode
read

Definition at line 144 of file SelectableLabel.qml.

◆ overwriteMode

var SelectableLabel::overwriteMode
read

Definition at line 146 of file SelectableLabel.qml.

◆ persistentSelection

var SelectableLabel::persistentSelection
read

Definition at line 148 of file SelectableLabel.qml.

◆ placeholderText

var SelectableLabel::placeholderText
read

Definition at line 122 of file SelectableLabel.qml.

◆ placeholderTextColor

var SelectableLabel::placeholderTextColor
read

Definition at line 124 of file SelectableLabel.qml.

◆ preeditText

string SelectableLabel::preeditText
read
Remarks
This property is read-only

Definition at line 94 of file SelectableLabel.qml.

◆ readOnly

bool SelectableLabel::readOnly
read

Definition at line 36 of file SelectableLabel.qml.

◆ renderType

var SelectableLabel::renderType
read

Definition at line 150 of file SelectableLabel.qml.

◆ selectByKeyboard

var SelectableLabel::selectByKeyboard
read

Definition at line 152 of file SelectableLabel.qml.

◆ selectByMouse

bool SelectableLabel::selectByMouse
read

Definition at line 38 of file SelectableLabel.qml.

◆ selectedText

string SelectableLabel::selectedText
read
Remarks
This property is read-only

Definition at line 97 of file SelectableLabel.qml.

◆ selectedTextColor

color SelectableLabel::selectedTextColor
read

Definition at line 42 of file SelectableLabel.qml.

◆ selectionColor

color SelectableLabel::selectionColor
read

Definition at line 44 of file SelectableLabel.qml.

◆ selectionEnd

int SelectableLabel::selectionEnd
read
Remarks
This property is read-only

Definition at line 79 of file SelectableLabel.qml.

◆ selectionStart

int SelectableLabel::selectionStart
read
Remarks
This property is read-only

Definition at line 82 of file SelectableLabel.qml.

◆ tabStopDistance

var SelectableLabel::tabStopDistance
read

Definition at line 154 of file SelectableLabel.qml.

◆ text

string SelectableLabel::text
read

Definition at line 46 of file SelectableLabel.qml.

◆ textDocument

var SelectableLabel::textDocument
read
Remarks
This property is read-only

Definition at line 109 of file SelectableLabel.qml.

◆ textFormat

var SelectableLabel::textFormat
read

Definition at line 54 of file SelectableLabel.qml.

◆ textMargin

var SelectableLabel::textMargin
read

Definition at line 156 of file SelectableLabel.qml.

◆ verticalAlignment

var SelectableLabel::verticalAlignment
read

Definition at line 56 of file SelectableLabel.qml.

◆ wrapMode

var SelectableLabel::wrapMode
read

Definition at line 58 of file SelectableLabel.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:13:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.