Push buttons don't allow a multiline text. You can use my QwwRichTextButton class if you want or make your own subclass of the button.
Push buttons don't allow a multiline text. You can use my QwwRichTextButton class if you want or make your own subclass of the button.
Thanks wysota, I will try it.
What I don't understand is, why it's working with
Qt Code:
To copy to clipboard, switch view to plain text mode
Here my Button has two lines ....?
Might be an encoding problem.
Try with:
Qt Code:
To copy to clipboard, switch view to plain text mode
Also, in 4.3.3 QPushButtons support multiline strings, it's just they don't resize to the contents by default. See the attachment.
[QUOTE=marcel;62576]Might be an encoding problem.
Try with:
Qt Code:
To copy to clipboard, switch view to plain text mode
Sorry, still the same ....
I think the "\" in test1 might be escaped. It is the only explanation.
Try :
See what is the value of c.
If it is then you only need to remove one \ from the string.
gboelter (9th February 2008)
[QUOTE=marcel;62579]I think the "\" in test1 might be escaped. It is the only explanation.
Thanks Marcel, you are right, that was the problem.
Guenther
Bookmarks