You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not reproducible in a simple hello-world PyQt app, so it seems to be something specific about our editing environment or app that is triggering this. More experimentation is required.
Working hello-world:
diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py
index eca04b261..cb5aa863b 100644
--- a/qt/aqt/__init__.py+++ b/qt/aqt/__init__.py@@ -567,7 +567,39 @@ def write_profile_results() -> None:
profiler.dump_stats(profile)
++class MainWindow(QMainWindow):+ def __init__(self):+ super().__init__()+ self.setWindowTitle("Hello, World! - PyQtWebEngine")+ self.resize(800, 600)++ # Create a QWebEngineView widget+ self.browser = QWebEngineView()++ # Set the HTML content for the browser+ html_content = """+ <!DOCTYPE html>+ <html>+ <head>+ <title>Hello, World!</title>+ </head>+ <body>+ <h1 style="text-align: center; margin-top: 20%;">Hello, World!</h1>+ <div style="border: 1px solid black;" contenteditable=true>type here</div>+ </body>+ </html>+ """+ self.browser.setHtml(html_content)++ # Set the browser as the central widget+ self.setCentralWidget(self.browser)+
def run() -> None:
+ app = QApplication(sys.argv)+ window = MainWindow()+ window.show()+ sys.exit(app.exec())
print("Preparing to run...")
try:
_run()
The text was updated successfully, but these errors were encountered:
Injecting <div style="border: 1px solid black;" contenteditable=true>type here</div> into the deckbrowser HTML also triggers the issue, so it doesn't seem to be connected to our sveltekit/editor environment.
This is not reproducible in a simple hello-world PyQt app, so it seems to be something specific about our editing environment or app that is triggering this. More experimentation is required.
Working hello-world:
The text was updated successfully, but these errors were encountered: