Let
a QString. Is there a QString method that returns me the nth token based on a separator character? Something in the form
Qt Code:
To copy to clipboard, switch view to plain text mode
The separator character in this case is the dot
Let
a QString. Is there a QString method that returns me the nth token based on a separator character? Something in the form
Qt Code:
To copy to clipboard, switch view to plain text mode
The separator character in this case is the dot
Last edited by Imhotep; 6th November 2020 at 20:11.
Yes, QString::section().
Or QString::split(), using '.' as the split delimiter if you want all of the pieces.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks