QPainterPath
der post ist zwar etwas älter, aber ich hoffe dennoch auf eine antwort. ich schaffe es nicht einen qpainterpath zu zeichnen.
einen linie konnt eich ganz einfach zeichnen, das rechteck im path jedoch nicht. allgemein schaffe ich es nicht koordinaten aus einem path zu zeichnen.
Code: Alles auswählen
painter->setWindow(minlon,minlat,(maxlon-minlon),(maxlat-minlat));
painter->drawLine(minlon,minlat,maxlon,maxlat);
QPainterPath path;
path.addRect(minlon,minlat,20,20);
painter->drawPath(path);
//WERTE
//MINLON: 709.105
//MINLAT: 6637.23
//MAXLON: 743.614
//MAXLAT: 6665.64
Zuletzt geändert von marvel am 27. August 2010 17:43, insgesamt 1-mal geändert.
Code: Alles auswählen
painter->setWindow(minlon,minlat,(maxlon-minlon),(maxlat-minlat));