PDA

View Full Version : simple question about text edit...



triperzz
23rd February 2008, 08:45
how can i input text by textedit index and by (x,y) like...

hi
bye

to

hi
friend <--(how to insert this one)
bye

and how to do this...

0.....1.....2.....3.....4.....5 <--- (x)
.
.
.
1
.
.
.
2..................hello <---(input starts at (3,2))
.
.
.
3
.
.
.
4

^
(y)

next is what object to use if im inserting a picture and text, can i input a picture to textedit?

wysota
23rd February 2008, 08:52
I don't think the text edit is a proper component for that... I'd use QGraphicsView or a custom widget instead.

triperzz
23rd February 2008, 08:57
can i print the content of QgraphicvView?

wysota
23rd February 2008, 09:03
Sure. See QGraphicsScene::render() or QGraphicsView::render().

triperzz
23rd February 2008, 09:07
ok thanks. i will try to use this..