Module qtjambi
Package io.qt.core

Class QScopedPointer<O>

java.lang.Object
io.qt.core.QScopedPointer<O>
All Implemented Interfaces:
AutoCloseable

public final class QScopedPointer<O> extends Object implements AutoCloseable

Java wrapper for Qt class QScopedPointer to be used inside a try-with-resource block.

Example:

try(var pointer = QScopedPointer.disposing(new QDialog())){
    QDialog dialog = pointer.get();
    dialog.exec();
}
// dialog is disposed