Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Get multiple data from QTextEdit Pyside2
CyberSasu last edited by CyberSasu
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
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.
CyberSasu last edited by
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.