c++ - Qt4 existing slots are not recognized -


I am currently trying to complete a project using Qt4 and C ++. I'm using buttons to switch between states. I'm stuck at an error by trying to add a button (clicked) signal for text to display the related state:

object :: connect a slot QTextEdit :: append ( "step condition") object does not connect this slot QTextEdit :: append ( "link state")

< P> Only, QTextEdit is definitely an attachment (the Caststring) slot.

Any thoughts?

Some code samples:

  QPushButton * move = new QPushButton ("Move"); Connect (move, signal (clicked), text edit, slot (attachment ("move")); You can not go to an argument (literally) in the append () slot  

While making hints for a slot connection.

You see this as a method signing: < / P>

  slot (attachment (custost)) // or const QString, I'm sure every time the "click" word is clicked when the  

button is clicked Add to You need a textbox, so you should define your own slot that will append


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -