PDA

View Full Version : How ctrlC & crtlV works in qtextedit



FabioG
24th July 2020, 10:34
Hi all,

I use SIGNAL(contentsChange(int,int,int)) this signal to know when the content of text editor has changed, but when I paste at the beginning of the text (pos == 0) it tells me that I removed some characters (text lenght) and add text lenght + new characters copied lenght. When I paste in any other position it tells me that add just the new characters lenght and not remove anything. So how this signal or ctrlC/ctrlV works in qtextedit?