Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Why PySide2 missed some attribute & method comparing to Qt?
Forum Updated to NodeBB v4.3 + New Features

Why PySide2 missed some attribute & method comparing to Qt?

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 3 Posters 305 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fgg1991
    wrote on last edited by
    #1

    In QtCharts.QValueAxis,

    Qt class has attribute tickType and its setter setTickType, but in PySide2 these two are missing

    Qt/Pyside2 version are both 5.14, and these attr/method was introduced since 5.12

    I checked its pyqt5 version code, it seems pyqtCharts keep these attr/method, why pyside2 lost them?

    Is this a bug?

    pyside2 document:
    https://doc.qt.io/qtforpython/PySide2/QtCharts/QtCharts.QValueAxis.html#qtcharts-qvalueaxis

    qt document:
    https://doc.qt.io/qt-5/qvalueaxis.html#tickType-prop

    parts of pyqtcharts sip code:

    
    %If (QtChart_5_12_0 -)
            void setTickAnchor(qreal anchor);
    %End
    %If (QtChart_5_12_0 -)
            qreal tickAnchor() const;
    %End
    %If (QtChart_5_12_0 -)
            void setTickInterval(qreal insterval);
    %End
    %If (QtChart_5_12_0 -)
            qreal tickInterval() const;
    %End
    %If (QtChart_5_12_0 -)
            void setTickType(QtCharts::QValueAxis::TickType type);
    %End
    %If (QtChart_5_12_0 -)
            QtCharts::QValueAxis::TickType tickType() const;
    %End![alt text](image url)
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should check the bug report system to see if there's already something related.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved