Skip to main content

All Questions

Tagged with
0 votes
0 answers
27 views

How to use placeholder inside a function? [duplicate]

I've made a function that looks like this: def sok_funk(self, lagnr, skivenr, dato, x): self.lagnr = lagnr self.skivenr = skivenr self.dato = dato self.x = x ...
Tor Harry's user avatar
0 votes
0 answers
124 views

Keep the QLineEdit's Placeholder even if the user types

How can I keep my QLineEdit's placeholder shown even if the user types? To extend this, I am creating a text box. I want to add an autocomplete feature to the input box. Now, the question is how to do ...
BladeOfLightX's user avatar
0 votes
1 answer
162 views

pyqt5: How to hide placeholder when widget is not enabled?

Simple solution may be: self.placeholder_text = "......." ... ... #trigger the following code when enabled state of self.widget_name is changed if(self.widget_name.isEnabled()): self....
Chris P's user avatar
  • 2,351