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

bug of the code in Qt for Python Quick start

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.7
    • Documentation, PySide
    • None
    • Windows

    Description

      In this page: https://doc.qt.io/qtforpython-6/quickstart.html 

      The following code

      function setText() {
          var i = Math.round(Math.random() * 3)
          text.text = texts[i]
      }

      should change to:

      function setText() { 
          var i = Math.floor(Math.random() * 3) 
          text.text = texts[i] 
      } 

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            shadow3d D Shadow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes