KTextEditor View flicker when opening new url
    Christoph Cullmann 
    christoph at cullmann.io
       
    Fri Aug 23 07:56:10 BST 2019
    
    
  
On 2019-08-22 20:32, Daan De Meyer wrote:
> Hi,
> 
> When opening new urls in a KTextEditor document, there's a little bit
> of a blt of a flicker which I think is happening because the view
> background becomes briefly visible. Is there any way to fix this using
> existing API's? If not, any pointers on where I should start looking
> to fix this would be greatly appreciated.
> 
> I've attached a video that demonstrates the issue. `openUrl` is called
> everytime a file in the tree view is double clicked. The view is only
> instantiated once when the application starts up. If needed I can make
> the source code available somewhere.
Hmm, perhaps you can disable the update during view switching.
Just showing/hiding the view shouldn't trigger flickering otherwise.
Perhaps we can improve the paintEvent, but I thought that would be auto
doublebuffered.
Greetings
Christoph
> 
> Regards,
> 
> Daan
-- 
Ignorance is bliss...
https://cullmann.io | https://kate-editor.org
    
    
More information about the KWrite-Devel
mailing list