PDA

View Full Version : how to converting X-Window compound strings to qstring



tsuibin
23rd February 2016, 07:11
in qt demo
Drop Site

I'm draging a file in the "drop content area"

then

the QTableWidgetItem show COMPOUND_TEXT format
the data like "file:///home/tsuibin/%E6%96%87%E6%A1%A3/1\r\n"

how can I converting the COMPOUND_TEXT string to QString ?

anda_skoa
23rd February 2016, 09:47
If a QTableWidgetItem shows that text, then it has already been converted to QString, because that is what QTableWidgetItem uses for text.

Cheers,
_