[Qt-interest] [BUG]QTextCuror::inserFrame() inserts block

Israel Brewster israel at frontierflying.com
Mon Apr 6 18:34:32 CEST 2009


When calling QTextCursor::insertFrame(QTextFrameFormat), an extra  
empty block is inserted before the frame, even though  
QTextCursor::insertBlock() was never called. From what I have been  
able to determine, there is no way to work around this behavior,  
meaning that if you want to use a frame there will always be a blank  
line before it, even if this is undesirable. There are, of course, any  
number of situations in which one may want a blank line before a  
frame, but in those situations you should call  
QTextCursor::insertBlock() explicitly. No command should do something  
that was not explicitly requested without some easy and obvious way to  
disable the functionality, even if the function is "usually" desired -  
I would definitely consider this a bug, unless I am just missing some  
way to disable it.

-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------






More information about the Qt-interest-old mailing list