Howto: enable wordwrap in a label

Post Reply
User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Howto: enable wordwrap in a label

Post by Vadi »

Similarly to how to align text in a label, you can enable word wrapping in them as well, with the following code:

Code: Select all

qproperty-wordWrap: true;
An example using Geyser:
Code: [show] | [select all] lua
mylabel:setStyleSheet([[
  qproperty-wordWrap: true;
]])

Post Reply