O'Reilly logo

Foundations of Qt Development by Johan Thelin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required