### startTime() Source: https://cefview.github.io/QCefView/class_q_cef_download_item.html Gets the time when the download started. ```APIDOC ## startTime() ### Description Gets the time that the download started. ### Returns - The time that the download started. ``` -------------------------------- ### loadStart() Source: https://cefview.github.io/QCefView/functions_l.html Signals that a new page load has started. ```APIDOC ## loadStart() ### Description Signals that a new page load has started. ### Method Signal ### Endpoint N/A ### Parameters None ### Request Example None ### Response None ### Success Response (200) None ### Response Example None ``` -------------------------------- ### isStarted() Source: https://cefview.github.io/QCefView/functions_func_i.html Checks if a download item has been started. ```APIDOC ## isStarted() ### Description Checks if a download item has been started. ### Method N/A (Function Signature) ### Endpoint N/A ### Parameters None ### Request Example N/A ### Response #### Success Response - **started** (boolean) - True if the download item has started, false otherwise. ### Response Example N/A ``` -------------------------------- ### Functions Starting with 's' Source: https://cefview.github.io/QCefView/functions_func_s.html This section details functions that start with the letter 's', including configuration, setting, and utility functions. ```APIDOC ## sandboxDisabled() ### Description Checks if the sandbox is disabled. ### Method N/A (This appears to be a getter method) ### Endpoint N/A ### Parameters None ### Response #### Success Response (N/A) - **Return Value** (bool) - True if the sandbox is disabled, false otherwise. ### Response Example N/A ``` ```APIDOC ## sansSerifFontFamily() ### Description Gets the sans-serif font family setting. ### Method N/A (This appears to be a getter method) ### Endpoint N/A ### Parameters None ### Response #### Success Response (N/A) - **Return Value** (QString) - The sans-serif font family. ### Response Example N/A ``` ```APIDOC ## serifFontFamily() ### Description Gets the serif font family setting. ### Method N/A (This appears to be a getter method) ### Endpoint N/A ### Parameters None ### Response #### Success Response (N/A) - **Return Value** (QString) - The serif font family. ### Response Example N/A ``` ```APIDOC ## setAcceptLanguageList(const QStringList &list) ### Description Sets the list of accepted languages for the browser. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **list** (QStringList) - The list of accepted languages. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setAllowDrag(bool allow) ### Description Enables or disables drag and drop functionality for the QCefView. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **allow** (bool) - True to allow drag and drop, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setArguments(const QStringList &args) ### Description Sets the command-line arguments for the CEF process. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **args** (QStringList) - The list of command-line arguments. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setBackgroundColor(const QColor &color) ### Description Sets the background color for the WebView. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **color** (QColor) - The background color. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setBridgeObjectName(const QString &name) ### Description Sets the name of the JavaScript bridge object. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **name** (QString) - The name of the bridge object. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setBuiltinSchemeName(const QString &name) ### Description Sets the name for the built-in scheme. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **name** (QString) - The name of the built-in scheme. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setCachePath(const QString &path) ### Description Sets the path for the cache directory. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **path** (QString) - The path to the cache directory. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setCommandLinePassthroughDisabled(bool disabled) ### Description Disables command-line argument passthrough. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **disabled** (bool) - True to disable passthrough, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setCursiveFontFamily(const QString &family) ### Description Sets the cursive font family. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **family** (QString) - The cursive font family name. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setDatabases(bool enabled) ### Description Enables or disables database support. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable database support, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setDefaultEncoding(const QString &encoding) ### Description Sets the default character encoding. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **encoding** (QString) - The default encoding (e.g., "UTF-8"). ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setDefaultFixedFontSize(int size) ### Description Sets the default fixed font size. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **size** (int) - The default fixed font size. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setDefaultFontSize(int size) ### Description Sets the default font size. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **size** (int) - The default font size. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setEventName(const QString &name) ### Description Sets the name of the event. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **name** (QString) - The name of the event. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setFantasyFontFamily(const QString &family) ### Description Sets the fantasy font family. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **family** (QString) - The fantasy font family name. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setFixedFontFamily(const QString &family) ### Description Sets the fixed-width font family. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **family** (QString) - The fixed-width font family name. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setHardwareAccelerationEnabled(bool enabled) ### Description Enables or disables hardware acceleration. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable hardware acceleration, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setImageLoading(bool enabled) ### Description Enables or disables image loading. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable image loading, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setImageShrinkStandaloneToFit(bool enabled) ### Description Enables or disables shrinking standalone images to fit. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable shrinking, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setJavascript(bool enabled) ### Description Enables or disables JavaScript execution. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable JavaScript, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setJavascriptAccessClipboard(bool enabled) ### Description Enables or disables JavaScript access to the clipboard. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable clipboard access, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setJavascriptCloseWindows(bool enabled) ### Description Enables or disables JavaScript's ability to close windows. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable window closing, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setJavascriptDomPaste(bool enabled) ### Description Enables or disables JavaScript's ability to paste from the DOM. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable DOM paste, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setLocale(const QString &locale) ### Description Sets the locale for the browser. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **locale** (QString) - The locale string (e.g., "en-US"). ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setLocalStorage(bool enabled) ### Description Enables or disables local storage. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable local storage, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setLogLevel(int level) ### Description Sets the logging level for CEF. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **level** (int) - The logging level. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setMinimumFontSize(int size) ### Description Sets the minimum font size. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **size** (int) - The minimum font size. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setMinimumLogicalFontSize(int size) ### Description Sets the minimum logical font size. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **size** (int) - The minimum logical font size. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setOffScreenRenderingEnabled(bool enabled) ### Description Enables or disables off-screen rendering. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable off-screen rendering, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setOSRFrameRate(int frameRate) ### Description Sets the frame rate for off-screen rendering. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **frameRate** (int) - The desired frame rate. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setPersistSessionCookies(bool persist) ### Description Enables or disables persistence of session cookies. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **persist** (bool) - True to persist session cookies, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setPersistUserPreferences(bool persist) ### Description Enables or disables persistence of user preferences. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **persist** (bool) - True to persist user preferences, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setPlugins(bool enabled) ### Description Enables or disables plugin support. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable plugin support, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setPreference(const QString &name, const QVariant &value) ### Description Sets a specific preference for the WebView. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **name** (QString) - The name of the preference. - **value** (QVariant) - The value of the preference. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setRemoteDebuggingPort(int port) ### Description Sets the port for remote debugging. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **port** (int) - The remote debugging port number. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setRemoteFonts(bool enabled) ### Description Enables or disables remote font loading. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable remote fonts, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setResponseResult(const QString &result) ### Description Sets the result of a query response. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **result** (QString) - The query response result. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setRootCachePath(const QString &path) ### Description Sets the root path for the cache directory. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **path** (QString) - The root path for the cache. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setSandboxDisabled(bool disabled) ### Description Disables the sandbox for the CEF process. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **disabled** (bool) - True to disable the sandbox, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setSansSerifFontFamily(const QString &family) ### Description Sets the sans-serif font family. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **family** (QString) - The sans-serif font family name. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setSerifFontFamily(const QString &family) ### Description Sets the serif font family. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **family** (QString) - The serif font family name. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setStandaloneMessageLoopEnabled(bool enabled) ### Description Enables or disables the standalone message loop. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable the standalone message loop, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setStandardFontFamily(const QString &family) ### Description Sets the standard font family. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **family** (QString) - The standard font family name. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setTabToLinks(bool enabled) ### Description Enables or disables tabbing to links. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable tabbing to links, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setTextAreaResize(bool enabled) ### Description Enables or disables text area resizing. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable text area resizing, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setUserAgent(const QString &agent) ### Description Sets the user agent string for the browser. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **agent** (QString) - The user agent string. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setUserDataPath(const QString &path) ### Description Sets the path for user data. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **path** (QString) - The path for user data. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setWebGL(bool enabled) ### Description Enables or disables WebGL support. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable WebGL, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setWindowInitialSize(const QSize &size) ### Description Sets the initial size of the browser window. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **size** (QSize) - The initial window size. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setWindowlessFrameRate(int frameRate) ### Description Sets the frame rate for windowless rendering. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **frameRate** (int) - The desired frame rate. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setWindowlessRenderingEnabled(bool enabled) ### Description Enables or disables windowless rendering. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **enabled** (bool) - True to enable windowless rendering, false otherwise. ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## setZoomLevel(double zoomLevel) ### Description Sets the zoom level for the WebView. ### Method N/A (This appears to be a setter method) ### Endpoint N/A ### Parameters - **zoomLevel** (double) - The zoom level (e.g., 1.0 for 100%). ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## showDevTools() ### Description Opens the developer tools for the WebView. ### Method N/A (This appears to be a method call) ### Endpoint N/A ### Parameters None ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## standaloneMessageLoopEnabled() ### Description Checks if the standalone message loop is enabled. ### Method N/A (This appears to be a getter method) ### Endpoint N/A ### Parameters None ### Response #### Success Response (N/A) - **Return Value** (bool) - True if the standalone message loop is enabled, false otherwise. ### Response Example N/A ``` ```APIDOC ## standardFontFamily() ### Description Gets the standard font family setting. ### Method N/A (This appears to be a getter method) ### Endpoint N/A ### Parameters None ### Response #### Success Response (N/A) - **Return Value** (QString) - The standard font family. ### Response Example N/A ``` ```APIDOC ## start() ### Description Starts the download process. ### Method N/A (This appears to be a method call) ### Endpoint N/A ### Parameters None ### Response None ### Request Example N/A ### Response Example N/A ``` ```APIDOC ## startTime() ### Description Gets the start time of the download. ### Method N/A (This appears to be a getter method) ### Endpoint N/A ### Parameters None ### Response #### Success Response (N/A) - **Return Value** (QDateTime) - The start time of the download. ### Response Example N/A ``` ```APIDOC ## statusMessage() ### Description Gets the current status message of the QCefView. ### Method N/A (This appears to be a getter method) ### Endpoint N/A ### Parameters None ### Response #### Success Response (N/A) - **Return Value** (QString) - The status message. ### Response Example N/A ``` ```APIDOC ## suggestedFileName() ### Description Gets the suggested file name for a download. ### Method N/A (This appears to be a getter method) ### Endpoint N/A ### Parameters None ### Response #### Success Response (N/A) - **Return Value** (QString) - The suggested file name. ### Response Example N/A ``` -------------------------------- ### QCefDownloadItem::startTime Source: https://cefview.github.io/QCefView/class_q_cef_download_item.html Gets the timestamp when the download began. ```APIDOC ## startTime() ### Description Gets the time that the download started. ### Method `QDateTime startTime() const` ### Returns A QDateTime object representing the start time of the download. ``` -------------------------------- ### Initialize and Configure QCefContext Source: https://cefview.github.io/QCefView/md_docs_202-_first_project.html This code initializes a QApplication, configures QCefConfig with various settings, and then creates a QCefContext instance. It's the foundational setup for any application using QCefView. ```cpp #include #include #include "MainWindow.h" int main(int argc, char* argv[]) { // 1. Create a QApplication instance QApplication a(argc, argv); // 2. Build a QCefConfig object QCefConfig config; // Set user agent config.setUserAgent("QCefViewTest"); // Set log level config.setLogLevel(QCefConfig::LOGSEVERITY_DEFAULT); // Set JSBridge object name (default value is QCefViewClient) config.setBridgeObjectName("CallBridge"); // Port for remote debugging (default is 0, disabling remote debugging) config.setRemoteDebuggingPort(9000); // Set background color for all browsers // (QCefSetting.setBackgroundColor will overwrite this value for a specific browser instance) config.setBackgroundColor(Qt::lightGray); // WindowlessRenderingEnabled is true by default, disable OSR mode by setting it to false config.setWindowlessRenderingEnabled(true); // Add command line arguments (any CEF-supported switches or parameters) config.addCommandLineSwitch("use-mock-keychain"); // config.addCommandLineSwitch("disable-spell-checking"); // config.addCommandLineSwitch("disable-site-isolation-trials"); // config.addCommandLineSwitch("enable-aggressive-domstorage-flushing"); config.addCommandLineSwitchWithValue("renderer-process-limit", "1"); // config.addCommandLineSwitchWithValue("disable-features", "BlinkGenPropertyTrees,TranslateUI,site-per-process"); // 3. Create the QCefContext instance, passing the QApplication instance and config // The lifecycle of cefContext must match the QApplication instance's lifecycle QCefContext cefContext(&a, argc, argv, &config); // 4. Create and show your application window MainWindow w; w.show(); // 5. Run the application return a.exec(); } ``` -------------------------------- ### QCefDownloadItem::start Source: https://cefview.github.io/QCefView/class_q_cef_download_item.html Starts the download process for the item. You can specify a path to save the file and whether to use a default dialog. ```APIDOC ## start() ### Description Starts to download the item. ### Method `void start(const QString &path, bool useDefaultDialog=true) const` ### Parameters * **path** (QString) - The full path name (must include file name) to save the downloaded item. This parameter is only effective when `useDefaultDialog` is false. * **useDefaultDialog** (bool) - Optional. Defaults to true. Whether to use the default 'Save As...' dialog or not. If true, the `path` parameter is ignored and CEF determines the save location. ### Remarks If `useDefaultDialog` is set to true, the initial location of the 'Save As...' dialog is determined by CEF's internal implementation. ``` -------------------------------- ### Initial Window Size Settings Source: https://cefview.github.io/QCefView/class_q_cef_setting.html Methods for setting and getting the initial browser window size. ```APIDOC ## setWindowInitialSize(const QSize & _size_) ### Description Sets the initial size of the browser. ### Parameters - **size** (const QSize &) - The initial size ### Method void QCefSetting::setWindowInitialSize(const QSize & _size_) ``` ```APIDOC ## windowInitialSize() ### Description Gets the initial size of the browser. ### Returns - The initial size of the browser ### Method const QSize QCefSetting::windowInitialSize() const ``` -------------------------------- ### QCefDownloadItem::originalUrl Source: https://cefview.github.io/QCefView/class_q_cef_download_item.html Gets the initial URL before any potential redirects. ```APIDOC ## originalUrl() ### Description Gets the original URL before any redirections. ### Method `QString originalUrl() const` ### Returns The original download URL as a QString. ``` -------------------------------- ### Browser Window Initial Size Configuration Source: https://cefview.github.io/QCefView/class_q_cef_setting.html Methods to set and get the initial size of the browser window. ```APIDOC ## setWindowInitialSize(const QSize &size) ### Description Sets the initial size of the browser. ### Method void ### Parameters #### Path Parameters - **size** (QSize) - Required - The initial size for the browser window. ``` ```APIDOC ## windowInitialSize() const ### Description Gets the initial size of the browser. ### Method const QSize ### Returns A QSize object representing the initial browser window size. ``` -------------------------------- ### instance Source: https://cefview.github.io/QCefView/class_q_cef_context.html Gets the unique default instance of the QCefContext. ```APIDOC ## instance() ### Description Gets the unique default instance. ### Returns - **static QCefContext *** - The default instance. ``` -------------------------------- ### Connect C++ Signal to Slot Source: https://cefview.github.io/QCefView/md_docs_204-_interoperability.html Connects the `cefQueryRequest` signal from `cefViewWidget` to the `onQCefQueryRequest` slot in the `MainWindow`. This setup is crucial for handling requests originating from web content. ```cpp MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) { // ... // connect the cefQueryRequest to the slot connect(cefViewWidget, SIGNAL(cefQueryRequest(int, int, const QCefQuery&)), this, SLOT(onQCefQueryRequest(int, int, const QCefQuery&))); // ... } ``` -------------------------------- ### QCefEvent Member Functions Source: https://cefview.github.io/QCefView/class_q_cef_event.html Details the member functions for setting and getting the event name and arguments. ```APIDOC ## setEventName(const QString &name) ### Description Sets the name of the event. ### Method void ### Parameters - **name** (const QString &) - The name to set for the event. ``` ```APIDOC ## eventName() const ### Description Gets the name of the event. ### Method const QString ### Returns The current event name. ``` ```APIDOC ## setArguments(const QVariantList &args) ### Description Sets the list of arguments for the event. ### Method void ### Parameters - **args** (const QVariantList &) - The list of arguments to set. ``` ```APIDOC ## arguments() ### Description Gets the list of arguments for the event. ### Method QVariantList & ### Returns A reference to the argument list. ``` -------------------------------- ### fullPath() Source: https://cefview.github.io/QCefView/class_q_cef_download_item.html Gets the complete file path for the download. ```APIDOC ## fullPath() ### Description Gets the full path to the downloaded or downloading file. ### Returns - The full path to the downloaded or downloading file. ``` -------------------------------- ### Set QTDIR Environment Variable Source: https://cefview.github.io/QCefView/md_docs_201-_build_and_config.html Set the QTDIR environment variable to your Qt installation directory. Adjust paths to match your system. ```bat set QTDIR=C:\Qt\6.2.2\msvc2019_64 ``` ```bash export QTDIR=/usr/local/Cellar/qt5/5.4.1/clang_64 ``` ```bash export QTDIR=/opt/Qt/6.2.2/gcc_64 # Example path, adjust accordingly ``` -------------------------------- ### QCefDownloadItem::percentComplete Source: https://cefview.github.io/QCefView/class_q_cef_download_item.html Gets the percentage of the download that has been completed. ```APIDOC ## percentComplete() ### Description Gets the completion percentage. ### Method `int percentComplete() const` ### Returns The completion percentage as an integer (0-100). ``` -------------------------------- ### QCefDownloadItem::url Source: https://cefview.github.io/QCefView/class_q_cef_download_item.html Gets the URL from which the file is being downloaded. ```APIDOC ## url() ### Description Gets the URL. ### Method `QString url() const` ### Returns The download URL as a QString. ``` -------------------------------- ### Create QCefView Instance Source: https://cefview.github.io/QCefView/md_docs_202-_first_project.html Initializes a QCefView instance with custom settings and adds it to the layout. Ensure QCefContext is initialized before creating QCefView. ```cpp // Build settings for per QCefView QCefSetting setting; // Here we just set the default background to blue setting.setBackgroundColor(QColor::fromRgb(0, 0, 255)); // Create the QCefView widget and add it to the layout container cefViewWidget = new QCefView(uri, &setting, this); ui.cefContainer->layout()->addWidget(cefViewWidget); layout->addWidget(ui.cefContainer); ``` -------------------------------- ### QCefView Functions Starting with 'b' Source: https://cefview.github.io/QCefView/functions_func_b.html This section details the functions within QCefView that start with the letter 'b', including their purpose and the class they belong to. ```APIDOC ## Functions starting with 'b' ### backgroundColor() - **Description**: Gets or sets the background color. - **Belongs to**: QCefConfig, QCefSetting ### bridgeObjectName() - **Description**: Gets the name of the JavaScript bridge object. - **Belongs to**: QCefConfig ### broadcastEvent() - **Description**: Broadcasts a custom event. - **Belongs to**: QCefView ### browserCanGoBack() - **Description**: Checks if the browser can navigate back. - **Belongs to**: QCefView ### browserCanGoForward() - **Description**: Checks if the browser can navigate forward. - **Belongs to**: QCefView ### browserGoBack() - **Description**: Navigates the browser back. - **Belongs to**: QCefView ### browserGoForward() - **Description**: Navigates the browser forward. - **Belongs to**: QCefView ### browserId() - **Description**: Gets the unique identifier of the browser instance. - **Belongs to**: QCefView ### browserIsLoading() - **Description**: Checks if the browser is currently loading a page. - **Belongs to**: QCefView ### browserReload() - **Description**: Reloads the current page. - **Belongs to**: QCefView ### browserStopLoad() - **Description**: Stops the current page load. - **Belongs to**: QCefView ### builtinSchemeName() - **Description**: Gets the name of the built-in scheme. - **Belongs to**: QCefConfig ``` -------------------------------- ### QCefDownloadItem::fullPath Source: https://cefview.github.io/QCefView/class_q_cef_download_item.html Gets the complete file path where the download is or will be saved. ```APIDOC ## fullPath() ### Description Gets the full path to the downloaded or downloading file. ### Method `QString fullPath() const` ### Returns The full path as a QString. ``` -------------------------------- ### locale Source: https://cefview.github.io/QCefView/class_q_cef_config.html Gets the current locale. ```APIDOC ## locale() const ### Description Gets the locale. ### Method const QString ### Returns The current locale string. ``` -------------------------------- ### minimumFontSize Source: https://cefview.github.io/QCefView/functions_m.html Gets the minimum font size setting in QCefSetting. ```APIDOC ## minimumFontSize() ### Description Retrieves the minimum font size configured in QCefSetting. ### Class QCefSetting ``` -------------------------------- ### localStorage Source: https://cefview.github.io/QCefView/class_q_cef_setting.html Gets whether to enable or disable local storage. ```APIDOC ## localStorage() ### Description Gets whether to enable or disable local storage. ### Returns * bool - True to enable; false to disable ``` -------------------------------- ### init() Source: https://cefview.github.io/QCefView/functions_func_i.html Initializes the QCefContext, typically called once at application startup. ```APIDOC ## init() ### Description Initializes the QCefContext, typically called once at application startup. ### Method N/A (Function Signature) ### Endpoint N/A ### Parameters None ### Request Example N/A ### Response #### Success Response - **N/A** ### Response Example N/A ``` -------------------------------- ### result Source: https://cefview.github.io/QCefView/functions_func_r.html Gets the result of a query. ```APIDOC ## result() ### Description Retrieves the result of a query operation. ### Method (Implicitly a getter method) ### Endpoint N/A (Class Member Function) ### Parameters None ### Response #### Success Response - **queryResult** (string) - The result of the query. ``` -------------------------------- ### Build QCefView Project with CMake Source: https://cefview.github.io/QCefView/md_docs_201-_build_and_config.html Use CMake to build the project. Specify the build directory and configuration (Release or Debug). ```bash cmake --build .build/windows.x86_64 --config Release # Or Debug ``` ```bash cmake --build .build/macos.x86_64 --config Release # Or Debug ``` ```bash cmake --build .build/linux.x86_64 ``` -------------------------------- ### url() Source: https://cefview.github.io/QCefView/class_q_cef_download_item.html Gets the URL of the download. ```APIDOC ## url() ### Description Gets the URL. ### Returns - The the URL. ``` -------------------------------- ### Generate Build Files for QCefView Source: https://cefview.github.io/QCefView/md_docs_201-_build_and_config.html Use platform-specific scripts to generate build files for your operating system. ```bash generate-win-x86_64.bat ``` ```bash ./generate-mac-x86_64.sh ``` ```bash ./generate-linux-x86_64.sh ``` -------------------------------- ### Font Size Configuration Source: https://cefview.github.io/QCefView/class_q_cef_setting.html Methods to set and get default and minimum font sizes. ```APIDOC ## setDefaultFontSize(const int value) ### Description Sets the default font size. ### Method void ### Parameters #### Path Parameters - **value** (int) - Required - The default font size. ``` ```APIDOC ## defaultFontSize() const ### Description Gets the default font size. ### Method const QVariant ### Returns A QVariant representing the default font size. ``` ```APIDOC ## setDefaultFixedFontSize(const int value) ### Description Sets the default fixed font size. ### Method void ### Parameters #### Path Parameters - **value** (int) - Required - The default fixed font size. ``` ```APIDOC ## defaultFixedFontSize() const ### Description Gets the default fixed font size. ### Method const QVariant ### Returns A QVariant representing the default fixed font size. ``` ```APIDOC ## setMinimumFontSize(const int value) ### Description Sets the minimum font size. ### Method void ### Parameters #### Path Parameters - **value** (int) - Required - The minimum font size. ``` ```APIDOC ## minimumFontSize() const ### Description Gets the minimum font size. ### Method const QVariant ### Returns A QVariant representing the minimum font size. ``` ```APIDOC ## setMinimumLogicalFontSize(const int value) ### Description Sets the minimum logical font size. ### Method void ### Parameters #### Path Parameters - **value** (int) - Required - The minimum logical font size. ``` ```APIDOC ## minimumLogicalFontSize() const ### Description Gets the minimum logical font size. ### Method const QVariant ### Returns A QVariant representing the minimum logical font size. ``` -------------------------------- ### minimumFontSize Source: https://cefview.github.io/QCefView/class_q_cef_setting.html Gets the minimum font size. ```APIDOC ## minimumFontSize() ### Description Gets the minimum font size. ### Returns The font size. ``` -------------------------------- ### defaultFontSize Source: https://cefview.github.io/QCefView/class_q_cef_setting.html Gets the default font size. ```APIDOC ## defaultFontSize() ### Description Gets the default font size. ### Returns The font size. ``` -------------------------------- ### init Source: https://cefview.github.io/QCefView/class_q_cef_context.html Initializes the CEF context with the specified configuration. ```APIDOC ## init() ### Description Initialize the CEF context. ### Parameters - **config** (const QCefConfig *) - The configuration to use for initialization. ### Returns - **bool** - True if initialization was successful, false otherwise. ``` -------------------------------- ### logLevel Source: https://cefview.github.io/QCefView/class_q_cef_config.html Gets the current log level. ```APIDOC ## logLevel() const ### Description Gets the log level. ### Method const QCefConfig::LogLevel ### Returns The current log level. ``` -------------------------------- ### minimumLogicalFontSize Source: https://cefview.github.io/QCefView/functions_m.html Gets the minimum logical font size setting in QCefSetting. ```APIDOC ## minimumLogicalFontSize() ### Description Retrieves the minimum logical font size configured in QCefSetting. ### Class QCefSetting ``` -------------------------------- ### windowlessRenderingEnabled Source: https://cefview.github.io/QCefView/class_q_cef_config.html Gets the OSR mode flag. ```APIDOC ## windowlessRenderingEnabled() const ### Description Gets the OSR mode flag. ### Method const QVariant ### Returns The current OSR mode flag. ``` -------------------------------- ### Load Online Web Resource with QCefView Source: https://cefview.github.io/QCefView/md_docs_203-_resource_loading.html Load web resources directly from the internet by specifying a URL in the QCefView constructor. This is the simplest method for displaying online content. ```cpp // build settings for per QCefView QCefSetting setting; // create the QCefView widget and add it to the layout container QCefView* cefView = new QCefView("https://google.com", &setting, nullptr); ``` -------------------------------- ### originalUrl() Source: https://cefview.github.io/QCefView/class_q_cef_download_item.html Gets the original URL before any redirections. ```APIDOC ## originalUrl() ### Description Gets the original URL before any redirections. ### Returns - The original URL before any redirections. ``` -------------------------------- ### QCefConfig Helper Methods Source: https://cefview.github.io/QCefView/class_q_cef_config-members.html Methods for adding command line switches and other helper functionalities. ```APIDOC ## addCommandLineSwitch ### Description Adds a command line switch to the CEF configuration. ### Method void addCommandLineSwitch(const QString &smitch) ### Parameters - **smitch** (const QString &) - The command line switch to add. ## addCommandLineSwitchWithValue ### Description Adds a command line switch with a specific value to the CEF configuration. ### Method void addCommandLineSwitchWithValue(const QString &smitch, const QString &v) ### Parameters - **smitch** (const QString &) - The command line switch to add. - **v** (const QString &) - The value for the command line switch. ``` -------------------------------- ### Simple Web Page HTML Source: https://cefview.github.io/QCefView/md_docs_202-_first_project.html Defines the HTML structure for a basic web page to be displayed within the QCefView. This content is used as an example. ```html

Web Area

``` -------------------------------- ### endTime() Source: https://cefview.github.io/QCefView/class_q_cef_download_item.html Gets the time when the download ended. ```APIDOC ## endTime() ### Description Gets the time that the download ended. ### Returns - The time that the download ended. ``` -------------------------------- ### onNewDownloadItem Source: https://cefview.github.io/QCefView/class_q_cef_view.html This protected virtual method is called when a new download item is required. Developers can manage the download by keeping a reference to the item and calling `QCefDownloadItem::start` to allow and initiate the download, or by ignoring the item to disallow it. ```APIDOC ## onNewDownloadItem() ### Description Gets called on new download item was required. Keep reference to the download item and call QCefDownloadItem::start method to allow and start the download, Ignore the download item to disallow the download. ### Parameters - **item** (const QSharedPointer< QCefDownloadItem > &) - The new download item - **suggestedName** (const QString &) - The new suggested name ``` -------------------------------- ### percentComplete() Source: https://cefview.github.io/QCefView/class_q_cef_download_item.html Gets the completion percentage of the download. ```APIDOC ## percentComplete() ### Description Gets the completion percentage. ### Returns - The rough percent complete or -1 if the receive total size is unknown. ``` -------------------------------- ### QCefEvent Constructors Source: https://cefview.github.io/QCefView/class_q_cef_event.html Provides documentation for the different constructors of the QCefEvent class. ```APIDOC ## QCefEvent() ### Description Constructs an event instance. ### Method QCefEvent ### Parameters None ``` ```APIDOC ## QCefEvent(const QString &name) ### Description Constructs an event instance with a specified name. ### Method QCefEvent ### Parameters - **name** (const QString &) - The name for the event. ``` ```APIDOC ## QCefEvent(const QCefEvent &other) ### Description Constructs an event instance by copying an existing one. ### Method QCefEvent ### Parameters - **other** (const QCefEvent &) - The event instance to copy. ``` -------------------------------- ### QCefDownloadItem::cancel Source: https://cefview.github.io/QCefView/class_q_cef_download_item.html Cancels a download that is in progress or has been started. ```APIDOC ## cancel() ### Description Cancels the download. ### Method `void cancel() const` ``` -------------------------------- ### QCefView Constructor Source: https://cefview.github.io/QCefView/class_q_cef_view.html Constructs a QCefView instance with an initial URL, settings, parent widget, and window flags. ```APIDOC ## QCefView() ### Description Constructs a QCefView instance with the specified URL, settings, parent widget, and window flags. ### Parameters - **_url_** (const QString &) - The target url. - **_setting_** (const QCefSetting *) - The QCefSetting instance. - **_parent_** (QWidget *) - Optional. The parent widget. Defaults to nullptr. - **_f_** (Qt::WindowFlags) - Optional. The Qt Window Flags. Defaults to Qt::WindowFlags(). ``` -------------------------------- ### backgroundColor Source: https://cefview.github.io/QCefView/class_q_cef_setting.html Gets the background color of the browser view. ```APIDOC ## backgroundColor() ### Description Gets the background color. ### Returns * QColor - The color. ``` -------------------------------- ### webGL Source: https://cefview.github.io/QCefView/class_q_cef_setting.html Gets whether to enable or disable WebGL. ```APIDOC ## webGL() ### Description Gets whether to enable or disable webGL. ### Returns * bool - True to enable; false to disable ``` -------------------------------- ### imageLoading() Source: https://cefview.github.io/QCefView/functions_func_i.html Configures image loading behavior within QCefSetting. ```APIDOC ## imageLoading() ### Description Configures image loading behavior within QCefSetting. ### Method N/A (Function Signature) ### Endpoint N/A ### Parameters None ### Request Example N/A ### Response #### Success Response - **N/A** ### Response Example N/A ```