[Kde-bindings] ruby binding and Qt::TextEdit::ExtraSelection
Thomas, Jason M (Software)
jmthomas at ball.com
Mon Feb 8 21:39:44 UTC 2010
I'm having problems using Qt::TextEdit::ExtraSelection under ruby. The
following code shows the problem:
class MyTextEdit < Qt::TextEdit
selection = Qt::TextEdit::ExtraSelection.new
selection.cursor = textCursor()
When instantiating MyTextEdit and calling highlight the following output
For some reason when I try to set the cursor property it runs but
doesn't appear to actually change the underlying property. This class is
different from most Qt classes in that it doesn't have explicit getter
and setter methods. I don't know if that is playing a role or not.
BTW: What I'm trying to accomplish is to highlight and unhighlight
individual lines in the TextEdit and this looked like the recommended
way to do it.
This message and any enclosures are intended only for the addressee. Please
notify the sender by email if you are not the intended recipient. If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful. Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kde-bindings