PDA

View Full Version : building report problem



tinysoft
14th April 2011, 10:16
hello every one

is there any way that i can write two words in QTextEdit (report) at the same line BUT one at right an the other at the left ?

i tried to do it by adding two frames at one block , but it seems that every frame will take the whole line. :(

any ideas ?

high_flyer
15th April 2011, 14:50
Have a look at QTextCursor.

tinysoft
15th April 2011, 16:23
i solved the problem by adding a table of two columns to the textEdit . and then i made one cell direction left to right and the other right to left

then i made the table boarder hidden through this command :


tableFormat.setBorder(0);

and every thing went as i wanted :D