Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.14.2
-
None
-
Running Qt Creator 4.12.3 Based on Qt 5.14.2 on iMAC
Description
I have a class derived from QPushButton, I am connecting the clicked signal to a slot in script:
cnSignal = QObject::connect(this
,&clsQtPushBtn::clicked
,[pobjScriptEng, strCall, strScript]() {
QString strScriptWithCall(strScript + strCall + "();");
pobjScriptEng->evaluate(strScriptWithCall);
);
When I click the button the first time everything is ok, however reliably on the second click I see:
Warning:Using QCharRef with an index pointing outside the valid range of a QString. The corresponding behavior is deprecated, and will be changed in a future version of Qt.
In the Application Output. The scripted slot contains nothing more than:
function clicked()
{ console.info("-----clicked()-----"); }