hey pdolbey- thanks for chiming in. True, I used to have that line
SoQtExaminerViewer *eviewer = new SoQtExaminerViewer(this);
SoQtExaminerViewer *eviewer = new SoQtExaminerViewer(this);
To copy to clipboard, switch view to plain text mode
before you posted your example of how you do it, which I now follow:
//++ main.cpp
int main(argc, *argv[])
{
Window window;
//++ window.cpp
Window::Window()
{
coinWidget = new CoinWidget;
//++ coinwidget.cpp
{
SoQt::init(this);
model = new Model(this);
model->setDefaultScene();
//++ model.cpp
Model::Model(QWQWidget *parent, const char * name, const SbBool embed)
: SoQtExaminerViewer( parent, name, embed, SoQtFullViewer::BUILD_POPUP, SoQtViewer::BROWSER, TRUE)
{
QWidget *widget
= this
->buildWidget
(this
->getParentWidget
());
this->setBaseWidget(widget);
//++ main.cpp
int main(argc, *argv[])
{
Window window;
//++ window.cpp
Window::Window()
{
coinWidget = new CoinWidget;
//++ coinwidget.cpp
CoinWidget::CoinWidget(QWidget *parent) : QWidget(parent)
{
SoQt::init(this);
model = new Model(this);
model->setDefaultScene();
//++ model.cpp
Model::Model(QWQWidget *parent, const char * name, const SbBool embed)
: SoQtExaminerViewer( parent, name, embed, SoQtFullViewer::BUILD_POPUP, SoQtViewer::BROWSER, TRUE)
{
QWidget *widget = this->buildWidget(this->getParentWidget());
this->setBaseWidget(widget);
To copy to clipboard, switch view to plain text mode
So, I'm not sure how this affects your take on this. Given this method, is "its possible that on Windows this is done by subclassing the native WindowProc" still something to worry about?
Again, the confusing thing to me: both of the Window class event filters
// OR
bool Window::eventFilter(QObject *obj, QEvent *event)
// OR
void Window::mouseMoveEvent(QMouseEvent *event)
To copy to clipboard, switch view to plain text mode
*will* recognize the mouse Move event... but only if the button is pressed.
Bookmarks