After loading new page in current Tab the url_changed SIGNAL is not emited #5705
-
Example: 1 Load some url: ":open url" - it is the first Page in hostory of the QWebEngineView It is a bug, or my misunderstanding ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
What exactly are you trying to do? Do you have a more complete example? This hack in a config.py: from qutebrowser.utils import objreg
from qutebrowser.api import cmdutils
@cmdutils.register()
def setup_handler():
cur_tab=objreg.window_by_index(0).tabbed_browser._now_focused
cur_tab.url_changed.connect(lambda url: print(f"url changed to {url}")) works fine for me. |
Beta Was this translation helpful? Give feedback.
-
I have a question about rigth integration of qt to other application. Now I make it with some hack: 1 in file ../qutebrowser/qutebrowser/app.py
2 in my main python application:
My question:
Close by middle mouse button in q_app.processEvents(QEventLoop.AllEvents,1000) is working fine too. But ! Code in my example is not working well, the tab is closing on visually. Youtube video still working (We can hear the sound only) and we can see it "closed" tab in QTWEBENGINE_REMOTE_DEBUGGING view. I need to close current tab from my thread, can you help me with that problem ? |
Beta Was this translation helpful? Give feedback.
What exactly are you trying to do? Do you have a more complete example? This hack in a config.py:
works fine for me.