GODT-2234: added command-line switch to force Qt to use software rendering for QML.

This commit is contained in:
Xavier Michelon
2023-01-03 17:54:57 +01:00
parent 5dab4422e9
commit b10e8abde0
4 changed files with 66 additions and 46 deletions

View File

@ -23,8 +23,20 @@
#include <bridgepp/Log/Log.h>
void parseCommandLineArguments(int argc, char *argv[], QStringList& args, QString& launcher, bool &outAttach, bridgepp::Log::Level& outLogLevel,
bool &outNoWindow); ///< Parse the command-line arguments
//****************************************************************************************************************************************************
/// \brief A struct containing the parsed command line options
//****************************************************************************************************************************************************
struct CommandLineOptions {
QStringList bridgeArgs; ///< The command-line arguments we will pass to bridge when launching it.
QString launcher; ///< The path to the launcher.
bool attach { false }; ///< Is the application running in attached mode?
bridgepp::Log::Level logLevel { bridgepp::Log::defaultLevel }; ///< The log level
bool noWindow { false }; ///< Should the application start without displaying the main window?
bool useSoftwareRenderer { false }; ///< Should QML be renderer in software (i.e. without rendering hardware interface).
};
CommandLineOptions parseCommandLine(int argc, char *argv[]); ///< Parse the command-line arguments
#endif //BRIDGE_GUI_COMMAND_LINE_H