3ds Max C++ API Reference
|
This event is sent to the Qt control before the toolclip widget is showing up. More...
#include <TCEvent.h>
Public Member Functions | |
TCEvent (QWidget *refWidget, const QPoint &pos, const QPoint &globalPos) | |
Constructs a TCEvent with the given toolclip reference widget. More... | |
~TCEvent () override | |
void | setToolClipAreaRect (const QRect &tcAreaRect) |
Defines a custom sensitive toolclip area on which the toolclip will show up or closes when the mouse has left the area. More... | |
QRect | toolClipAreaRect () const |
Returns the custom sensitive toolclip area, if set, otherwise an invalid rectangle. More... | |
void | setToolClipRefWidget (QWidget *refWidget) |
Defines a custom widget that is taken as reference for the sensitive toolclip area. More... | |
QWidget * | toolClipRefWidget () const |
Returns the toolclip reference widget on which the toolclip will be displayed. More... | |
void | setToolClipKey (const QString &key) |
Sets the key for which the toolclip widget should display a toolclip. More... | |
QString | toolClipKey () const |
Returns the key for which the toolclip widget should display a toolclip. More... | |
void | setToolTip (const QString &tooltip) |
Defines a simple tooltip which is displayed by the toolclip widget if there is no matching toolclip key available. More... | |
QString | toolTip () const |
Returns a simple tooltip which is displayed by the toolclip widget if there is no matching toolclip key available. More... | |
void | setToolClipAlign (Qt::Orientation align) |
Defines the alignment of the toolclip widget. More... | |
Qt::Orientation | toolClipAlign () const |
Returns the alignment of the toolclip widget. More... | |
void | setSkipLevel1 (bool skipIt) |
Sets the progressive tooltip to show immediately its level 2 presentation. More... | |
bool | skipLevel1 () const |
Returns whether or not the progressive tooltip's level 1 is skipped. More... | |
Static Public Member Functions | |
static QEvent::Type | type () |
Returns the Qt generated event type of the TCEvent. More... | |
This event is sent to the Qt control before the toolclip widget is showing up.
The toolclip will show up if either a matching toolclip key is found for the widget or if the widget has a simple tooltip set. If you don't want the advanced toolclips to show up you can just ignore the event by calling event->ignore() in your widgets event() function. If the event is ignored the procedure will fall back to the ordinary Qt tooltip mechanism, which means you'll recieve a QEvent::ToolTip event. The TCEvent provides the possibility to define a sensitive area on which the toolclip will show up or closes when the mouse has left the area. By default this area is the bounding rectangle of the widget receiving the toolclip. However sometimes this could just be a sub area or sub widget of the widget receiving the toolclip.
TCEvent | ( | QWidget * | refWidget, |
const QPoint & | pos, | ||
const QPoint & | globalPos | ||
) |
Constructs a TCEvent with the given toolclip reference widget.
|
override |
void setToolClipAreaRect | ( | const QRect & | tcAreaRect | ) |
Defines a custom sensitive toolclip area on which the toolclip will show up or closes when the mouse has left the area.
Note: The area rectangle which should be defined in relative coordinates will be internally translated back to screen coordinates using the toolclip widget as base reference.
tcAreaRect | The toolclip area in relative coordinates. |
QRect toolClipAreaRect | ( | ) | const |
Returns the custom sensitive toolclip area, if set, otherwise an invalid rectangle.
void setToolClipRefWidget | ( | QWidget * | refWidget | ) |
Defines a custom widget that is taken as reference for the sensitive toolclip area.
The toolclip area will be the bounding rectangle of the reference widget. By default the reference widget will be the same widget receiving the TCEvent.
refWidget | The widget that should be taken as reference for displaying the toolclip. |
QWidget* toolClipRefWidget | ( | ) | const |
Returns the toolclip reference widget on which the toolclip will be displayed.
By default the reference widget will be the same widget receiving the TCEvent.
|
static |
Returns the Qt generated event type of the TCEvent.
void setToolClipKey | ( | const QString & | key | ) |
Sets the key for which the toolclip widget should display a toolclip.
If there is no matching toolclip found for the key, the toolclip widget will display the simple tooltip. By default the TCEvent's key is initialized with the the reference widget's object name.
key | The key for which the toolclip widget should display a toolclip. |
QString toolClipKey | ( | ) | const |
Returns the key for which the toolclip widget should display a toolclip.
If there is no matching toolclip found for the key, the toolclip widget will display the simple tooltip. By default the TCEvent's key is initialized with the the reference widget's object name.
void setToolTip | ( | const QString & | tooltip | ) |
Defines a simple tooltip which is displayed by the toolclip widget if there is no matching toolclip key available.
By default the TCEvent's tooltip is initialized with the tooltip of the reference widget.
tooltip | The simple tooltip that should be shown if there is no toolclip available. |
QString toolTip | ( | ) | const |
Returns a simple tooltip which is displayed by the toolclip widget if there is no matching toolclip key available.
By default the TCEvent's tooltip is initialized with the tooltip of the reference widget.
void setToolClipAlign | ( | Qt::Orientation | align | ) |
Defines the alignment of the toolclip widget.
The toolclip can be aligned horizontally or vertically to the mouse over area, which is either given by the bounding rectangle of the reference widget or, if specified, by the toolclip area rectangle. By default the alignment will be vertically so that the toolclip is shown beneath the mouse over area.
align | The alignment of the toolclip widget to the mouse over area. |
Qt::Orientation toolClipAlign | ( | ) | const |
Returns the alignment of the toolclip widget.
The toolclip can be aligned horizontally or vertically to the mouse over area, which is either given by the bounding rectangle of the reference widget or, if specified, by the toolclip area rectangle. By default the alignment will be vertically so that the toolclip is shown beneath the mouse over area.
void setSkipLevel1 | ( | bool | skipIt | ) |
Sets the progressive tooltip to show immediately its level 2 presentation.
The progressive tooltip can show several levels of information, the first and most simple one is a brief description of the feature, the second one is a more developed and detailed presentation describing more specifically the feature. This method allows to show immediately the level 2 if set to true. Otherwise the level 2 will appear just after the level 1 has been shown. Set by default to false.
skipIt | The value to be set to skipLevel1 attribute. |
bool skipLevel1 | ( | ) | const |
Returns whether or not the progressive tooltip's level 1 is skipped.
By default the progressive tooltip is set to show the level 1.