Download ebooks file Hands On GUI Programming with C and Qt5 Build stunning cross platform applications and widgets with the most powerful GUI framework 1st Edition Eng Lee Zhi all chapters
Download ebooks file Hands On GUI Programming with C and Qt5 Build stunning cross platform applications and widgets with the most powerful GUI framework 1st Edition Eng Lee Zhi all chapters
com
OR CLICK HERE
DOWLOAD NOW
https://ebookmeta.com/product/create-gui-applications-with-python-
qt5-the-hands-on-guide-to-making-apps-with-python-4th-edition-martin-
fitzpatrick/
ebookmeta.com
https://ebookmeta.com/product/beginning-pyqt-a-hands-on-approach-to-
gui-programming-with-pyqt6-2nd-edition-joshua-m-willman/
ebookmeta.com
https://ebookmeta.com/product/new-uses-of-bourdieu-in-film-and-media-
studies-1st-edition-guy-austin/
ebookmeta.com
Experience Psychology 5th Edition Laura A. King
https://ebookmeta.com/product/experience-psychology-5th-edition-laura-
a-king/
ebookmeta.com
https://ebookmeta.com/product/english-for-dietetics-barbara-gorbacz-
gancarz/
ebookmeta.com
https://ebookmeta.com/product/no-truth-without-beauty-god-the-qur-an-
and-women-s-rights-sustainable-development-goals-series-el-ali/
ebookmeta.com
https://ebookmeta.com/product/blazor-webassembly-succinctly-1st-
edition-michael-washington/
ebookmeta.com
https://ebookmeta.com/product/medieval-europe-wickham-chris/
ebookmeta.com
Hands-On GUI Programming with C++ and Qt5
BIRMINGHAM - MUMBAI
Hands-On GUI Programming
with C++ and Qt5
Copyright © 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or
transmitted in any form or by any means, without the prior written permission of the
publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the
information presented. However, the information contained in this book is sold without
warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers
and distributors, will be held liable for any damages caused or alleged to have been caused
directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
ISBN 978-1-78839-782-7
www.packtpub.com
mapt.io
Mapt is an online digital library that gives you full access to over
5,000 books and videos, as well as industry leading tools to help you
plan your personal development and advance your career. For more
information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical
eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
1. Introduction to Qt
What is Qt?
Why use Qt?
Discovering tools in Qt
Qt Designer
Qt Quick Designer
Downloading and installing Qt
Setting up the working environment
Running our first Hello World Qt program
Summary
3. Database Connection
Introducing the MySQL database system
Setting up the MySQL database
SQL commands
SELECT
INSERT
UPDATE
DELETE
JOIN
Database connection in Qt
Creating our functional login page
Summary
7. Map Viewer
Map display
Setting up the Qt location module
Creating a map display
Marker and shape display
Displaying position markers on a map
Displaying shapes on a map
Obtaining a user's location
Geo Routing Request
Summary
8. Graphics View
Graphics View framework
Setting up a new project
Movable graphics items
Creating an organization chart
Summary
By the end of this book, you will have successfully learned about
high-end GUI applications and will be capable of building many more
powerful, cross-platform applications.
Who this book is for
This book will appeal to developers and programmers who would like
to build GUI-based applications. Basic knowledge of C++ is
necessary, and the basics of Qt would be helpful.
What this book covers
Chapter 1, Introduction to Qt, will give you a tour of Qt. In this
book, you'll download the SDK, install Qt, and, most importantly,
install Qt Creator, which is used as both the user interface designer
and the IDE for writing and compiling C++ scripts.
Chapter 12, Cloud Storage, will teach you how to upload different
types of files to the FTP server and display them in a list. The user
will be able to download the file and open them with different types
of viewers depending on its file format.
Chapter 14, Qt Quick and QML, will introduce you to the basics of
QML scripting, which is one of the most recent trends in the Qt
world.
Chapter 16, Testing and Debugging, will teach you the essentials
of how to use various techniques to test and debug your Qt
application.
To get the most out of this
book
In order to successfully execute all the codes and instructions in this
book, you would need the following:
A basic PC/Laptop
A working internet connection
Qt 5.10
MariaDB 10.2 (or MySQL Connector)
Filezilla Server 0.9
Once the file is downloaded, please make sure that you unzip or
extract the folder using the latest version of:
TABLE III.
DUTIES ON IMPORTATION OF TOBACCO.
per cent.
ad valorem.
United States 30·
Belgium 13·9
Great Britain 933·3
Hanover 9·6
Holstein 10·
Holland 3·5
Russia 161·
Switzerland 3·
Zollverein 45·
TABLE IV.
Nett Profits of the French Regie on Tobacco, after paying all expenses
of purchase, transportation, manufacture, and sale. Showing the
increased consumption, in decennial periods, from 1811 to 1851.
Years. Francs.
1811 26,000,000
1821 42,219,604
1831 45,920,930
1841 71,989,095
1851 92,233,729
Total gross
185,000,000
revenue in 1857
TABLE V.
TABLE VI.
TABLE VII.
TABLE VIII.
TABLE IX.
TABLE X.
ANALYSIS OF TOBACCO BY POSSELT & REINMANN.
Nicotina 0·06
Concrete vegetable oil 0·01
Bitter extractive 2·87
Gum, with malate of lime 1·74
Chlorophylle 0·267
Albumen and gluten 1·308
Malic acid 0·51
Lignin and a trace of starch 4·969
Salts (sulphate, nitrate, and malate of potash, chloride of
potassium, phosphate and malate of lime, and malate of 0·734
ammonia)
Silica 0·088
Water 88·280
Fresh leaves of tobacco 100·836
TABLE XI.
TABLE XII.
TABLE XIII.
OPIUM STATISTICS OF GREAT BRITAIN.
Imports. Consumption.
Years.
lbs. lbs.
1826 79,829 28,329
1827 113,140 17,322
1830 209,076 22,668
1833 106,846 35,407
1836 130,794 38,943
1839 196,247 41,632
1842 72,373 47,432
1845 259,644 38,229
1848 200,019 61,055
1849 105,724 44,177
1850 126,318 42,324
1851 118,024 50,682
1852 205,780 62,521
1853 159,312 67,038
1854 97,427 61,432
1855 50,143 34,473
1856 51,479 38,609
1857 136,423 56,174
1858 82,085 77,639
TABLE XIV.
ANALYSIS OF OPIUM, BY MULDER.
TABLE XV.
PRISONERS SENTENCED BY THE POLICE TO THE HOUSE OF
CORRECTION AT SINGAPORE.
Quantity Value of
Class. Number of
of Opium Monthly Opium
all years Trade. Appearances.
consumed Wages. smoked
Chinamen habituated.
daily. monthly.
Grains. s. d. £ s. d.
Heavy, listless,
1 60 10 Cooly 16 0 140
but not sleepy.
Looks well and
2 Does not smoke. ... ...
fat.
Looks well, but
3 Does not smoke. ... ...
not stout.
4 Does not smoke. ... ... Looks well.
Looks well;
given up
5 180 10 Planter ... 3 12 0 smoking;
drinks Tinco in
arrack.
Sickly, with
6 90 12 ... ... 1 10 0
cough.
Sickly, thin,
7 60 20 Cooly 16 0 1 4 0 and miserable
looking.
Sick and
8 180 7 Planter 12 0 3 12 0
herpetic.
Sickly looking,
9 90 6 ... 20 0 1 10 0
and complains.
Thin, sickly;
complains of
10 60 20 Cooly 16 0 140
pain in the
stomach.
Yellow, sickly;
11 48 4 Cooly 16 0 0 16 4 pain in the
abdomen.
Thin, sickly;
12 300 to 350 16 Planter ... £6 to £7 complains of
cough.
Complains of
13 30 10 Cooly 16 0 0 12 0 pain in
abdomen.
Thin, but not
14 90 6 ... 16 0 1 10 0
sickly.
Thin, cough,
15 60 16 Cooly 16 0 140
and sickly.
16 Does not smoke. ... ...
Complains of
pain in
17 24 9 Cooly 16 0 0 10 0 abdomen;
does not look
sickly.
Sickly looking;
24s. to £3
18 60 to 180 30 ... 20 0 does not
12 0
complain.
24s. to Diarrhœa, and
19 36 5 ... 0 12 0
30s. complains.
Complains, but
20 30 5 ... 16 0 0 8 0 does not look
sickly.
Complains, but
21 60 12 ... 16 0 1 4 0 does not look
sickly.
Looks sickly,
22 48 5 Cooly 12 0 100
and complains.
23 Does not smoke. ... ... Looks sickly.
24 Does not smoke. ... ... Looks well.
25 Does not smoke. ... ... Looks well.
Complains
much, being
26 60 15 ... 16 0 140
without
chandu.
27 Does not smoke. ... ... Looks well.
Pale, sickly
looking;
28 36 6 ... 12 0 0 15 0
complains
much.
Thin and
29 48 5 Shopkeeper ... 100
sickly.
TABLE XVI.
OPIUM CONSUMED BY FIFTEEN PERSONS FROM THE PAUPER
HOSPITAL, SINGAPORE.
Excess of
Quantity of Opium Years Monthly
expenditure over
consumed daily. habituated. Wages.
income.
Grains. s. d. s. d.
1 36 7 11 6 5 8 excess
2 36 3 80 6 6”
3 24 5 80 18 ”
4 36 8 12 0 26 ”
5 42 20 16 0 0 10 ”
6 30 10 10 0 21 ”
7 24 7 80 18 ”
Income and
8 30 10 12 0
expenditure equal
9 24 5 80 1 8 excess
10 30 10 80 40 ”
Income and
11 30 8 12 0
expenditure equal
12 36 10 12 0 2 6 excess
Income and
13 30 15 12 0
expenditure equal
Income and
14 30 25 12 0
expenditure equal
15 42 22 12 0 4 10 excess
TABLE XVII.
REPORTS OF OPIUM-SMOKING IN CHINA.
In the Chung-wan (centre bazaar) there are about 5,800
inhabitants.
The number that smoke opium merely because they like it are
upwards of 2,600.
The number that smoke opium are upwards of 300.
In the Hah-wan (Canton bazaar) there are upwards of 1,200
inhabitants.
The number that smoke opium merely because they like it are
upwards of 600.
The number that smoke opium are upwards of 100.
The number that died for cause of smoking opium very few.
(Signed) Chung-wan & Hah-wan Teapoa’s Report.
Dated Yuet-man year, 11th month, 20th day
(December 29th, 1855).
TABLE XVIII.
Tobacco 800,000,000
Opium 400,000,000
Hemp 200,000,000 to 300,000,000
Betel 100,000,000
Coca 10,000,000
Thorn-Apple (no estimate) Less than Coca.
Amanita (no estimate) Less than Coca.
TABLE XIX.
SYNOPSIS OF NARCOTICS, WITH THEIR SUBSTITUTES.
I.——Tobacco.
Where used
Vulgar Name. Botanical Name. or How used.
cultivated.
Virginian tobacco Nicotiana tabacum U. States Smoked & chewed
Orinoko ” ” macrophylla ... ”
European ” ” rustica Europe ”
Javanese ” ” ” var Java Smoked.
Billah ” ” ” var Asiatica Malwa ”
Guzerat ” ” ” var Guzerat ”
Chinese ” ” ” var Chinensis China ”
Thibetian ” ” ” var Thibet ”
Persian ” ” Persica Persia ”
Latakia ” ” ” var Syria ”
Djiddar ” ” crispa ” ”
Indian ” ” quadrivalvis N. America ”
Indian ” ” multivalvis ” ”
Indian ” ” nana Rocky Mts. ”
Cuban ” ” repanda Cuba ”
Columbian ” ” loxensis America ”
Brazilian ” ” glauca Brazil ”
Peruvian ” ” andicola Andes ”
Coltsfoot leaves Tussilago farfar Europe Smok’d for tobacco
Yarrow ” Achillœa millefolium ” ”
Rhubarb ” Rheum emodi, &c. Himalayas ”
Bogbean ” Menyanthes trifoliata Britain ”
Sage ” Salvia officinalis Europe ”
Mountain tobacco Arnica montana Switzerland ”
Black holly Ilex vomitoria N. America ”
Stag’s horn sumach Rhus typhina Mississippi ”
Copal sumach Rhus copallina ” ”
Water lily leaves Nelumbium speciosum China Mix’d with tobacco
Pucha-pat Marrubium odoratissimum India Mix’d with tobacco
Tombeki Lobelia sp. E. Asia Smoked as tobacco
Indian tobacco Lobelia inflata N. America ”
Maize husks Zea Mays U. States Patented for cigars
Birch bark Betula excelsa N. Brunswck Mix’d with tobacco
Willow leaves Salix sp. N. America Smoked as tobacco
Bearberry leaves Arctostasphylus uva-ursi Chenook Ind. Mix’d with tobacco
Pimento berries Eugenia pimento W. Indies Smoked
Cascarilla bark Croton eleuteria ” Mix’d with tobacco
Polygonum leaves Polygonum hispida S. America Smoked
Tarchonanthus
Camphor leaves Cape ”
camphoratus
Wild dagga Leonotis leonurus ” ”
... Leonotis ovata ” ”
Culen Psoralea glandulosa Mauritius ”
Purphiok Tupistra sp. Sikkim Mix’d with tobacco
Camomile flowers Anthemis nobilis Britain ”
{Recommended as
Beet leaves Beta vulgaris France
substitute
Akel ... Algeria Mix’d with tobacco
Trouna ... ” ”
Mesembryanthemum
Kauw goed Cape Chewed
tortuosum
Angelica root Archangelica officinalis Lapland ”
Monkey bread
Adansonia digitata W. Africa Snuffed.
leaves
Rhododendron Rhododendron
India Snuffed.
leaves campanulatum
Brown dust of} Kalmia sp. }N. America ”
petioles of} Rhododendron sp. }
Asarabacca Asarum Europœum Europe ”
Grimstone’s eye
Various plants Britain ”
snuff
Various indigenous
Erzegebirge ”
plants
Woodruff Asperula odorata Britain Mixed with snuff.
Amadou ashes Polyporus igniarius Kamtschatka Snuffed.
II.——Opium.
Smyrna opium Papaver somniferum. Levant Smoked, &c.
Constantinople do. ” Turkey ”
Egyptian do. ” Egypt ”
Trebizond do. ” Persia ”
Bengal do. ” India ”
Garden Patna do. ” ” ”
Malwa do. ” ” ”
Cutch do. ” ” ”
Kandeish do. ” ” ”
English do. ” England ”
French do. ” France ”
German do. ” Germany ”
Lactucarium Lactuca sativa Britain Subs. for opium.
” ” virosa ” ”
” ” scariola ” ”
” ” altissima ” ”
” ” sylvestris ” ”
” ” elongata ” ”
” ” taraxacifolia Guiana ”
Dutchman’s
Murucuja ocellata Jamaica ”
laudanum
Ditto ” orbiculata Barbadoes ”
To produce
Syrian rue seeds Peganum harmala Turkey
intoxication.
Seeds of Sterculia alata Silhet Subs. for opium.
To produce
Seeds of Scopolia mutica Arabia
intoxication.
Juice of Chondrilla juncea Lemnos Subs. for opium.
III.——Hemp.
Gunjah and Bang Cannabis indica India, Africa Smoked, &c.
Churrus (resin) ” Nepaul, &c. ”
Powdered dacca and
” S. W. Africa. Snuffed.
aloes
IV.——Betel.
Betel nuts Areca catechu Malay Penin. Chewed.
” Areca laxa Andaman Is. ”
” Areca Nagonsis E. Bengal ”
” Areca Dicksoni Malabar ”
Kassu (extract) Areca catechu India ”
Cowry (extract) Areca catechu Mysore ”
Kutt or catechu Acacia catechu India ”
Singapore
Gambir Uncaria gambir Chewed.
&c.
” Uncaria sp. ” ”
Chewed with betel
Betel pepper leaves Chavica betle Malay Penin.
leaves
” Chavica siraboa ” ”
Blk. pepper leaves Piper nigrum Singapore ”
Ava pepper Macropiper methysticum S. Seas ”
Roots of Derris pinnata ” Subs. for betel
Roots of Cocos nucifera Ceylon ”
Guayabo bark Psidium guayaba Phillippines ”
Antipolo bark ” ” ”
V.——Coca.
Coca leaves Erythroxylon coca Peru Masticatory
VI.——Thorn-Apple.
Florispondio seeds Datura sanguinea N. Granada. Drank in infusion.
” ” stramonium Europe Smoked.
” seeds ” arborea Peru ”
” ” fatuosa Egypt ”
” ” ferox China ”
{By the Delphic
” ” tatula Asia
oracle.
” ” metel W. Asia As an opiate.
Belladonna leaves Atropa belladonna Europe Smoked.
Henbane leaves Hyoscyamus niger India Mixed with haschish.
Rhododendron
Leaves of Siberia Chewed.
chrysanthum
Flowers of Rhododendron arboreum India ”
Foxglove leaves Digitalis purpurea ” Mixed with haschisch.
VII.——Amanita.
Fly agaric Amanita muscaria Siberia Swallowed.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must,
at no additional cost, fee or expense to the user, provide a copy,
a means of exporting a copy, or a means of obtaining a copy
upon request, of the work in its original “Plain Vanilla ASCII” or
other form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.