Question about KParts::NavigationExtension::openUrlNotify and KParts::ReadOnlyPart::setUrl()
Stefano Crocco
stefano.crocco at alice.it
Sun Mar 29 13:59:59 BST 2026
Hello to everyone,
in the documentation for KParts::NavigationExtension::openUrlNotify, it's
stated that the hosting browser can be query the new URL via
KParts::Part::url(). I think this means that the openUrlNotify signal must be
emitted after calling ReadOnlyPart::setUrl(): is this correct?
I'm asking this question because I noticed that in Konqueror WebEnginePart,
the openUrlNotify signal is emitted when starting loading the URL but setUrl
is called when it has finished loading. While I don't think this is causing any
issue right now, I decided that using the expected sequence of operations
would be better, so I moved the call to setUrl() to when the URL starts
loading. This has caused other problems, however, so before I start trying
fixing them I'd like to be sure I'm understanding correctly how things should
work.
Thanks in advance
Stefano
More information about the Kde-frameworks-devel
mailing list