Home » Posts tagged 'C++'

Tag Archive


3D model C++ COLLADA compilation components compression computer vision css drag selection example html image processing images Info.plist instanced geometry JavaScript jpegtran jQuery JSON Leaflet library Mac OS X maps media OpenCV open source optimization php QGraphicsItem QGraphicsScene QGraphicsView QImageWriter qmake QSignalMapper qt rubberband selection rubber band selection sketchup static analysis STL tool UX wordpress XBMC zip

Code Coverage Of Unit Tests Using Qt 5 On macOS

I was inspired while watching a talk by Kevin Ottens about refactoring OpenGL code in Qt to take a look at gcov & lcov. gcov is used to analyze code coverage – which lines of code have actually been executed while running an application. lcov is a tool that can produce HTML reports from the […]

     

Using C++11 Lambdas As Qt Slots

I have an old codebase I started writing using the Qt 3.x framework—a little while before Qt4 was released. It’s still alive! I still work on it, keeping up-to-date with Qt and C++ as much as possible, and I still ship the product. Over the years I have moved the codebase along through Qt4 to […]

     

QSignalMapper Example Revisited

Several years ago I wrote a short piece on QSignalMapper to give a quick example of how it can be used. Since then, Qt5 has been released and C++11 is now A Thing. One of the cool things introduced in Qt5 is a new overload for the QObject::connect() method:

This means we can use […]

     

Qt Patches: QGraphicsView & QImageWriter

QGraphicsView Two and a half years ago I wrote about a UX bug with QGraphicsView where it would reset the selection in the view if you tried to extend it with a rubberband selection. I have been using those changes in the version of Qt I maintain for my software. I finally took the time […]

     

Converting Between cv::Mat and QImage or QPixmap

In a previous article, I outlined how to compile OpenCV for Mac OS X and to build and run a small example. In that post I used OpenCV‘s High-Level GUI (highgui) module to display a simple interface using the Qt framework. This is great if you’re writing a one-off program or are just experimenting with […]

     

Extending Selections In QGraphicsView

Overall, the Qt library has done a fantastic job of maintaining relatively simple interfaces with well-named functions that do what they say they’re going to do [unlike MFC for example] and of having objects react the way you would expect them to without much modification. I’ve used it for several cross-platform Windows/Mac OS X/Linux applications […]

     

Point Cloud Library on Mac OS X: A Build Diary

I’ve been using and contributing to various open source projects for almost 20 years. I love the fact that we can leverage each other’s work and help other developers save time instead of reinventing the wheel or fighting the same problem a thousand times over. Open source tools and libraries make what I do possible.  […]