项目介绍

bruceoutdoors/Intro-Design-Patterns-Cpp-Qt5 是一个托管在 GitHub 上的开源项目,主要使用 Logos 编写,目前获得 150 个 Star、54 次 Fork。

仓库全名
bruceoutdoors/Intro-Design-Patterns-Cpp-Qt5
Star 数
150
Fork 数
54

README 摘要

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…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Intro-Design-Patterns-Cpp-Qt5 用什么语言开发?

主要使用 Logos 编写,目前有 150 个 Star。

如何获取 Intro-Design-Patterns-Cpp-Qt5 的源码?

可以直接克隆仓库:git clone https://github.com/bruceoutdoors/Intro-Design-Patterns-Cpp-Qt5.git,默认分支为 master;安装与运行步骤见仓库 README。

Intro-Design-Patterns-Cpp-Qt5 最近还在维护吗?

仓库最近一次更新为 2013年6月26日,当前没有未关闭的 Issue;Star 数为 150,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Porting the source code from the book "An Introduction to Design Patterns in C++ with Qt" by Alan & Paul Ezust from Qt 4 to Qt 5, and a bit of C++11.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
287
价值分
109
活跃状态
活跃
暂无主题

语言占比

C
C++
Logos
Prolog
Python
Shell

贡献者

README

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

评论

暂无评论