[Interest] QClipboard : wasm/browser restriction ?
Nicholas Yue
yue.nicholas at gmail.com
Mon May 3 01:02:18 CEST 2021
Hi,
I wish to pass some text back to the user via something like this
void CMEForm::doCopy() {
std::cout << "doCopy() called" << std::endl;
QClipboard* qclip = QApplication::clipboard();
qclip->setText("Hello, this is a long text generated from clipboard");
}
This works for compiled applications as an *.exe but I notice that it does
not work when I build it as a WASM package.
I believe this is likely due to security/sandbox reasons.
Any recommendation of possible solution for the wasm use case ?
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210502/47469907/attachment.html>
More information about the Interest
mailing list