To Read Multiple lines on PushButton click.d
I have a Push button that is supposed to display the entire GPL 3.0 on its click. But i dont know how to add multiple lines in a string. Could someone help me out here.
I have previously used the settext for the button slot and added strings. But how do i add the 100's of lines of the License???
What is your intent to put the text in push button ?
"QLabel::text":http://doc.qt.nokia.com/stable/qlabel.html#text-prop has a lot of possibilities
edit: For large documents, use "QTextEdit":http://doc.qt.nokia.com/stable/qtextedit.html in read-only mode instead
Its this entire piece of text i want to put there.http://www.opensource.org/licenses/GPL-3.0 And i already have a text edit box for that. The push button is just supposed to display this huge text in the text edit box when clicked.
The simplest example would be to save the entire "GPL-3.0":http://www.opensource.org/licenses/GPL-3.0 into resource file. When button is clicked, read the file, and put the "plain text":http://doc.qt.nokia.com/stable/qtextedit.html#plainText-prop into QTextEdit