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

The setItemWidget() doesn't work well with QGraphicsView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 4.7.1, 5.5.1
    • Widgets: GraphicsView
    • None
    • VS.NET 2008 + Windows XP SP3 + Qt 4.7.1

    Description

      I create a QListWidget and call QListWidget::setItemWidget() to place widgets(such as QPushButton()) into the list widget.
      And I add a lot of items to enable the vertical scrollbar, all the widget works well.
      But once I put this composition widget into a QGraphicsView (via QGraphiscScene::addWidget()), the scrollbar won't works. The text of each item will scroll with the scrollbar, but the widgets(QPushButton()) won't scroll.

      Attachments

        1. itemwidget.cpp
          1 kB
        2. itemwidget.h
          0.2 kB
        3. itemwidget.qrc
          0.1 kB
        4. itemwidget.vcproj
          9 kB
        5. main.cpp
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            diro diro
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes