[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3151: Random Picture Contents when Generating a New Picture under QT


http://gambaswiki.org/bugtracker/edit?object=BUG.3151&from=L21haW4-

Comment #5 by Claus DIETRICH:

Am 19.03.26 um 17:33 schrieb bugtracker@xxxxxxxxxxxxxx:
> Comment #3 by Benoît MINISINI:
>
> It's because in GTK+ Picture and Image are internally the same object, and a newly created Picture is internally a new Cairo surface that is always initialized apparently.
>
> In the QT components, a new Picture is internally a new X11 Pixmap, which is always uninitialized for performance reasons.
>
> The same design may be done in the future with the Qt component.

Thanks for this background!

Am 19.03.26 um 18:51 schrieb bugtracker@xxxxxxxxxxxxxx:
> You are using New. Find the link where it says "This class is Creatable" to view how New is used on creatable classes.
> I wrote an explanation some time ago in the _new Picture documentshttps://gambaswiki.org/wiki/comp/gb.qt4/picture/_new

Thanks! This was helpful.

Best regards, Claus



----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----