[RQt-devel] a couple of minor things

Deepayan Sarkar deepayan.sarkar at gmail.com
Wed Sep 22 11:35:46 CEST 2010


On Wed, Sep 22, 2010 at 1:14 AM, Michael Lawrence
<lawrence.michael at gene.com> wrote:
>
>
> On Mon, Sep 20, 2010 at 11:12 PM, Deepayan Sarkar
> <deepayan.sarkar at gmail.com> wrote:

[...]

>> True. The $fill() example above is the only realistic use-case.
>>
>> Anyway, a one-off converter should be easy enough.
>>
>
> I will work on this conversion.
>
>>
>> >> Btw, there is already conversion between QColor and the output of
>> >> col2rgb(), using qcol2rgb() and qcolor().
>>
>> Yes, and it would have been nice if QImage methods accepted QColor
>> whenever appropriate.
>>
>
> Still, it's not hard to move between the two:
>
> image.fill(qcolor("red")$rgb())

Ah, I didn't realize you could do that. Cool.

-Deepayan


More information about the Qtinterfaces-devel mailing list