Nov-29-2024, 04:42 AM
Hello All,
I would like to edit the QPlainTextEdit() widgets with dictionary format. For example like below.
Do you have any suggestions on automatically making this editor work with a dictionary or JSON format?
I would like to edit the QPlainTextEdit() widgets with dictionary format. For example like below.
data: rootdict: subdict: mydict1: mykey1: 1 mydict2: mykey2: 2
mydict3: mykey3: 3I wanted to include the mydict3 dictionary within the subdict dictionary in the Editor. However, when I place the cursor at the end of the mykey2 key, then I enter immediately jumps to the first character position of the following line. Instead, I would prefer the cursor to remain at the starting position of mykey2 on the next line. This would allow me to press backspace to return to the position where mydict2 begins. Unfortunately, this isn't happening as I had hoped. Additionally, even after pressing space, attempting to execute this dictionary results in an error.
Do you have any suggestions on automatically making this editor work with a dictionary or JSON format?