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
[email protected]
https://lists.qt-project.org/listinfo/interest
_______________________________________________
PySide mailing list
[email protected]
https://lists.qt-project.org/listinfo/pyside