Hi, I'm trying to get route information using qt-mobility 1.1.0 (and qt-4.7.0).
Here I retrieve text instructions for my route:

Qt Code:
  1. void MainWindow::routeFinished()
  2. {
  3. QGeoRouteReply *reply = static_cast<QGeoRouteReply*>(sender());
  4.  
  5. if (!reply)
  6. return;
  7.  
  8. if (reply->routes().size() < 1)
  9. return;
  10.  
  11. QGeoMapRouteObject *route = new QGeoMapRouteObject(reply->routes().at(0));
  12. QColor routeColor(Qt::blue);
  13. routeColor.setAlpha(127); //semi-transparent
  14. QPen pen(routeColor);
  15. pen.setWidth(7);
  16. pen.setCosmetic(true);
  17. pen.setCapStyle(Qt::RoundCap);
  18. route->setPen(pen);
  19. m_mapWidget->addMapObject(route);
  20.  
  21.  
  22. QGeoRouteSegment segment = reply->routes().at(0).firstRouteSegment();
  23.  
  24. while(segment.isValid())
  25. {
  26. qDebug() << segment.maneuver().instructionText();
  27. segment = segment.nextRouteSegment();
  28. }
  29. }
To copy to clipboard, switch view to plain text mode 

but I get only the first segment's instructions, the others are empty (""), while isValid() goes ok. What am I doing wrong here?