Blog  •  July 17, 2013  •  By Mark Wilson  •  Qt QML  •  Qt Designer, Qt
This blog post will describe how to write a custom Qt widget and how to integrate it into Qt Designer so that you can drag and drop it onto your designs. It will also provide an understanding of important differences between Qt 4 and Qt 5 when it comes to creating designable widgets. The example we will work through is an LED (Light Emitting Diode) object. It is designed to be a realistic representation of the real thing: The diameter of the LED is measured in millimeters (like real LEDs) and can be any color you want (unlike real LEDs). The on/off state can be changed...
Blog  •  July 2, 2013  •  By Mark Wilson  •  Qt QML  • 
Introduction As promised, here is a follow-up to An Introduction to Clang. I mentioned in that posting the cool thing about Clang is that it is library based and offers public APIs that allows one to access information about a C or C++ program with relative ease. In this post we will work through an example using Clang's API to write our own "baby IDE" that parses C and C++ code and performs syntax highlighting. Clang consists of a number of different libraries and of primary interest at this time, is libclang. Clang's evolution has been rapid so most of the...
Blog  •  April 8, 2013  •  By Mark Wilson  •  Qt QML  • 
In this blog post I will be writing about some of my experiences with clang. What is clang? It is a front end to the LLVM compiler and is designed to compile C, C++, Objective-C, and Objective-C++ to machine code. The LLVM Project "is a collection of modular and reusable compiler and toolchain technologies," meaning that you could use LLVM to create a compiler for just about any language you'd like, including your own invented language, were you so inclined. The LLVM core libraries include things such as code generation for a number of CPUs and optimization technology. As my purpose is...