oh sorry...
{
if(event->button() == Qt::LeftButton)
{
//QMouseEvent *e=static_cast<QMouseEvent *>(event);
startPos = event->pos();
if(isWindow())
{
p = event->globalPos() - startPos(); //<-Error : No match for call to '(QPoint)()'
msgBox.setText("is window");
msgBox.exec();
}
else
{
p = event->pos(); //<- Error : No match for call to '(QPoint)()'
msgBox.setText("not window");
msgBox.exec();
}
}
}
void testtab::mousePressEvent(QMouseEvent *event)
{
if(event->button() == Qt::LeftButton)
{
//QMouseEvent *e=static_cast<QMouseEvent *>(event);
startPos = event->pos();
if(isWindow())
{
p = event->globalPos() - startPos(); //<-Error : No match for call to '(QPoint)()'
msgBox.setText("is window");
msgBox.exec();
}
else
{
p = event->pos(); //<- Error : No match for call to '(QPoint)()'
msgBox.setText("not window");
msgBox.exec();
}
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks