[Interest] QWizard - can't register a field with a custom property
Frank Rueter | OHUfx
frank at ohufx.com
Wed Mar 20 07:13:36 CET 2019
I now have the same issue with trying to register a QTextEdit widget's
content:
|self.registerField('message', self.notes_widget.messageWidget,
'toPlainText', 'notes_widget.messageWidget.textChanged') |
Once again my sanity check with manual signal/slot connections works fine:
|self.notes_widget.messageWidget.textChanged.connect(self.test) def
test(self): print self.notes_widget.messageWidget.toPlainText() |
What am I missing?
Cheers,
frank
On 20/03/19 10:08 AM, Frank Rueter | OHUfx wrote:
> Hi all,
>
> In a QWizard page I am trying to register a field with a widget’s
> custom property to supply the desired field value but I can’t get it
> to work.
> This is the line I am using to register the field and to link it to
> the signal that informs the field to update it’s value:
>
> |self.registerField('to_list', self.notes_widget.to_list_widget,
> 'get_all_data', 'notes_widget.to_list_widget.current_data_changed') |
>
> When I query the field later via self.field(;to_list’) I just get None.
>
> As a sanity check I hooked up the signal to a test slot like this:
>
> |self.notes_widget.to_list_widget.current_data_changed.connect(self.test)
> test(self): print 'to test:',
> self.notes_widget.to_list_widget.get_all_data() |
>
> The latter works just fine.
> Can anybody spot what I’m doing wrong?
>
> Cheers,
> frank
>
>
> --
>
> ohufxLogo 50x50 <http://www.ohufx.com>
> *vfx compositing <http://ohufx.com/compositing.html> | *workflow
> customisation and consulting <http://ohufx.com/customising.html>* *
> *<http://ohufx.com/compositing.html>*
> <http://www.nukepedia.com/nubridge>
>
>
> Your gateway to over 1,000 free tools... right inside of Nuke
> <http://www.nukepedia.com/nubridge>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190320/ab830c1c/attachment.html>
More information about the Interest
mailing list