Signals & Slots — Qt for Python Signals and slots are loosely coupled: A class which emits a signal neither knows nor cares which slots receive the signal. Qt’s signals and slots mechanism ensures that if you connect a signal to a slot, the slot will be called with the signal’s parameters at the right time. Signals and slots can take any number of arguments of any type.
Existují i další funkce, např.: g_signal_emit_by_name(). vygenerování signálu zadaného jména g_signal_emit(). vygenerování signálu se zadaným ID g_signal_stop_emission_by_name(). přerušení zpracování signálu, zbývající handlery nebudou … Pokročilé programování v jazyce C pro chemiky (C3220) hlavičkových souborů, pokud v nich potřebujeme použít Knihovna Qt obsahuje různé interaktivní prvky ("widgety"), příslušnou třídu. Petr Bravenec: Kmymoney X. - tvorba modulů m_action = actionCollection()->addAction("openattachedfile", this, SLOT(slotOpenAttachedFile()) m_action->setText(i18n("Open Attached File")) m_action->setEnabled(false); connect(KMyMoneyPlugin::PluginLoader::instance(), Signal(plug …
Qt/C++, signály, sloty a vlánka (vyřešeno)
New-style Signal and Slot Support — PyQt 4.12.3 Reference Guide A bound signal has connect(), disconnect() and emit() methods that implement the associated functionality. It also has a signal attribute that is the signature of the signal that would be returned by Qt’s SIGNAL() macro. A signal may be overloaded, ie. a signal with a particular name may support more than one signature. Passing another variable to a SLOT in QObject::connect | Qt Forum [quote author="peppe" date="1297240228"]In your (very simple) case, if it's applicable, you can just provide a default argument for the slot. Otherwise, simply create another slot that calls the setText one with the string you want.[/quote]Indeed.
why bother - let Qt do all the magic :) Just name your slot (in the mainWindow) like that: void on_