Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
HintWindow.h
Go to the documentation of this file.
1#pragma once
2#include <QLabel>
3#include <misc/global.h>
4
5namespace sf
6{
10class _MISC_CLASS HintWindow : public QLabel
11{
12 public:
16 explicit HintWindow(QWidget* parent);
17
21 void setPosition(const QPoint& pt);
22
26 void setOffset(const QPoint& pt);
27
31 void setOffset(int x, int y);
32
36 void setActive(bool active);
37
38 protected:
42 QPoint _offset{0, 0};
43};
44
45}// namespace sf
Floating window like tool tip available to the script engine as well.
Definition HintWindow.h:11
void setPosition(const QPoint &pt)
Sets the global position to appear at.
void setOffset(int x, int y)
Sets the offset from the given position to appear at.
HintWindow(QWidget *parent)
Constructor.
void setOffset(const QPoint &pt)
Sets the offset from the given position to appear at.
void setActive(bool active)
Activates or deactivates the window (calls setVisible() for now).
#define _MISC_CLASS
Definition misc/global.h:40
Definition Application.h:10