232 agent string. |
232 agent string. |
233 |
233 |
234 @return tuple containing the Chrome version and the QtWebEngine version |
234 @return tuple containing the Chrome version and the QtWebEngine version |
235 @rtype tuple of str |
235 @rtype tuple of str |
236 """ |
236 """ |
237 from PyQt6.QtWebEngineWidgets import QWebEngineProfile |
237 from PyQt6.QtWebEngineCore import QWebEngineProfile |
238 |
238 |
239 useragent = QWebEngineProfile.defaultProfile().httpUserAgent() |
239 useragent = QWebEngineProfile.defaultProfile().httpUserAgent() |
240 match = re.search(r"""Chrome/([\d.]+)""", useragent) |
240 match = re.search(r"""Chrome/([\d.]+)""", useragent) |
241 chromeVersion = ( |
241 chromeVersion = ( |
242 match.group(1) |
242 match.group(1) |