There is a downloader class and there is a data class. You need to pass a data downloader from data to call a function that the downloader has.

I tried through the signals, but it turns out that the signal method is duplicated in the file moc.

multiple definition 

When I inherit a public QObject, if it's just an Object, then the error is obtained when connect is done:

 'QObject' is an inaccessible base of 'data' connect(downloader, SIGNAL(authed()), this, SLOT(auth__()) ); ^ 

the issue is resolved

Closed due to the fact that off-topic participants alexis031182 , user194374, Bald , aleksandr barakin , Streletz 18 Jul '16 at 9:43 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - alexis031182, Community Spirit, Bald, aleksandr barakin, Streletz
If the question can be reformulated according to the rules set out in the certificate , edit it .

    0