Skip to content
Switch branches/tags

Latest commit

QSFPM's invalidateFilter() is protected, not public. That makes
sense, as filtering is designed to be done by subclasses, so that
if the filtering creteria change, a subclass can call

However that's hostile to a functional approach, where one can have a
non-regular invocable, and therefore needs to notify KDFSFPM that
filtering needs to be invalidated. Surely this can be done by resetting
a filtering function, but that's not really user-friendly. Hence just
make invalidateFilter() public (note: invalidate() is already public.).

Change-Id: I696e1d75235efef3684b72feb4c0586c4f5b622e
Reviewed-by: Giuseppe D'Angelo <>

Git stats


Failed to load latest commit information.
Latest commit message
Commit time


KDAB's collection of miscellaneous useful C++ classes and stuff.

Generic Tools

C++ Tools

  • future-backports Backports of future C++ library components to C++11:
    • k20::erase/k20::erase_if - C++20's uniform container erasure
  • DuplicateTracker A helper class to keep track of "seen" elements, e.g. to avoid processing duplicate elements in a collection. It transparently uses std::pmr::monotonic_buffer_resource to improve its memory usage (compared to a 'plain' set implementation).
  • toContainer Helper functions to convert a container to another container, using a convenient pipeline style.

Qt Tools

  • Ui Watchdog A header-only tool to break the program when the main-thread event loop is blocked for more than 300ms.
  • Qml Stacktrace Helper A function for retrieving a QML backtrace with gdb.
  • Qml PropertySelector A QML Item to easily set property values based on a combination of conditions
  • Model/View ModelIterator A set of (template) classes to allow iteratating over QAbstractItemModels using std algorithms
  • Model/View SortProxyModel A QSortFilterProxyModel replacement that just does sorting, but properly signals moves due to sorts.
  • Model/View UpdateableModel A template class to make defining a model that sends proper update signals easy
  • Model/View Table to List Proxy A proxy model flattening a table model into a list model (mainly for Qt Quick 2).
  • Functional Sort/Filter Proxy A QSortFilterProxyModel convenience subclass that allows to set filtering/sorting functions, removing the need for subclassing.
  • TabWindow widget A tab widget that allows extracting a tab to a new window, like modern web browsers.
  • EventFilter A way for "connecting" a QEvent to lambda with two lines of code.
  • MessageHandler An API to help you intercept the output going through qDebug()/qWarning()/etc.
  • QStringTokenizer A universal, safe, zero-allocation string splitter.
  • Signal/Slot Connection Throttlers An implementation of throttler/debouncer classes for signal/slot connections.
  • Single Shot Connect A header only version of QObject::connect, that establishes a single shot connection.
  • Qt Hasher A header-only hasher object for using Qt types together with unordered_map, unordered_set, etc.
  • NotifyGuard A RAII guard object to make sure object notification signals are properly emitted.
  • asan_assert_fail_qt Intercept Q_ASSERT failures with ASAN and print a backtrace.
  • KDSqlDatabaseTransaction A RAII wrapper for database transactions when using the Qt SQL APIs.
  • pointer_cast Tools to ease migrating from QSharedPointer to std::shared_ptr.

Other code snippets


KDToolBox is (C) 2019-2021, Klarälvdalens Datakonsult AB, and is available under the terms of the MIT license (see the LICENSE.MIT.txt file in this repository [1]).

For the "Other code snippets", which are hosted outside of this repo, please consult their own license.

Contact KDAB at if you need different licensing options.

[1] [License file] (

Get Involved

KDAB will happily accept external contributions; however, all contributions will require a signed Contributor License Agreement (see docs/KDToolBox-CopyrightAssignmentForm.pdf).

Contact for more information.

Please submit your contributions or issue reports from our GitHub space at

About KDAB

KDToolBox is supported and maintained by Klarälvdalens Datakonsult AB (KDAB).

The KDAB Group is the global No.1 software consultancy for Qt, C++ and OpenGL applications across desktop, embedded and mobile platforms.

The KDAB Group provides consulting and mentoring for developing Qt applications from scratch and in porting from all popular and legacy frameworks to Qt. We continue to help develop parts of Qt and are one of the major contributors to the Qt Project. We can give advanced or standard trainings anywhere around the globe on Qt as well as C++, OpenGL, 3D and more.

Please visit to meet the people who write code like this.

Stay up-to-date with KDAB product announcements:


KDAB's collection of miscellaneous useful C++ classes and stuff






No releases published


No packages published