CHAPTER 6Creating Widgets

The term widgets is the name collectively applied to the various visual elements that comprise an application: buttons, title bars, text boxes, checkboxes, and so on. There are two schools of thought on using widgets to create user interfaces: either stick to the standard widgets or go out on a limb to create your own. Qt supports both.

Unless you have esoteric needs, you should stick to the established widgets as much as possible. This makes your life really easy when you are using Qt because the standard widget looks native on most platforms. However, if you want to walk on the wild side, you can take advantage of Qt's excellent styling capabilities, inherit widgets and override their painting; or simply create your ...

Get Foundations of Qt Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.