Hi there,
I'm quite new to Qt and I have encountered this problem:

After I insert two QTextTables into QTextEdit next to each other (first flow option is FlowLeft, second InFlow), inserting text to these tables changes layout.

Bassically I want two one-column tables horrizontaly next to each other.
Somehow like this:
Qt Code:
  1. tableFormat.setPosition(QTextFrameFormat::FloatLeft);
  2. tableFormat.setAlignment(Qt::AlignLeft);
  3.  
  4. tableFormat2.setPosition(QTextFrameFormat::InFlow);
  5. tableFormat2.setAlignment(Qt::AlignRight);
  6.  
  7. QTextCursor cursor=text->textCursor();
  8. table=cursor.insertTable(1,1,tableFormat);
  9. cursor=table->cellAt(0,0).firstCursorPosition();
  10. cursor.movePosition(QTextCursor::Right);
  11. table2=cursor.insertTable(1,1,tableFormat2);
To copy to clipboard, switch view to plain text mode 
Appending lines to each table works perfectly, but after I insert some text, tables become alligned verticaly - not horrizontaly. Almost like flow options were somehow changed.

Any Ideas?

I'm using Qt 4.5.2 in unix.