therealjag
4th March 2006, 16:22
hey there im trying to implement Dijkstar's algorithm with QPainter. ive managed to create the nodes which get placed on the QPainter and i have created arrows to link the nodes together but the links i used are created using drawLine using an array to store the points and dont really link the nodes properly. i also tried using QInputDialog to get the integer value for the distance between the nodes but i get an error from debug mode saying "it is dangerous to leave painters active on a widget outside the QPaint event"
is there any proper way to create the links so that i can call qinputdialog and obtain distances between the links.
is there any proper way to create the links so that i can call qinputdialog and obtain distances between the links.