Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2993

The code snippet inside the documentation on QGeoPositionInfoSource and QGeoSatelliteInfoSource are not in Python but in C++!

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.6.3.1, 6.8.1
    • Documentation
    • None
    • All

    Description

      Faulty documentation page: https://doc.qt.io/qtforpython-6/PySide6/QtPositioning/QGeoPositionInfoSource.html

       

      Qt for Python Version 6.8, 6.6

       

      Actual Display:

      // Emit updates every 10 seconds if available
      QGeoSatelliteInfoSource *source = QGeoSatelliteInfoSource::createDefaultSource(0);
      if (source)
          source->setUpdateInterval(10000);

       

      Expected Display:

      // code placeholde
      source = QGeoPositionInfoSource.createSource("0", PySide6.QtCore.QObject())
      if  source is not None:
          source.setUpdateInterval(10000) 

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            surui Ollie T. Y.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes