“Piggy” application Solution

$35.00 $24.00

Design  a    “piggy”    application.       It    should    look    like:     1. You    are    not    allowed    to    use    a    GUI    builder    (e.g.,    Qt    Designer).       You    must    hand-­‐code    this    assignment. 2. The top-­‐level    widget    for    the    application    should    be    a    subclass    of    QWidget.        You    should    use    the    QGridLayout    layou       You    may    choose    the  …

You’ll get a: . zip file solution

 

 
Categorys:

Description

5/5 – (2 votes)

Design  a    “piggy”    application.       It    should    look    like:

 

 

  1. 1. You    are    not    allowed    to    use    a    GUI    builder    (e.g.,    Qt    Designer).       You    must    hand-­‐code    this    assignment.
  2. 2. The top-­‐level    widget    for    the    application    should    be    a    subclass    of    QWidget.        You    should    use    the    QGridLayout    layou       You    may    choose    the    margins    for    the    buttons    and    any    white    space,    including    taking    the    default.
  3. 3. The  buttons    need    to    be    instances    of    QPushButton    or    QToolButton.
  4. 4. It    should    be    able    to    grow    to    look    like    this:

 

 

 

 

 

It    should    not    get    any    smaller    than    the    first    picture    above,    which    is    the    default.

  1. 5. There is  no    real    functionality.       This    just    to    do    layout    and    get    your    feet    w    You    will    be    graded    on    appearance,    that    is,    correct    layout    (including    the    capability    to    grow    or    shrink    which    should    come    for    free).
  2. 6. You    are    responsible    for    monitoring    the    Canvas    forum    site    for    any    modifications    or    corrections    of

this  assignment    (or    any    assignment).

  1. 7. You  must    submit    everything    (.cpp,    .h,    and    .pro    files)    in    a    .zip    file.       The    name    of    your    zip    file    (and    your    directory    should    be    “piggy-­‐YourName”,    where    YourName    is,    as    you    might    guess,    your    name.        Failure    to    upload    the    appropriate    files    will    be    a    severe    penalty;    failure    to    put    it    in    a    .zip    file    or    name    the    directory    will    be    a    more    minor,    but    substantial,    penalty.
  2. 8. There’s a    change    to    the    grading    policy.       For    assignments    unless    changed,    there    will    be    a    maximum    of    1.5    late    days    (ie,    final    deadline    of    Tuesday    noon),    because    we    want    to    be    able    to    discuss    the    homework    in    class    and    in    sections.        In    any    case,    don’t    be    late    on    this    –    it’s    too    simp

 

 

 

 

 

 

 

To  startup    in    QtCreator:       My    recommendation    is    that    you    take    the    class    code    (which    you    can    find    on    Canvas/Files),    and    copy    it    into    a    directory.       Name    the    directory    anything    you    want.       Change    the    .pro    file    to    be    the    name    of    the    directory,    and    edit    by    hand    to    make    sure    that    the    APP    is    correctly    named    (piggy-­‐YourName).       Start    up    QtCreator    and    pick    the    .pro    file    you    just    produced.       Take    the    default    on    project,    and    then    build    the    application.

 

Alternatively,  pick    new    project,    then    Projects/Applications/Qt    Widgets    Project.       You    can    pick    any    names    and    any    place    in    your    file    system    you    want.       In    the    setup    dialogs,    make    the    base    class    be    “QWidget”    and    unclick    “Generate    form”.