Hey guys,
I got this error message by trying to use my code under linux.
Qt Code:
// operations... }To copy to clipboard, switch view to plain text mode
Does anyone know a reason for that. I really don't want to change all of code.
thx in advance
Hey guys,
I got this error message by trying to use my code under linux.
Qt Code:
// operations... }To copy to clipboard, switch view to plain text mode
Does anyone know a reason for that. I really don't want to change all of code.
thx in advance
The error message is self explanatory. You cannot copy a QFile (or any other QObject), and the copy constructor has been made private to enforce this. foreach() will be implicitly converting each string in your list to a QFile in a way that tries to invoke the copy constructor, e.g.
Your loop needs to be:Qt Code:
To copy to clipboard, switch view to plain text mode
Qt Code:
// operations... }To copy to clipboard, switch view to plain text mode
Ok nice that works. Thx![]()
Bookmarks