Giter VIP home page Giter VIP logo

intro-design-patterns-cpp-qt5's Introduction

Qt 5 port - An Introduction to Design Patterns in C++ with Qt(2nd Edition)

the porting is not complete yet(As I have not finished the book)! However you could still download and check it out to save you time figuring why stuffs didn't work

This is my attempt to port the source code(download it here) in the book "An Introduction to Design Patterns in C++ with Qt(2nd Edition)" by Alan Ezust and Paul Ezust from Qt 4 to Qt 5, plus a bit of C++11. This repo also adds some files that are missing and required for some of the code to work(for example in /layout/form a main.cpp is missing).

I also did some of the exercises(for not just the cardgame) and uploaded it.

On Chapter 7. Libraries and Design Patterns(important!):

  • How CPPLIBS work here is different from the book(it's mainly because I didn't figure out how the author did and I'm lazy to bother because I think my solution works too)! You might need to edit common.pri in the libs folder
    • CPPLIBS here refers to the directory where the library(e.g., *.dll, *.so) will be built and accessed from. Make sure that directory exist! CPPLIBS=C:/directory/where/libraries/are/built
    • QTLIBS does not exist in the book, but since Qt compiler keeps bugging me that it cannot find Qt libs(like -lQt5Widgets, -lQt5Core) I provided this variable. Now, if you installed Qt 5 in a different directory you have to modify this variable QTLIBS=C:/Qt/Qt5.0.2/5.0.2/mingw47_32/lib
  • If you wondered why a 'phononmetadata' project(and the test example that uses it) is comment out, it's because phono is DEPRECATED in Qt 5. It's been replaced by QtMultimedia. I was thinking of a 'qmultimediametadata' but maybe not...

Contribute

I've yet gone through the entire book so the port is not complete yet. If you're ahead of me or you have have linux/mac compatible patches or you think I could have done better, you could send me pull requests or something like that to suggest changes. Don't let noobness bother you - I'd really love to hear from you! (:

You can also upload answers to the exercises if you want(I'll take them with open arms!! :D)


all code here is tested with Qt 5.0.2 MinGW 4.7, Windows 7 32bit

intro-design-patterns-cpp-qt5's People

Contributors

bruceoutdoors avatar

Watchers

John Le avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.