Maya Qt Link Error with QMetaObject

Maya Qt Link Error with QMetaObject

Anonymous
Not applicable
899 Views
2 Replies
Message 1 of 3

Maya Qt Link Error with QMetaObject

Anonymous
Not applicable

When i try to follow the example code of HelixQtCmd.cpp / .h

 

class HelixButton : public QPushButton
{
Q_OBJECT

public:
HelixButton(const QString& text, QWidget* parent = 0);
virtual ~HelixButton();

public slots:
void createHelix(bool checked);

private:
float fOffset;
};

 

-- the Q_OBJECT  macro -- results in a link error with QMetaObject

 

Anyone know why?

0 Likes
900 Views
2 Replies
Replies (2)
Message 2 of 3

vijaya.prakash
Alumni
Alumni

Hi,

 

Building the Qt plug-ins are required a special attention in Maya 2017. Did you set the DEVKIT_LOCATION & MAYA_LOCATION environment variables?

 

Please follow the steps in the following blog post.

http://around-the-corner.typepad.com/adn/2016/07/-maya-2017-devkit-building-qt-plug-ins-instructions.

 

Thanks,

Vijaya Prakash.

0 Likes
Message 3 of 3

Anonymous
Not applicable

Is it possible to build a Qt plugin inside of Visual Studios?

0 Likes