mirror of
https://github.com/pyapp-kit/superqt.git
synced 2025-09-05 01:00:20 +02:00
* wip * single class implementation * fix init * improve implementation * improve sizeHint * wrap * update docs * rename * remove overloads * review changes * docs and reformat * remove width from _elided text * add tests
13 lines
340 B
Python
13 lines
340 B
Python
from superqt import QElidingLabel
|
|
from superqt.qtcompat.QtWidgets import QApplication
|
|
|
|
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.show()
|
|
app.exec_()
|