- 
    Bug 
- 
    Resolution: Fixed
- 
    P2: Important 
- 
    5.15.14, 6.5.3
- 
        
- 
        81ef787a6 (dev), 37574f21f (6.8), 5766c5719 (6.7), 74205f9ed (tqtc/lts-6.5)
If a signal from QML is connected to a slot in C++ within the C++ object that has the slot, the connection does not function.
See the attached project.
The initial state of the project makes the connection outside of the C++ object and the signal is received properly.
If the connection in main.cpp is commented out and the connection in MyWidget.cpp is commented back in, the connection no longer functions.
- relates to
- 
                    QTBUG-125622 Connecting to QML Signals example code does not work -         
- Closed
 
-         
| For Gerrit Dashboard: QTBUG-126136 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 568707,5 | QQuickWidgets: Don't recreate root item on window change | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 | 
| 570089,2 | QQuickWidgets: Don't recreate root item on window change | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 | 
| 570144,2 | QQuickWidgets: Don't recreate root item on window change | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 | 
| 570257,2 | QQuickWidgets: Don't recreate root item on window change | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |