7 #include <QApplication> 9 #include <fwGui/registry/macros.hpp> 11 #include "fwGuiQt/Cursor.hpp" 14 fwGuiRegisterMacro( ::
fwGuiQt::Cursor, ::fwGui::ICursor::REGISTRY_KEY );
35 QCursor qtCursor(Qt::ArrowCursor);
39 qtCursor.setShape(Qt::BusyCursor);
42 qtCursor.setShape(Qt::WaitCursor);
45 qtCursor.setShape(Qt::CrossCursor);
47 case ICursor::DEFAULT:
48 qtCursor.setShape(Qt::BusyCursor);
52 qApp->setOverrideCursor(qtCursor);
60 qApp->restoreOverrideCursor();
Defines the generic cursor for IHM.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
The namespace fwGuiQt contains classes which provide the implementation of the Gui using Qt library...
virtual FWGUIQT_API void setDefaultCursor() override
Set the default cursor.
virtual FWGUIQT_API void setCursor(::fwGui::ICursor::CursorType cursor) override
Set the cursor.