darods / CanSat-Ground-station

Code for a CanSat or OBCs GUI ground station where different sensor data are displayed in real time. No sensors needed to try it.
Other
101 stars 36 forks source link

Text Items disappear #4

Open darods opened 4 years ago

darods commented 4 years ago

Most of the times pyqtgraph's Text Items disappear, i don't know why, maybe a reimplementation using pyqt5 widgets instead of pyqtgraph will solve this.

gabrielelara commented 4 years ago

Hi, have you found a solution for this problem? I have the same problem with Text Items but I can´t solve it.

darods commented 4 years ago

No :c, sorry.

darods commented 4 years ago

What have you tried to fix it?

gabrielelara commented 4 years ago

Well I followed your advice about use pyqt5 widgets instead texts items, more exactly QLcdNumber and it works

utkarshpandey12 commented 3 years ago

@gabrielelara Can you please share the code to bind Qlcdnumber inside the L2 layout . It will be of great help

utkarshpandey12 commented 3 years ago

@gabrielelara I am facing the same issue of disappearing tets inside the textitem

zwizw commented 1 year ago

It seems that this issue has been solved several years ago. https://stackoverflow.com/questions/46017022/textitem-added-to-viewbox-disappeare-after-a-couple-of-seconds use "self.getViewBox().autoRange()" to auto scale graph's viewbox and "SetPos(.5,.5)" to place the TextItem in the center position