C++ (Qt)stackWidget->setCurrentIndex( 100500 ); // ТАК НЕЛЬЗЯ
C++ (Qt)QMetaObject::invokeMethod( stackWidget, "setCurrentIndex", Qt::QueuedConnection, QGenericReturnArgument(), Q_ARG( int, 100500 ) );
C++ (Qt)QMetaObject::invokeMethod( stackWidget, "setCurrentIndex", Qt::QueuedConnection, Q_ARG( int, 0 ) );
QMetaObject::invokeMethod( stackWidget, "setCurrentIndex", Qt::QueuedConnection, Q_ARG( int, 0 ) );
C++ (Qt)class Thread : public QThread{Q_OBJECT ...Q_SIGNALS: void resultIsReady( const QString& ); protected: void run() { ... emit resultIsReady( "here must be resulted text" ); ... }}; // usage{ ... QLineEdit* le = new QLineEdit(); Thread* thr = new Thread(); connect( thr, SIGNAL( resultIsReady( QString ) ), le, SLOT( setText( QString ) ) ); ...}