connect won't...
Unsolved
C++ Gurus
-
This post is deleted!
-
@AnneRanch
AddqDebug() << __FUNCTION__ << __LINE__ << index_sub << subAction[index_sub];
…after the call to
setCheckable()
and before the connect and post the output. That’s how to debug this. -
This post is deleted!
-
-
@AnneRanch said in connect won't...:
Here's your problem:
QObject::connect(QAction, MainWindow_Bluetooth): invalid nullptr parameter
The array you use for the connect statement isn't populated properly.
At this location:connect(subAction[index_sub] , &QAction::triggered, this , [=]() { this->process_TEST() ;});
...you have a
nullptr
insubAction[index_sub]
.That's probably a result of the somewhat unusual approach to store actions in an array.
-