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) :
Qt Code:
  1. QString str;
  2. str = "file1\nfile2\nfile3";
  3. QAction* act = new QAction(this);
  4. act->setText(str);
To copy to clipboard, switch view to plain text mode 

It seems not working.
Where is my error ?
(Running on Windows platform).

BR