Thanks for the sudgestion.... i will try it with the QPainter
Edit:
Cant seem to get it to work.... it compiles but there is no line ...
i wrote this in my constructor for the editor:
int y1 = editor->rect().topLeft().y();
int y2 = editor->rect().bottomLeft().y();
int x = editor->rect().topLeft().x();
linePainter.drawLine(vLine);
QPainter linePainter(editor);
int y1 = editor->rect().topLeft().y();
int y2 = editor->rect().bottomLeft().y();
int x = editor->rect().topLeft().x();
x += QFontMetrics(f).width("x")*70;
QLine vLine = QLine(x,y1,x,y2) ;
linePainter.drawLine(vLine);
To copy to clipboard, switch view to plain text mode
Bookmarks