Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 9. Widgets and Designer > Exercise: Input Forms

9.8. Exercise: Input Forms

  1. Implement the missing methods from the OrderForm class to construct an input dialog form for Order objects. A starting point is provided in src/handouts/forms/manual. The dialog should look something like Figure 9.22.

    Figure 9.22. Order Form Dialog

    The code goes in orderform.cpp.

    The user should click OK to send data into the Order, or Cancel to dismiss the dialog and do nothing to the Order.

    The totalPrice field should be read-only and calculated based on the quantity and unitPrice.

  2. Next, use Designer to create the same input dialog, and integrate it with your code using either delegation or multiple inheritance, as described in Section 9.7.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial