Qt Utilities: misc/desktoputils.h File Reference

Qt Utilities 6.22.0 Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models

Loading...
Searching...
No Matches
Namespaces | Macros | Enumerations | Functions
desktoputils.h File Reference
`#include "../global.h"`
`#include <QMetaObject>`
`#include <QPalette>`
`#include <functional>`
`#include <optional>`
Include dependency graph for desktoputils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Namespaces
namespace | QtUtilities
| !

## Macros
#define | QT_UTILITIES_IS_PALETTE_DARK(palette)

## Enumerations
enum class | QtUtilities::ToastDuration { QtUtilities::Short , QtUtilities::Long }

## Functions
QT_UTILITIES_EXPORT bool | QtUtilities::openLocalFileOrDir (const QString &path)
| \macro QT_UTILITIES_DARK_MODE_FROM_COLOR_SCHEME
QT_UTILITIES_EXPORT bool | QtUtilities::showToast (const QString &message, ToastDuration duration=ToastDuration::Long)
QT_UTILITIES_EXPORT bool | QtUtilities::performHapticFeedback ()
QT_UTILITIES_EXPORT bool | QtUtilities::isPaletteDark (const QPalette &palette)
| Returns whether palette is dark.
QT_UTILITIES_EXPORT std::optional< bool > | QtUtilities::isDarkModeEnabled ()
| Returns whether dark mode is enabled.
QT_UTILITIES_EXPORT QMetaObject::Connection | QtUtilities::onDarkModeChanged (std::function< void(bool)> &&darkModeChangedCallback, QObject *context, bool invokeImmediately)
| Invokes the specified callback when the color scheme changed.

## Macro Definition Documentation

## ◆ QT_UTILITIES_IS_PALETTE_DARK

#define QT_UTILITIES_IS_PALETTE_DARK | ( |  | palette | ) |

Value:
QtUtilities::isPaletteDark(palette)
QtUtilities::isPaletteDark
QT_UTILITIES_EXPORT bool isPaletteDark(const QPalette &palette=QPalette())
Returns whether palette is dark.
Definition desktoputils.cpp:129

Definition at line 21 of file desktoputils.h.