Kakadu / lablqml

Interfacing Qt/QML with OCaml. Formely known as lablqt
http://kakadu.github.io/lablqml
GNU Lesser General Public License v2.1
159 stars 17 forks source link

QVariant.of_float & QVariant.of_bool #23

Closed ghost closed 7 years ago

ghost commented 8 years ago

It be handy if we could have a QVariant.of_float. I making due with either passing as string or a multiplied integer which then has to be divided.

Thanks.

ghost commented 8 years ago

Added of_bool in the list, since they are similar.

Kakadu commented 8 years ago

@orbifx

ghost commented 8 years ago

Lightning fast! I will use these in the next few days and get back. Thanks!

ghost commented 8 years ago

I get an assertion failure:

ASSERT failure in While converting OCaml value to QVariant: "Unknown variant tag", file propMap_stubs.c, line 84

The code here: https://github.com/Kakadu/lablqt/blob/master/lablqml/propMap_stubs.c#L84 doesn't seem to have the cases for these variants.

ghost commented 7 years ago

I think this issue is fixed now.