Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
4.7.4, 5.3.1
-
None
Description
I have large application which initialized COM with multithreaded appartment model. In this case the clipboard operations (both programmatically and from widgets) doesn't work in qt.
I have made a simple example to illustrate the problem based on example for QTBUG-7689. It outputs following errors:
Qt: Could not initialize OLE (error 80010106)
QClipboard::setMimeData: Failed to set data on clipboard ()
I understand that Qt cannot initialize OLE properly but I believe that Qt have to use native WinAPI to work with clipboard in such case. I think it may be done for plain text only because it will be enough in the most cases.
So my request is to add support to insert plain text into Windows Clipboard using WinAPI in the case when Qt fails to initialize OLE.
Attachments
Issue Links
- relates to
-
QTBUG-38398 Copying to clipboard fails with CO_E_NOTINITIALIZED error when linked with C++/CLR library
- Closed
-
QTBUG-27097 Intermittent clipboard mimedata copy failures on Windows
- Closed
-
QTBUG-43532 QClipboard: add error code returning to functions that may fail
- Reported