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

Text elide in QTableWidget cells doesn't work properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.5
    • GUI: Text handling
    • None
    • Windows 10
    • Windows

    Description

      It seems like text elide doesn't work properly in QTableWidget cells. The following code

      QTableWidget *tableWidget;
      tableWidget = new QTableWidget(Dialog);
      tableWidget->setGeometry(QRect(40, 20, 256, 192));
      tableWidget->setRowCount(4);
      tableWidget->setColumnCount(1);
      tableWidget->setItem(0, 0, new QTableWidgetItem("0.234823489789234"));

       

      Results in the attached screenshot.

      A solution of the problem is at https://stackoverflow.com/questions/64198197/how-to-prevent-too-aggressive-text-elide-in-qtableview/ but this problem shouldn't need an external plaster.
       

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            olowo726 Olof Wolgast
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes