Originally Posted by
Erlendhg
viewPort()->setCursor() does work, but when I compile the program to an *.exe, and run it, that line makes it crash.
The weird about this is that in my new little test program
#include "myclass.h"
{
viewport()->setCursor(Qt::PointingHandCursor);
}
myClass::~myClass()
{
}
#include "myclass.h"
myClass::myClass(QWidget *parent)
: QTextEdit(parent)
{
viewport()->setCursor(Qt::PointingHandCursor);
}
myClass::~myClass()
{
}
To copy to clipboard, switch view to plain text mode
that actually does work, but not in my big program.
*scratching my head*
Well, this does work for me anyway:
viewPort->setCursor(Qt::PointingHandCursor);
setViewport(viewPort);
QWidget *viewPort = viewport();
viewPort->setCursor(Qt::PointingHandCursor);
setViewport(viewPort);
To copy to clipboard, switch view to plain text mode
Bookmarks