Home > Mobile >  Qt how to use signals in the thread pool slot
Qt how to use signals in the thread pool slot

Time:09-23

implementing an interface class

call place>

then error


thread class, error


========================================
Demand is to use a thread pool with a lot of paper, dealing with the signal, the main function to receive, then use QProgress Bar progress Bar displays real-time schedule, have good solutions help bosses,



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Settled,
Reason is that we need to inherit QObject class, but also to write in front of the QRunable, each have a class to inherit QObject, * * *. In pro file, the change of the class header file delete add (file list disappear again, the goal is to make qmake compile moc_ *. * * h), and then in a loop for each binding groove function

  •  Tags:  
  • Qt
  • Related