D
D
Denis Soldatov2015-11-12 18:53:08
Qt
Denis Soldatov, 2015-11-12 18:53:08

Qt. How to pass an argument to a slot other than a signal?

There is an object of the QLineEdit class and an object of the QTextBrowser class. Initially, I wanted to make the input line in the QLineEdit object displayed in caps in the TextBrowser. I more or less figured out the principles of signals and slots, but how to pass the signal argument to the slot, but redone? I tried to write my own slot, where the string is processed by the toUpper () method and displayed on the TextBrowser by the setText () method, but something does not work. Please explain what needs to be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2015-11-12
@LChost

I tried to write my own slot, where the string is processed by the toUpper () method and displayed on the TextBrowser by the setText () method, but something does not work.

Code - in the studio!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question