Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

<Solved>What is mThread?



  • I see in s alot of threading tutorials everyone uses mThread. Is mThread just an arbitrary name that people use, like when people just declare a number as i. Or does it have a predetermined meaning and purpose in Qt?


  • Moderators

    @cdbean04 said:

    Is mThread just an arbitrary name that people use, like when people just declare a number as i.

    Yes. I think the "m" prefix is often used to represent "member variable".

    You can call your variable anything you want; it won't affect your program (but choosing a good name makes your code easier to understand)


Log in to reply