What if you disable the render hints while painting the background? Do you get a significant performance gain? Could you also please include information about profiling for drawBackground()? It might require a recompilation of Qt!
What if you disable the render hints while painting the background? Do you get a significant performance gain? Could you also please include information about profiling for drawBackground()? It might require a recompilation of Qt!
Disabling render hints didn't improve the performance significantly.
I can do that but i may have to do re-recompilation later![]()
Before that, do you see any problems in my code ? Did you see performance difference after commenting the lines ? Atleast I would like to wait till Bitto answers something since compiling qt is time consuming!
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
As I already pointed out that performance is better without those nodes and textitems as children. Does that mean drawBackground() is being called twice for same area ? Does the framework lack any optimization in calculating this before hand ?
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
drawBackground() get called every time whenever your window painted, means when ever you move window or resize..
Rajesh Kumar Singh
Bangalore, India.
Qt Search
Must Watch:
See how we can connect digital world objects to our day to day life….
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst
Bookmarks