using GTK I used
Code: Select all
gtk_text_view_set_wrap_mode_(GadgetID(Gadget.i), #GTK_WRAP_WORD)
Now I need the same for QT. I tried with this:
Code: Select all
QtScript(~"gadget("+Str(Gadget.i)+~").setLineWrapMode(1);")
[ERROR] JavaScript error: TypeError: Property 'setLineWrapMode' of object QTextEdit(0x20f3930) is not a function
I checked the QT documentation for QTextEdit class (link) but do not understand why this is not a function? Wrong gadget type?