Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Application Development with Qt Creator - Second Edition
  • Toc
  • feedback
Application Development with Qt Creator - Second Edition

Application Development with Qt Creator - Second Edition

4 (25)
close
Application Development with Qt Creator - Second Edition

Application Development with Qt Creator - Second Edition

4 (25)

Overview of this book

This book is great for developers who are new to Qt and Qt Creator and who are interested in harnessing the power of Qt for cross-platform development. If you have basic experience programming in C++, you have what it takes to create engaging cross-platform applications using Qt and Qt Creator!
Table of Contents (15 chapters)
close
14
Index

Simple Qt Widgets


Playing with the widgets in Qt Creator is the best way to get a feel for what's available, but it's worth commenting on a few of the classes you're likely to use the most. We've already talked about menus; next, let's look at buttons text input, and comboboxes. If you're curious what any of these widgets look like, fire up Qt Designer and make one!

Qt's button classes that implement push buttons, checkboxes, and radio buttons all inherit from the QAbstractButton class. You can drag out any of the concrete subclasses of QAbstractButon in Qt Creator's Designer or instantiate them programmatically. Through QAbstractButton, all buttons have the following properties:

  • checkable: This is a Boolean flag indicating whether the button has checkbox behavior or not

  • checked: This indicates whether or not the button is presently checked

  • down: This is a of type Boolean indicating whether or not the button is currently in the pressed state

  • icon: This is optional

  • shortcut: This is an optional...

bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete