All Questions
3 questions
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
...
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 ...
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....