Free Qt Classes

The source code tarball.

Qt DevDays 2006 Example Code

At Qt Developer Days 2006, Scott Bloom working with Bo Thorsen of Thorson Consulting gave a talk about model-view programming with Qt 4. This is the source code for the examples.

This code is licensed as public domain, and you are free to use them in whatever way you want to.

Free Qt Classes

All programmers have a set of useful tools. When we find something that could be of general value, we will publish them here. For now

These classes are licensed as public domain (unless otherwise specified), so you are free to use them for whatever you want. But we obviously hope that you will send us patches, should you improve on them.

None of these sources come fully tested. It might very well be that there are bugs here. If you find one, you can fix it and send the patch, or try sending a mail that describes the problem. We give no guarantee at all on this code. Use it at your own risk.

The sources can be built as a static library, or you can copy them into your own tree. You need Qt 4 to use these classes.

QT String enhancment class

The Natural String Compare tarball.

Natural String Compare

This funcion provides a string compare methodology that enables complex strings to be compared by a natural sorting algorithm. It fits seemlessly into the QT3 (though some minor tweaks might be necessary) QListViewItem system, as well as the QT4 Model/View architecture. Natural String comparison allows for strings with numbers embedded to be sorted by the numeric value, not the "ascii" value of the numbers.. For instance, the strings 200 vs 21. Using normal ascii comparison, 200 is less then 21, when its clearly not.

Update:The code base has been updated to include functionality to make it easier to sort QStringList data using the NaturalSort method

QDate/QTime debugging addins for Dev Studio

Zip File

QDate/QTime debugging addins for Dev Studio

This zip file contains multiple items, the DLL named OnShoreCSDbgEE.dll.
It also contains the project file used to create the system. Note, QMake was NOT used. Meaning, if your QT version that you use is differnent then mine, you have to manually modify the project file.
In order to install, you need do two things.

  • Copy the DLL to $DEVENVDIR (for me thats C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\)
  • Modify your autoexp.dat and add the following lines
  • ; OnShoreCS START
    QDate =$ADDIN(OnShoreCSDbgEE.dll,_OnShoreCSDbgEE_QDate@28)
    QTime =$ADDIN(OnShoreCSDbgEE.dll,_OnShoreCSDbgEE_QTime@28)
    QDateTime =$ADDIN(OnShoreCSDbgEE.dll,_OnShoreCSDbgEE_QDateTime@28)
    ; OnShoreCS END

    After the ;QT_DEBUG_END
    in your file. autoexp.dat can be found in $DEVENVDIR/../Packages/Debugger (for me C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\Debugger)
    Restart your debugger, and it should work... Contact me if you have any questions or issues
    Feel free to use this code in any way you want, if you get QDateTime working please let me know!

    Speedometer generation tool

    Windows installer Source tar ball

    Speedometer Generation Tool

    This tool can be used to generate a graphic representing a speedometer. You can set color ranges, as well as tick marks... Based on the QT QDial code, its a simple light weight widget, that can be very power in creating a view that is easy to understand and visualize.

    The source is available under QPL, ie for non-commercial , you are free to use it as you please (following the standard QPL license which can be found at trolltech.com). However, use of the code inside a commercial or propietary application you will need to purchase a license, which can be purchased from sales@onshorecs.com for $19.95.

    Information on the QPL can be found t http://trolltech.com/products/qt/licenses/licensing

    OnShore Consulting Services, LLC
    formerly, SAB Group Consulting Services
    3195 SW Raleighview Drive, Portland OR 97225
    Phone: 503-260-8537, Mail: info@onshorecs.com