skimpax
14th October 2009, 12:54
Hello,
I would like to create a QAction whose text is a multiline text.
My action is in fact used in my Recent Files handling, but not to handle a single file but a batch of files (eg. file1, file2 and file3 in my example below) and I want the user to see these files in the action text.
Something like (note the '\n' character to force new line) :
QString str;
str = "file1\nfile2\nfile3";
QAction* act = new QAction(this);
act->setText(str);
It seems not working.
Where is my error ?
(Running on Windows platform).
BR
I would like to create a QAction whose text is a multiline text.
My action is in fact used in my Recent Files handling, but not to handle a single file but a batch of files (eg. file1, file2 and file3 in my example below) and I want the user to see these files in the action text.
Something like (note the '\n' character to force new line) :
QString str;
str = "file1\nfile2\nfile3";
QAction* act = new QAction(this);
act->setText(str);
It seems not working.
Where is my error ?
(Running on Windows platform).
BR