Hello,

My file :

drawgraph.h,drawgraph.cpp
graphicscreen.h,graphicscreen.cpp,graphicscreen.ui

I have map in my drawgraph class.

Qt Code:
  1. QMap<QString,Coordinate*> corMap;
To copy to clipboard, switch view to plain text mode 
and my Coordinate struct
Qt Code:
  1. struct Coordinate{
  2. double cor_X;
  3. double cor_Y;
  4. };
To copy to clipboard, switch view to plain text mode 
I want paint line this coordinate and i'm working QPainter class but i have a problem.

Qt Code:
  1. void GraphicScreen::paintEvent(QPaintEvent *);
To copy to clipboard, switch view to plain text mode 
in my graphicscreen header file but i dont understand how can i do this,drawing my QMap information.I've tried
Qt Code:
  1. void GraphicScreen::draw(QMap ....);
To copy to clipboard, switch view to plain text mode 
but it not working.