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

N95 device does not show checkbox for checkable item in standard model used in QTreeView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.6.2
    • None
    • None
    • Nokia N95
    • d242d2f863936a4e3e2b07a4d84b7f0c4b4eb817

    Description

      I have a QTreeView using a standard model with items having the checkable option = true. On Windows Mobile and Win32 I get a checkbox on the left of each row in the QTreeView by doing this allowing to pick multiple elements from the QTreeView.

      Problem: On Symbian there is space allocated to the left of each row but there is no checkbox. Tested on N95 device.

      Expected: I expect a checkbox and when I press the select button while navigating in the QTreeView the item would be checked.

      I basicall do like this:

      myTreeView = new QTreeView(this);

      myTreeView->setObjectName(QString("contactList")); //To use stylesheets
      myTreeView->header()->hide();
      myTreeView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
      myTreeView->setItemsExpandable(false);

      myTreeView->setIndentation(0);

      standardModel = new QStandardItemModel(this);
      myTreeView->setModel(standardModel);

      QStandardItem* item = new QStandardItem( QIcon(":/gui/images/bmyimg.png"), myString);
      item->setCheckable(true);
      item->setEditable(false);
      QList<QStandardItem*> itemList;
      itemList.append(item);
      standardModel->appendRow(itemList);

      Attachments

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

        Activity

          People

            samimeri Sami Merila (Inactive)
            hubbobubbo Johan Lantz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes