A question about enums and strings

16 views
Skip to first unread message

Michael Kirsch

unread,
Apr 19, 2012, 10:26:48 AM4/19/12
to lqt-bindings
lqt uses strings where Qt functions use enums, but what if there are
two overlaoded functions: one that uses an enum, and another that uses
a string? How can I force it to use the enum version?

Michal Kottman

unread,
Apr 19, 2012, 5:07:26 PM4/19/12
to lqt-bi...@googlegroups.com


Use a numeric constant. These constants are available in the 'Qt'
global table. For example, to set the window flag, you can use the
values in Qt.WindowFlags table, like:

Qt.WindowFlags.SplashScreen

This is a number, so it won't be mistaken with a string.

Michael Kirsch

unread,
Apr 19, 2012, 8:07:13 PM4/19/12
to lqt-bindings
OK, I thought that those didn't exist in lqt since the GitHub wiki
only showed using strings.

On Apr 19, 5:07 pm, Michal Kottman <k0mpju...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages