How about simply:
Qt Code:
public: MyThread(...){ m_arg = -1; } void setArg(int a){ m_arg = a; } protected: void run(){ doSomething(m_arg); } private: int m_arg; };To copy to clipboard, switch view to plain text mode
How about simply:
Qt Code:
public: MyThread(...){ m_arg = -1; } void setArg(int a){ m_arg = a; } protected: void run(){ doSomething(m_arg); } private: int m_arg; };To copy to clipboard, switch view to plain text mode
Bookmarks