Date: Sat, 28 Dec 2019 03:32:25 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 242932] x11-toolkits/qt5-gui: QClipboard sometimes fails to paste the image Message-ID: <bug-242932-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242932 Bug ID: 242932 Summary: x11-toolkits/qt5-gui: QClipboard sometimes fails to paste the image Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: kde@FreeBSD.org Reporter: yuri@freebsd.org Assignee: kde@FreeBSD.org Flags: maintainer-feedback?(kde@FreeBSD.org) Created attachment 210273 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D210273&action= =3Dedit testcase.shar QClipboard sometimes fails to paste the image that is present in the clipbo= ard. How to reproduce: 1. Compile the executable 'test' from the attached shar by running 'sh mk.s= h' 2. In the Chromium browser go to https://wooda.co/wp-content/uploads/2018/02/Log-Type-E-Designer-Wooden-Chai= r-1.png It should display the picture of a wooden chair. With right mouse button op= en the menu, and select the "Copy image" item 3. Run the executable 'test' 4. It will most likely fail like this: > $ ./test=20 > has image: mime=3D "TIMESTAMP, TARGETS, SAVE_TARGETS, MULTIPLE, image/png= , text/html, application/x-qt-image" > INVALID! height=3D0! Qt says that the image in the clipboared is zero-sized. However, this X11 command pastes it without a problem: > xclip -selection clipboard -t image/png -o > x.png For a comparison, when I do the same in the Firefox browser Qt pastes the i= mage fine: > $ ./test=20 > has image: mime=3D "TIMESTAMP, TARGETS, MULTIPLE, SAVE_TARGETS, text/html= , text/_moz_htmlinfo, text/_moz_htmlcontext, image/png, image/bmp, image/x-= bmp, image/x-MS-bmp, image/x-icon, image/x-ico, image/x-win-bitmap, image/v= nd.microsoft.icon, application/ico, image/ico, image/icon, text/ico, image/= jpeg, image/tiff, application/x-qt-image" > Valid: size=3D 427 x 600 Curiously, sometimes, every once in 15-20+ times, Qt is able to paste the i= mage even when Chromium copied it into the clipboard. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242932-7788>