Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Getting Started with Python and Raspberry Pi (Redirected from Learning Python By Developing Raspberry Pi Applications)

You're reading from  Getting Started with Python and Raspberry Pi (Redirected from Learning Python By Developing Raspberry Pi Applications)

Product type Book
Published in Sep 2015
Publisher
ISBN-13 9781783551590
Pages 200 pages
Edition 1st Edition
Languages
Author (1):
Dan Nixon Dan Nixon
Profile icon Dan Nixon

Building the UI with Qt Designer


Start by launching Qt Designer using the following command:

designer-qt4

When Qt Designer first loads, you will see the New Form dialog box, as shown in the following screenshot:

Here, select the Main Window option and click Create. You will then see the new window open in the main Qt Designer window, as follows:

The first thing we need to do is to rename the window class name. This is done by first selecting QMainWindow in Object Inspector, and then changing the objectName property in Property Editor to UnitConverter. We will also change the WindowTitle property to "Unit Converter", as shown in the following screenshot:

Next, we will add a menu to the top menu bar of the main window. This will only have a single File menu. To add this, click on the Type Here section in the position of the top menu bar and enter &File. Here, & is used to designate the character that can be used to access the menu using the Alt key.

Add the option by pressing Enter, after...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}