|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] Qt4.3/X11 renders blanks as Euro symbols under XEN
If I run the attached program on a paravirtualized SUSE 10.2 guest
under XEN 3.0.3_11774, the blanks between the <nobr>...</nobr>
tags are rendered as Euro symbols, as can be seen in the upper
half of ftp://ftp.cadsoft.de/pub/etc/nobr-tag-formatting.png.
The lower half of this screenshot shows the result on the SUSE 10.2
XEN host machine, where everything is fine.
I have already contacted Trolltech about this, but they claim that
this doesn't happen on Vmware and Parallels, so it must be a XEN problem.
I'm using the current snapshot of Qt4.3/X11 from
rsync://rsync.trolltech.com/qt-x11-bleeding.
Does anybody here have an idea what might be causing this?
Best regards
Klaus Schmidinger
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: kls@xxxxxxxxxx
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
#include <qapplication.h>
#include <qdialog.h>
#include <qtextedit.h>
#include <qtextbrowser.h>
#include <qsplitter.h>
#include <qlayout.h>
class cRichTextEditor : public QDialog {
Q_OBJECT
private:
QTextBrowser *viewText;
QTextEdit *editText;
private slots:
void SlotTextChanged(void);
public:
cRichTextEditor(const QString &Description);
};
cRichTextEditor::cRichTextEditor(const QString &Description)
{
QVBoxLayout *vbl = new QVBoxLayout(this);
QSplitter *splitter = new QSplitter(Qt::Vertical, this);
vbl->addWidget(splitter);
splitter->setOpaqueResize(true);
viewText = new QTextBrowser(splitter);
editText = new QTextEdit(splitter);
editText->setWordWrapMode(QTextOption::WordWrap);
viewText->setWordWrapMode(QTextOption::WordWrap);
viewText->setHtml(Description);
editText->setPlainText(Description);
connect(editText, SIGNAL(textChanged()), SLOT(SlotTextChanged()));
resize(400, 200);
}
void cRichTextEditor::SlotTextChanged(void)
{
viewText->setUpdatesEnabled(false);
viewText->setHtml(editText->toPlainText());
viewText->setUpdatesEnabled(true);
}
int main(int argc, char **argv)
{
QApplication a(argc, argv);
QDialog *d = new cRichTextEditor(
"Some normal text with blanks.\n"
"<p>\n"
"<nobr>Text with <nobr> and blanks that are rendered as Euro
sign.\n</nobr>"
);
d->show();
return a.exec();
}
#include "moc_nobr-tag-formatting.c"
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-users] Qt4.3/X11 renders blanks as Euro symbols under XEN,
Klaus Schmidinger <=
|
|
|
|
|