Τη Πέμπτη, 23 Ιουλίου 2020 - 5:58:15 μ.μ. UTC+3, ο χρήστης pilkrow slash 
έγραψε:
>
> Hello, I have little experience about pyqtgraph and sometimes simple 
> things look difficult.
> What I'm looking for is to display a histogramLUT widget into a gui 
> created using qt Designer.
> I import the .ui file but I don't know how I can insert it into my code 
> and connect it with an imageItem.
>
> [image: scrnsht1.png]
>
> [image: scrnsht0.png]
>
>
>
> class MainWindow(QMainWindow, ProcessDicom):
> …
> …
> uic.loadUi(‘CEtb26.ui’, self)
> …
> …
> self.im1 = pg.ImageItem(img,levels=[0, 255])
> self.histWindow = self.findChild(PlotWidget, ‘wu’)
> self.histWindow.setImageItem(self.im1)
>
>
> but the only thing I get is an empty plot!
>
>
> Thank you for your time.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/40b4b3ed-d601-4171-bb7e-c2f9a150a4d8o%40googlegroups.com.

Reply via email to