
Originally Posted by
Uwe
Compare your code with how the wheel is used in the radio and event_filter examples.
Uwe
Thank you for your reply. My code is generated by Qt Designer but even so I still checked it against the examples and nothing seems out of the ordinary. It includes qwt_wheel.h, initializes it, and adds it to the interface. It just seems that the wheel doesn't work like some of its source code is undefined...
#ifndef UI_USERINTERFACE_H
#define UI_USERINTERFACE_H
...
#include "qwt_wheel.h"
QT_BEGIN_NAMESPACE
class Ui_UserInterface
{
public:
...
...
{
...
yWheel
->setObjectName
(QString::fromUtf8("yWheel"));
horizontalLayout_3->addWidget(yWheel);
...
}
etc...
#ifndef UI_USERINTERFACE_H
#define UI_USERINTERFACE_H
...
#include "qwt_wheel.h"
QT_BEGIN_NAMESPACE
class Ui_UserInterface
{
public:
...
QwtWheel *yWheel;
...
void setupUi(QMainWindow *UserInterface)
{
...
yWheel = new QwtWheel(worldView);
yWheel->setObjectName(QString::fromUtf8("yWheel"));
horizontalLayout_3->addWidget(yWheel);
...
}
etc...
To copy to clipboard, switch view to plain text mode
It ends up looking like this and it won't move or respond to anything:
Screen shot 2012-08-31 at 4.25.46 PM.png
Bookmarks