In CashRegister::buttonPressed() you are accessing the member "linemodel", which is never initialized.
An uninitialized pointer can point to anywhere, in most cases any attempt to access it will cause a crash.
Your problem, as pointed out earlier, is in line 11 of your constructor.
Instead of using a local variable, it should be initializing the member.
Cheers,
_
Bookmarks