getting Qpainter error while settext for qlineEdit(urgent)
-
Hi all,
I am getting the below error while I am using setText for QlineEdit
(self.ui.Diode_ore.setText("Forward")) this is what I am usingQPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setCompositionMode: Painter not active
QPainter::end: Painter not active, abortedbecause of this in ui I can't able to see full forward. and i am using thread to update the QlineEdit.
This what i am getting in the box F is missing.
-
-
@Gokul2002 said in getting Qpainter error while settext for qlineEdit(urgent):
and i am using thread to update the QlineEdit.
You must not modify any gui elements from outside the gui thread.
-
@Christian-Ehrlicher But i am updating same way with this self.ui.Diode_ore.setText("Reverse") just text is changed at this time it is coming as per text.
-
@Gokul2002 said in getting Qpainter error while settext for qlineEdit(urgent):
But i am updating same
What is not understandable with my comment? Modifing ui stuff from outside the main thread is not allowed. You told us you are doing this and getting errors so what else should we tell you?
-
@Christian-Ehrlicher ok bro then i will try to update outside the thread . If possible is there any other solution please let me know.
-
@Gokul2002 said in getting Qpainter error while settext for qlineEdit(urgent):
If possible is there any other solution please let me know.