Thank you very much for reply.
I tried like this.
Qt Code:
ev.setAccepted(true);To copy to clipboard, switch view to plain text mode
But it is not working. Any other suggestion??
Thank you very much for reply.
I tried like this.
Qt Code:
ev.setAccepted(true);To copy to clipboard, switch view to plain text mode
But it is not working. Any other suggestion??
Cheers,
Phillip
--- Please post the solution you got to solve your problem. It may help others.
You need to call the underlying WinAPI. If you need special things of an operating system you have to use the underlying OS API (Windows => WinAPI, Linux ..., Mac OS ...)
As fatjuicymole has already been written, use:
Qt Code:
#if defined(Q_WS_WIN) SystemParametersInfo(SPI_SETSCREENSAVERRUNNING, TRUE, &bOldState, 0); #endifTo copy to clipboard, switch view to plain text mode
Best Regards
NoRulez
On linux you have to edit the file "/etc/inittab" and change from
toQt Code:
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r nowTo copy to clipboard, switch view to plain text mode
Qt Code:
# ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r nowTo copy to clipboard, switch view to plain text mode
After this you either boot the system or type on the console:
This could also be done with QFile, QRegExp and QProcess
Best Regards
NoRulez
Bookmarks