Re: QT Object created in a private cannot be accessed
Originally Posted by aquanaut
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.
Your biological and technological distinctiveness will be added to our own. Resistance is futile.
Please ask Qt related questions on the forum and not using private messages or visitor messages.
Bookmarks