[Qt-interest] QLabel text with colon always puts colon at the front

Keith Nicewarner Keith.Nicewarner at spacex.com
Wed Jan 20 19:36:42 CET 2010


This is very strange.  I set the text with a trailing colon:
    ui.label->setText("FOO:");
    cout << ui.label->text().toStdString() << endl;

And my printout confirms it's what I set: "FOO:".  But the widget has ":FOO".  I set the label text properties to PlainText, thinking maybe autotext was screwing it up, but that wasn't it. If I add a character after the colon, it works ("FOO:x") but not if I add a space ("FOO: ").

Any ideas what's going on?

Keith.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100120/52675a7b/attachment.html 


More information about the Qt-interest-old mailing list