Qt 6.12 LTS is out! See what's new in the release
blog
Prepending an ampersand in code wrapping incorrectly appends a semicolon.
Qt.io webservices
4
Posts
3
Posters
3.3k
Views
1
Watching
-
In "this post":http://developer.qt.nokia.com/forums/viewthread/7888/ I noticed that when I added
@
connect(&tcpSocket;, ...) // Typed no semicolon after tcpSocket, but one appears.
@the resulting text has a semicolon appended. If you then go to edit the post, the semicolon has appeared there, too.
Hey, it happened here too! :-)
I opened QTWEBSITE-264 on JIRA, as well.
-
For the time being you can use
@&tcpSocket@
in your code, so it then looks like this:
@
connect(&tcpSocket, ...);
@ -
@
QFile xmlFile("table.xml");
// translated to
QFile xmlFile("table.xml" & #41;; // without the blank between the ampersand and the hash
@Looks like something is broken with character replacement.