Actually he doesn't need a pointer to the list. He needs to return a reference (or pointer) to the list:

Qt Code:
  1. inline QList<structOrder> &orders() const { return m_Orders; };
To copy to clipboard, switch view to plain text mode 

or

Qt Code:
  1. inline QList<structOrder> *orders() const { return &m_Orders; };
To copy to clipboard, switch view to plain text mode 

Of course hiding the implementation detail and exposing a method for adding items to the list as suggested is a much better idea.