java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QObject
io.qt.core.QThread
- All Implemented Interfaces:
QtObjectInterface
,QtSignalBlockerInterface
,QtSignalEmitterInterface
,QtThreadAffineInterface
public class QThread extends QObject
Platform-independent way to manage threads
Java wrapper for Qt class QThread
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QThread.Priority
Java wrapper for Qt enum QThread::PriorityNested classes/interfaces inherited from class io.qt.core.QObject
QObject.MultiSignal, QObject.PrivateSignal0, QObject.PrivateSignal1<A>, QObject.PrivateSignal2<A,B>, QObject.PrivateSignal3<A,B,C>, QObject.PrivateSignal4<A,B,C,D>, QObject.PrivateSignal5<A,B,C,D,E>, QObject.PrivateSignal6<A,B,C,D,E,F>, QObject.PrivateSignal7<A,B,C,D,E,F,G>, QObject.PrivateSignal8<A,B,C,D,E,F,G,H>, QObject.PrivateSignal9<A,B,C,D,E,F,G,H,I>, QObject.QBooleanProperty, QObject.QByteProperty, QObject.QCharProperty, QObject.QComputedBooleanProperty, QObject.QComputedByteProperty, QObject.QComputedCharProperty, QObject.QComputedDoubleProperty, QObject.QComputedFloatProperty, QObject.QComputedIntProperty, QObject.QComputedLongProperty, QObject.QComputedProperty<T>, QObject.QComputedShortProperty, QObject.QDeclarativeConstructor, QObject.QDoubleProperty, QObject.QFloatProperty, QObject.QIntProperty, QObject.QLongProperty, QObject.QProperty<T>, QObject.QShortProperty, QObject.Signal0, QObject.Signal1<A>, QObject.Signal1Default1<A>, QObject.Signal2<A,B>, QObject.Signal2Default1<A,B>, QObject.Signal2Default2<A,B>, QObject.Signal3<A,B,C>, QObject.Signal3Default1<A,B,C>, QObject.Signal3Default2<A,B,C>, QObject.Signal3Default3<A,B,C>, QObject.Signal4<A,B,C,D>, QObject.Signal4Default1<A,B,C,D>, QObject.Signal4Default2<A,B,C,D>, QObject.Signal4Default3<A,B,C,D>, QObject.Signal4Default4<A,B,C,D>, QObject.Signal5<A,B,C,D,E>, QObject.Signal5Default1<A,B,C,D,E>, QObject.Signal5Default2<A,B,C,D,E>, QObject.Signal5Default3<A,B,C,D,E>, QObject.Signal5Default4<A,B,C,D,E>, QObject.Signal5Default5<A,B,C,D,E>, QObject.Signal6<A,B,C,D,E,F>, QObject.Signal6Default1<A,B,C,D,E,F>, QObject.Signal6Default2<A,B,C,D,E,F>, QObject.Signal6Default3<A,B,C,D,E,F>, QObject.Signal6Default4<A,B,C,D,E,F>, QObject.Signal6Default5<A,B,C,D,E,F>, QObject.Signal6Default6<A,B,C,D,E,F>, QObject.Signal7<A,B,C,D,E,F,G>, QObject.Signal7Default1<A,B,C,D,E,F,G>, QObject.Signal7Default2<A,B,C,D,E,F,G>, QObject.Signal7Default3<A,B,C,D,E,F,G>, QObject.Signal7Default4<A,B,C,D,E,F,G>, QObject.Signal7Default5<A,B,C,D,E,F,G>, QObject.Signal7Default6<A,B,C,D,E,F,G>, QObject.Signal7Default7<A,B,C,D,E,F,G>, QObject.Signal8<A,B,C,D,E,F,G,H>, QObject.Signal8Default1<A,B,C,D,E,F,G,H>, QObject.Signal8Default2<A,B,C,D,E,F,G,H>, QObject.Signal8Default3<A,B,C,D,E,F,G,H>, QObject.Signal8Default4<A,B,C,D,E,F,G,H>, QObject.Signal8Default5<A,B,C,D,E,F,G,H>, QObject.Signal8Default6<A,B,C,D,E,F,G,H>, QObject.Signal8Default7<A,B,C,D,E,F,G,H>, QObject.Signal8Default8<A,B,C,D,E,F,G,H>, QObject.Signal9<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default1<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default2<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default3<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default4<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default5<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default6<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default7<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default8<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default9<A,B,C,D,E,F,G,H,I>, QObject.SignalConfiguration
-
Field Summary
Fields Modifier and Type Field Description QObject.PrivateSignal0
finished
QObject.PrivateSignal0
started
static QMetaObject
staticMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
Constructors Modifier Constructor Description QThread()
Overloaded constructor forQThread(io.qt.core.QObject)
withparent = null
.QThread(QObject parent)
protected
QThread(QObject.QDeclarativeConstructor constructor)
Constructor for internal use only.protected
QThread(QtObject.QPrivateConstructor p)
Constructor for internal use only.QThread(String name)
QThread(String name, long stackSize)
QThread(String name, long stackSize, QObject parent)
QThread(String name, QObject parent)
QThread(ThreadGroup group)
QThread(ThreadGroup group, long stackSize)
QThread(ThreadGroup group, long stackSize, QObject parent)
QThread(ThreadGroup group, QObject parent)
QThread(ThreadGroup group, String name)
QThread(ThreadGroup group, String name, long stackSize)
QThread(ThreadGroup group, String name, long stackSize, QObject parent)
QThread(ThreadGroup group, String name, QObject parent)
-
Method Summary
Modifier and Type Method Description static QThread
create(Runnable runnable)
static QThread
create(Runnable runnable, long stackSize)
static QThread
create(Runnable runnable, long stackSize, QObject parent)
static QThread
create(Runnable runnable, QObject parent)
static QThread
create(Runnable runnable, String name)
static QThread
create(Runnable runnable, String name, long stackSize)
static QThread
create(Runnable runnable, String name, long stackSize, QObject parent)
static QThread
create(Runnable runnable, String name, QObject parent)
static QThread
create(ThreadGroup group, Runnable runnable)
static QThread
create(ThreadGroup group, Runnable runnable, long stackSize)
static QThread
create(ThreadGroup group, Runnable runnable, long stackSize, QObject parent)
static QThread
create(ThreadGroup group, Runnable runnable, String name)
static QThread
create(ThreadGroup group, Runnable runnable, String name, long stackSize)
static QThread
create(ThreadGroup group, Runnable runnable, String name, long stackSize, QObject parent)
static QThread
create(ThreadGroup group, Runnable runnable, String name, QObject parent)
static QThread
currentThread()
static long
currentThreadId()
boolean
event(QEvent event)
QAbstractEventDispatcher
eventDispatcher()
protected int
exec()
See QThread::exec()void
exit()
Overloaded function forexit(int)
withretcode = 0
.void
exit(int retcode)
ClassLoader
getContextClassLoader()
String
getName()
ThreadGroup
getThreadGroup()
Thread.UncaughtExceptionHandler
getUncaughtExceptionHandler()
static int
idealThreadCount()
void
interrupt()
boolean
isAlive()
boolean
isDaemon()
boolean
isFinished()
boolean
isInterrupted()
boolean
isInterruptionRequested()
boolean
isRunning()
Thread
javaThread()
boolean
join()
Overloaded function forjoin(io.qt.core.QDeadlineTimer)
withdeadline = new QDeadlineTimer(QDeadlineTimer.ForeverConstant.Forever)
.boolean
join(int time)
boolean
join(QDeadlineTimer deadline)
int
loopLevel()
static void
msleep(int arg__1)
QThread.Priority
priority()
void
quit()
See QThread::quit()void
requestInterruption()
protected void
run()
See QThread::run()void
setContextClassLoader(ClassLoader cl)
void
setDaemon(boolean daemon)
void
setEventDispatcher(QAbstractEventDispatcher eventDispatcher)
void
setName(String name)
void
setPriority(QThread.Priority priority)
void
setStackSize(int stackSize)
protected static void
setTerminationEnabled()
Overloaded function forsetTerminationEnabled(boolean)
withenabled = true
.protected static void
setTerminationEnabled(boolean enabled)
void
setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler handler)
static void
sleep(int arg__1)
int
stackSize()
void
start()
Overloaded function forstart(io.qt.core.QThread.Priority)
witharg__1 = io.qt.core.QThread.Priority.InheritPriority
.void
start(QThread.Priority arg__1)
void
terminate()
static QThread
thread(Thread thread)
static void
usleep(int arg__1)
static void
yieldCurrentThread()
Methods inherited from class io.qt.core.QObject
blockSignals, childEvent, children, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connectNotify, customEvent, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnectNotify, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, eventFilter, findChild, findChild, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, inherits, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, qt_metacast, receivers, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, startTimer, thread, timerEvent, toString, tr, tr, tr
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class. -
finished
-
started
-
-
Constructor Details
-
QThread
public QThread()Overloaded constructor for
QThread(io.qt.core.QObject)
withparent = null
. -
QThread
-
QThread
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QThread
Constructor for internal use only. It is not allowed to call the declarative constructor from inside Java. -
QThread
-
QThread
-
QThread
-
QThread
-
QThread
-
QThread
-
QThread
-
QThread
-
QThread
-
QThread
-
QThread
-
QThread
-
-
Method Details
-
eventDispatcher
-
exec
See QThread::exec()
-
exit
Overloaded function for
exit(int)
withretcode = 0
. -
exit
-
isFinished
-
isInterruptionRequested
-
isRunning
-
loopLevel
-
priority
-
quit
public final void quit()See QThread::quit()
-
requestInterruption
-
setEventDispatcher
-
setPriority
-
setStackSize
-
stackSize
-
start
public final void start()Overloaded function for
start(io.qt.core.QThread.Priority)
witharg__1 = io.qt.core.QThread.Priority.InheritPriority
. -
start
-
terminate
public final void terminate() -
join
Overloaded function for
join(io.qt.core.QDeadlineTimer)
withdeadline = new QDeadlineTimer(QDeadlineTimer.ForeverConstant.Forever)
. -
join
-
join
-
event
-
run
See QThread::run()
-
currentThread
-
currentThreadId
public static long currentThreadId() -
idealThreadCount
public static int idealThreadCount() -
msleep
public static void msleep(int arg__1) -
setTerminationEnabled
protected static void setTerminationEnabled()Overloaded function for
setTerminationEnabled(boolean)
withenabled = true
. -
setTerminationEnabled
protected static void setTerminationEnabled(boolean enabled) -
sleep
public static void sleep(int arg__1) -
usleep
public static void usleep(int arg__1) -
yieldCurrentThread
public static void yieldCurrentThread() -
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
-
create
public static QThread create(ThreadGroup group, Runnable runnable, String name, long stackSize, QObject parent) -
getThreadGroup
-
setName
-
getName
-
setDaemon
public void setDaemon(boolean daemon) -
isDaemon
public final boolean isDaemon() -
setUncaughtExceptionHandler
-
getUncaughtExceptionHandler
-
setContextClassLoader
-
getContextClassLoader
-
javaThread
-
thread
-
isAlive
public final boolean isAlive() -
isInterrupted
public final boolean isInterrupted() -
interrupt
public final void interrupt()
-