Quote Originally Posted by steadi View Post
What would be the point of calling it from within if it needs to iterate through many QStringListItems, convert them and then call a function that will one by one sort through them and draw them to the screen at given coordinates.
No, it doesn't need to do all that. If the function is about drawing an entity then it draws the entity, it doesn't load it, parse it, play the violin and do all other possible stuff. If you want a function to load some data, then do exactly that -- implement a function to load the data and when the data is loaded ask the UI to update itself (by calling update() or updateGL()). Eventually it will call paintGL() which can call a function of your choice that will draw the data parsed earlier.