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

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

      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] 
      } 

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes