Files
superqt/docs/widgets/qelidinglabel.md
Talley Lambert 97bb814451 Docs (#124)
* wip

* wip

* more wip

* progress

* more docs

* more changes

* add link

* more examples and improvements

* fix check-manifest

* sort members

* remove autogen images

* remove _images

* add font docs

* add link to utils
2022-10-05 08:59:27 -04:00

564 B

QElidingLabel

QLabel variant that will elide text (i.e. add an ellipsis) if it is too long to fit in the available space.

from qtpy.QtWidgets import QApplication

from superqt import QElidingLabel

app = QApplication([])

widget = QElidingLabel(
    "a skj skjfskfj sdlf sdfl sdlfk jsdf sdlkf jdsf dslfksdl sdlfk sdf sdl "
    "fjsdlf kjsdlfk laskdfsal as lsdfjdsl kfjdslf asfd dslkjfldskf sdlkfj"
)
widget.setWordWrap(True)
widget.resize(300, 20)
widget.show()

app.exec_()

{{ show_widget(300) }}

{{ show_members('superqt.QElidingLabel') }}