LineEdit

class cgp_generic_utils.qt.LineEdit(**kwargs)

Bases: PySide2.QtWidgets.QLineEdit

QLineEdit with custom functionalities

setBackground(color=None, pattern='solid')

set the background color of the lineEdit using the specified color and pattern

Parameters:
  • color (list[int, float]) – color to set - [R, V, B, A] - [0.8, 0.8, 0.8, 1] is default
  • pattern (str) – pattern of the background
setForeground(color=None)

set the foreground color of the lineEdit using the specified color and pattern

Parameters:color (list[int, float]) – color to set - [R, V, B, A] - [0.8, 0.8, 0.8, 1] is default
setFrameColor(color=None)

set the frame color of the lineEdit using the specified color

Parameters:color (list[int, float]) – color to set - [R, V, B, A] - [0.8, 0.8, 0.8, 1] is default