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

QTableView Display obscured

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.10.1, 5.12.2
    • Core: Item Models
    • None
    • Windows

    Description

      The QTableView column is very long, dragged out of the layout, and the data display is obscured by the layout.

      code:
      _tableView = new QTableView(this);
      _itemTableModel = new ValueTableModel(this);
      _tableView->setContextMenuPolicy(Qt::ActionsContextMenu);
      _tableView->setAlternatingRowColors(false);
      //_tableView->setItemDelegate(new ValueTableDelegate());
      _tableView->setModel(_itemTableModel);
      _tableView->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
      _leftVlayout = new QVBoxLayout();
      _leftVlayout->addWidget(_tableView);

      Attachments

        1. 1.png
          3 kB
          w cc
        2. 2.png
          4 kB
          w cc
        3. TableView.7z
          6 kB
          w cc
        4. TableView.tar.gz
          4 kB
          w cc

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              cc20110101 w cc
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes