Quote Originally Posted by aquanaut View Post
I removed line #42 and get the following error : 44: error: 'm_Supplier' was not declared in this scope m_Supplier.setDetails(supplier_Name, supplier_Email, supplierIsManufacturer);
Good. Now fix your code so that it logically does what you want. Bear in mind the supplier is a member variable in the product class.

BTW. I'm moving this to General Programming as the problem has nothing to do with Qt.