|This looks suspicious to me:
It looks like you're trying to create a pointer to whatever
Run_DDD_OPTION returns. However, you also say
Run_DDD_OPTION(testWidget); which either means that it returns
void or you didn't care what it returned. My guess is the former, which would explain all the error messages. If it returns
void, you can't take its address, and there is no lvalue (=a memory address).
EDIT: If you want to pass the function
Run_DDD_OPTION as an argument to addAction, just write
addAction(tr("&Device Discovery Dialog(modified Bluetooth scanner)"),
);You may need the
& in front of the function name--I haven't done this in a long time, so I have to look it up. --It looks like it's optional. If it doesn't work without it, try it with it.
modified 15-Jun-21 17:48pm.