Unsolved Get multiple data from QTextEdit Pyside2
-
Hello,
I can give input from QTextEdit like below and get a out put
ABC DEF GHI
I want to separate the lines and get one by one output like
- ABC
- CDF
- GHI
My question is how to get data from QTextEdit and separate line by line.
-
Hi and welcome to devnet,
Use the QString::split method so you will get a list matching your lines and then proceeds that the way you want it.
-
Got it. Then after that how to select one by one? like first I want to select 1st line then 2nd line and so on.
-
You get a list from the split, therefore go through each element of said list.