Qt Utilities 6.14.3
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
|
#include "./resources.h"
#include "resources/config.h"
#include <QDir>
#include <QFile>
#include <QFont>
#include <QIcon>
#include <QLibraryInfo>
#include <QLocale>
#include <QSettings>
#include <QString>
#include <QStringBuilder>
#include <QTranslator>
#include <QCoreApplication>
#include <iostream>
Go to the source code of this file.
Namespaces | |
namespace | QtUtilities |
! | |
namespace | QtUtilities::QtUtilitiesResources |
Functions for using the resources provided by this library. | |
namespace | QtUtilities::TranslationFiles |
Convenience functions to load translations for Qt and the application. | |
namespace | QtUtilities::ApplicationInstances |
Convenience functions to check whether a QCoreApplication/QGuiApplication/QApplication singleton has been instantiated yet. | |
Functions | |
QT_UTILITIES_EXPORT void | QtUtilities::QtUtilitiesResources::init () |
Initiates the resources used and provided by this library. | |
QT_UTILITIES_EXPORT void | QtUtilities::QtUtilitiesResources::cleanup () |
Frees the resources used and provided by this library. | |
QT_UTILITIES_EXPORT QString & | QtUtilities::TranslationFiles::additionalTranslationFilePath () |
Allows to set an additional search path for translation files. | |
QT_UTILITIES_EXPORT void | QtUtilities::TranslationFiles::loadQtTranslationFile (std::initializer_list< QString > repositoryNames) |
Loads and installs the appropriate Qt translation file for the current locale. | |
void | QtUtilities::TranslationFiles::loadQtTranslationFile (initializer_list< QString > repositoryNames, const QString &localeName) |
Loads and installs the appropriate Qt translation file for the specified locale. | |
QT_UTILITIES_EXPORT void | QtUtilities::TranslationFiles::loadApplicationTranslationFile (const QString &configName, const QString &applicationName) |
Loads and installs the appropriate application translation file for the current locale. | |
QT_UTILITIES_EXPORT void | QtUtilities::TranslationFiles::loadApplicationTranslationFile (const QString &configName, const QString &applicationName, const QString &localeName) |
Loads and installs the appropriate application translation file for the specified locale. | |
QT_UTILITIES_EXPORT void | QtUtilities::TranslationFiles::loadApplicationTranslationFile (const QString &configName, const std::initializer_list< QString > &applicationNames) |
Loads and installs the appropriate application translation file for the current locale. | |
QT_UTILITIES_EXPORT void | QtUtilities::TranslationFiles::loadApplicationTranslationFile (const QString &configName, const std::initializer_list< QString > &applicationNames, const QString &localeName) |
Loads and installs the appropriate application translation file for the specified locale. | |
QT_UTILITIES_EXPORT void | QtUtilities::TranslationFiles::clearTranslationFiles () |
Clears all translation files previously loaded via the load-functions in this namespace. | |
QT_UTILITIES_EXPORT bool | QtUtilities::ApplicationInstances::hasCoreApp () |
Returns whether a QCoreApplication has been instantiated yet. | |
QT_UTILITIES_EXPORT void | QtUtilities::setupCommonQtApplicationAttributes () |
Sets Qt application attributes which are commonly used within my Qt applications. | |
QT_UTILITIES_EXPORT std::unique_ptr< QSettings > | QtUtilities::getSettings (const QString &organization, const QString &application) |
Returns the settings object for the specified organization and application. | |
QT_UTILITIES_EXPORT QString | QtUtilities::errorMessageForSettings (const QSettings &settings) |
Returns an error message for the specified settings or an empty string if there's no error. | |