These functions are small utility functions that only depend on Qt.
