首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
program编程设计讲解、data留学生编程辅导、C/C++程序语言讲解 辅导Database|调试Matlab程序
项目预算:
开发周期:
发布时间:
要求地区:
Tom Kelly (MS Teams)
Coursework 2: Responsive Layouts
Date set: 9.11.20
Date due: 23.11.20
Weighting: 35%
Goals for this CW:
● Demonstrate a working understanding of writing custom layouts
in C++ and Qt
● Create a prototype layout for an app
● Design a beautiful responsive layout
Getting started:
● Watch the video.
● Download and extract this zip file
● Open the .pro file with Qt Creator
● Set the first command line argument to point to the folder which
contains your unzipped source code. Add double quotes around
the folder.
● Run the project. It creates a main window with several coloured
labels which can be manually resized. Try changing the size of the
window; observe the responsive design - the number, location and
size of the widgets change.
● Run the project in automatic test mode (warning your screen
will flash rapidly):
1. Add a second command line argument: test (without
quotes).
2. Run the program again.
3. Observe that a number of different window sizes are
displayed, screenshots are taken, and written to the report
directory in the root of the project. The program then exits.
View the report/index.html in a browser and observe the
terrible responsive design.
4. Set the project back to manual mode for your
development by removing the program argument test.
● There is a new system for generating a file to submit. Try this
now.
1. add a second command line argument pack (without
quotes)
2. run the program again. Check the "Application Output"
tab in Qt Creator for any error messages.
3. your files and report are packed into a file submit.patch
in the directory above your source output.
4. check that your submit.patch contains both your
automatically generated report and your source code by
replacing the command line argument pack with unpack.
This will extract to the submit.patch to the directory
2020/11/10 16:30
https://minerva.leeds.ac.uk/bbcswebdav/pid-8239642-dt-content-…4881_XJCO2811/cw2/CW2_%20Repsonsive%20Qt/CW2RepsonsiveQt.html ⻚码:2/4
tmp_xxxx, located next to the patch file. (you should do this
before submission!)
5. Your project will be graded using this automatic script
and report; you are encouraged to submit early and
often….
6. ...so please submit this default submit.patch to Minerva
now.
● The project contains three important C++ classes:
1. ResponsiveWindow: This subclasses QWidget and
creates the widgets to be displayed in the
ResponsiveWindow::createWidgets function. It sets
a ResponsiveLayout and adds various
ResponsiveLabels.
2. ResponsiveLayout: This subclasses QLayout and
arranges the ResponsiveLabels in the window using the
ResponsiveLayout::setGeometry function.
3. ResponsiveLabel: This subclasses QLabel and
creates a label widget with a name and a coloured
background.
● Read the classes to understand how they work together to
create the layout you have observed. Lecture 6 discusses such
custom layouts.
● The following widgets and associated colours have been
predefined in the ResponsiveLabel header file. (Lecture 5
introduces some useful terminology):
1. home link (kHomeLink)
2. shopping basket button (kShoppingBasket)
3. sign-in - assume user is logged out (kSignIn)
4. navigation tags - main site areas (kNavTabs)
5. advertisements for related products (kAdvert)
6. search button (kSearchButton)
7. search result - there may be several of these on one
page (kSearchResult)
8. search text field (kSearchText)
9. show next page of search results (kSearchForward)
10. show previous page of search results
(kSearchBackward)
11. detailed search options - price, product rating, category
etc.. (kSearchOptions)
Your task:
● You will create a prototype layout for a page of a mobile app.
This prototype will demonstrate which widgets are shown on what
sized devices and how their layout adapts in a responsive manner.
● In this coursework you will build a single responsive page layout
for a shopping app. The page will show search results.
● Notes:
○ You should carefully plan which labels are shown at
different screen sizes. You may wish to sketch the widgets
on paper before you write code.
2020/11/10 16:30
https://minerva.leeds.ac.uk/bbcswebdav/pid-8239642-dt-content-…4881_XJCO2811/cw2/CW2_%20Repsonsive%20Qt/CW2RepsonsiveQt.html ⻚码:3/4
○ Only use ResponsiveLabel widgets with a simple text
description (and a single QScrollArea if you attempt the
extension task).
○ The widgets don't need to do anything (i.e. signals and
slots are not required; nothing is expected to happen when
you click on a label).
○ None of Qt's built-in layouts may be used
(QVBoxLayout…).
○ You may wish to do a little market research to
understand which widgets are prioritised at which sizes on
real-world shopping apps and websites.
○ Use Qt Creator and a GNU C++ compiler as in the labs.
○ Do not edit the files with the warning "DO NOT EDIT
THIS FILE" at the top. They will be used to grade your
work.
○ The window should show a usable, beautiful, and
useful layout whether sized at its minimum (320x320
pixels) or its maximum (1280 x 720 pixels), as well as all
sizes in between. Landscape and portrait orientations
should be considered.
○ The prototype is for a full-screen app with a touch-based
interface (for a variety of different sized mobile and tablets
devices). The widgets should be positioned and sized
accordingly.
○ We will take the physical dimension of the minimum size
window (320x320 pixels) to be 4.5x4.5 cm (about the size
of BlackBerry Q5 screen). Larger physical dimensions are
taken to be scaled proportionally.
○ It is suggested to add the maximum number of
ResponsiveLabels required for all possible layouts in
ResponsiveWindow::createWidgets and hide them
as required in
ResponsiveLayout::setGeometry. Widgets can be
hidden by moving them outside the window bounds.
○ Follow the following code formatting rules:
■ comment your code with single-line comments
(using //) such that someone familiar with C++ and
this project description (i.e. the person doing the
grading) is able to follow it.
■ indentation and braces as per 1TBS.
■ class names begin with capital letters,
■ variable names begin with lower-case letters.
■ constant globals to begin with a lower-case 'k'.
■ function length should be limited to 50
lines (excluding empty lines and comments).
■ line length should be limited to 100 characters.
■ there should be no unused (commented or
inaccessible) code.
Marks will be awarded for:
● layouts which show appropriate placed widgets in response to
varying window sizes and orientations.
2020/11/10 16:30
https://minerva.leeds.ac.uk/bbcswebdav/pid-8239642-dt-content-…4881_XJCO2811/cw2/CW2_%20Repsonsive%20Qt/CW2RepsonsiveQt.html ⻚码:4/4
○ show all provided widgets at the largest size; fewer at
smaller sizes.
○ marks are available for up to four discrete layouts, each
with different sets of widgets and layout strategies (e.g. two
horizontal and two vertical layouts).
● widgets which do not overlap and do not extend beyond the
edge of the window.
● layouts which have beautiful, non-zero, and appropriate spacing
between the widgets (lecture 7).
● code which compiles, runs, and adheres to the above formatting
rules.
● more challenging extension tasks:
○ research and use QtScrollArea to allow the page to
scroll and show more kSearchResults (and any other
widgets you feel appropriate).
○ create a second custom layout for your scroll area which
positions 17 square kSearchResults in a responsively
sized grid layout. For example, you may only have one
grid-column in small layouts, but more for wide layouts.
The horizontal and vertical spacing between the results,
and around the grid, should be consistent.
To submit:
● Compress your project and automatically generated report with
the pack command line argument as described above.
○ Validate the contents of the submit.patch file by using the
unpack command line argument. Ensure it includes the
latest automatically generated report and your code.
○ But...do not otherwise change the .patch file.
● Use Minerva to submit submit.patch by the deadline at the top of
this page.
● You may submit multiple times. Only the most recent will be
graded. You are encouraged to submit early and often.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代写math 1151, autumn 2024 w...
2024-11-14
代做comp4336/9336 mobile dat...
2024-11-14
代做eesa01 lab 2: weather an...
2024-11-14
代写comp1521 - 24t3 assignme...
2024-11-14
代写nbs8020 - dissertation s...
2024-11-14
代做fin b377f technical anal...
2024-11-14
代做ceic6714 mini design pro...
2024-11-14
代做introduction to computer...
2024-11-14
代做cs 353, fall 2024 introd...
2024-11-14
代做phy254 problem set #3 fa...
2024-11-14
代写n1569 financial risk man...
2024-11-14
代写csci-ua.0202 lab 3: enco...
2024-11-14
代写econ2226: chinese econom...
2024-11-14
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!