Can I replace an AxisItem on a Qt Creator promoted pyqtgraph widget?

无人久伴 提交于 2019-12-11 19:24:24

问题


I place a widget in Qt Creator and promote it to a PyQtGraph PlotWidget. I'd like to use a custom AxisItem with that widget. Is there any way to replace the existing axis or do I have to subclass PlotWidget?


回答1:


There is not currently a way to replace an existing axis; use a subclass as you suggested.



来源:https://stackoverflow.com/questions/18373714/can-i-replace-an-axisitem-on-a-qt-creator-promoted-pyqtgraph-widget

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!