LineEdit Class Reference
from PyKDE4.plasma import *
Inherits: QGraphicsProxyWidget → QGraphicsWidget → QObject
Namespace: Plasma
Detailed Description
LineEdit plasma/widgets/lineedit.h <Plasma/Widgets/LineEdit>
Provides a plasma-themed KLineEdit.
Method Documentation
- Signal syntax:
QObject.connect(source, SIGNAL("editingFinished()"), target_slot)
bool isClearButtonShown |
( |
|
self ) |
|
- Returns:
- true if the clear button is set to be shown
- Since:
- 4.3
- Returns:
- the native widget wrapped by this LineEdit
- Signal syntax:
QObject.connect(source, SIGNAL("returnPressed()"), target_slot)
setClearButtonShown |
( |
self, |
|
|
|
bool |
show |
|
) |
|
|
|
Shows a button to clear the text
- Since:
- 4.3
setStyleSheet |
( |
self, |
|
|
|
QString |
stylesheet |
|
) |
|
|
|
Sets the stylesheet used to control the visual display of this LineEdit
@arg stylesheet a CSS string
Sets the display text for this LineEdit
@arg text the text to display; should be translated.
- Returns:
- the stylesheet currently used with this widget
- Returns:
- the display text
- Signal syntax:
QObject.connect(source, SIGNAL("textEdited(const QString&)"), target_slot)