Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.5
-
None
-
f9df8512c2 (qt/qtbase/dev) f9df8512c2 (qt/tqtc-qtbase/dev) f9df8512c2 (qt/tqtc-qtbase/6.4)
Description
QImage offers two constructors that uses an existing read-only memory buffer given via const char*. If the image format is indexed, documentation requires the user to call "setColorCount() or setColorTable() before the image is used."
However, doing so forces detaching, which is against the purpose of using this constructor in the first place. It should be possible to at least initialize the color table without detaching.
Attachments
For Gerrit Dashboard: QTBUG-81674 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
332334,5 | Do metadata detach simpler than full detach | dev | qt/qtbase | Status: MERGED | +2 | 0 |