Solved Is there design mode for Qt Creator?
-
That was just an example in the case you'd be creating your widget as part of your application start in main. Feel free to adapt that to whatever class constructor/function fits.
Like I said before, your child class assume that the parent is of a certain type that provides that signal, which by design is a bad idea.
You are now implementing a hack just to work around the fact that this expectation fails when using Designer which should also trigger an alarm.
Where exactly are you creating PyPGDataTextBox instances ?
What is your need ofrefreshsignal
? -
@SGaist said in Is there design mode for Qt Creator?:
Where exactly are you creating PyPGDataTextBox instances ?
What is your need ofrefreshsignal
?My PyPGDataTextBox instances are not created with code, they are created by Qt Designer.
When a PyPGDataTextBox recieves 'refreshsignal', it updates it 's text. -
Then put the connection code in the constructor of the widget where you put PyPGDataTextBox in.