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

In symbian(tested in N97), the actions of QMenu are not returned by the added order from function "actions()". There is not the problem in simulator on windows.

    XMLWordPrintable

Details

    Description

      In symbian(tested in N97), the actions of QMenu are not returned by the added order from function "QList<QAction *> QWidget::actions () const". There is not the problem in simulator.

      My codes:
      1)
      typedef enum

      { PaintAct, LineAct, SquareAct, RectangleAct, CircleAct, EllipseAct, TriangleAc, PolygonAct }

      GraphicsMenuActions;

      2)
      addAction(QIcon(":/icon/scribble.png"), QString("draw"));
      addAction(QIcon(":/icon/line_shape.png"), QString("line"));
      addAction(QIcon(":/icon/square_shape.png"), QString("square"));
      addAction(QIcon(":/icon/rectangle_shape.png"), QString("rectangle"));
      addAction(QIcon(":/icon/circle_shape.png"), QString("circle"));
      addAction(QIcon(":/icon/ellipse_shape.png"), QString("ellipse"));
      addAction(QIcon(":/icon/triangle.png"), QString("triangle"));
      addAction(QIcon(":/icon/polygon.png"), QString("polygon"));

      3)
      signalMapper = new QSignalMapper(this);

      int i=PaintAct;
      foreach(QAction *action, this->actions())

      { connect(action, SIGNAL(triggered()), signalMapper, SLOT(map())); signalMapper->setMapping(action, i); i++; }

      connect(signalMapper, SIGNAL(mapped(int)), graphicsScenePaint, SLOT(onGraphicsMenuActionTriggered(int)));

      4) By clicking actions in menu, the painting program will draw wrong graphics in Symbian. The same action in simulator is right.

      Attachments

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

        Activity

          People

            samimeri Sami Merila (Inactive)
            brigchen Bright Chen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes