Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1746

Windows: Text cutting in Q3ListView column header

    XMLWordPrintable

Details

    Description

      On Windows, when adding text containing unicode characters to a Q3ListView column header, then some unicode characters may be clipped either at the top or bottom.

      The following example reproduces the problem. Try pasting "ॐFrraaccttuurree Llaatteerraalतॣ" to the example's line edit. The last character will be clipped near the bottom, so the bottom part cannot be seen:

      #include <QtGui>
      #include <Qt3Support>

      class Widget : public QWidget
      {
      Q_OBJECT
      public:
      Widget()

      { widget = new Q3ListView(this); edit = new QLineEdit(this); QVBoxLayout *layout = new QVBoxLayout(this); layout->addWidget(edit); layout->addWidget(widget); connect(edit, SIGNAL(textChanged(const QString &)), this, SLOT(testSlot(const QString &))); }

      public slots:
      void testSlot(const QString &string)

      { widget->addColumn(string); widget->insertItem(new Q3ListViewItem(widget, string)); }

      private:
      Q3ListView *widget;
      QLineEdit *edit;

      };

      #include "main.moc"

      int main(int argc, char **argv)
      {
      QApplication app(argc, argv);
      Widget widget;
      widget.show();
      return app.exec();
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sletta Gunnar Sletta
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes