i dont know. on my system everything wotks well, try this test-code for buttons:
#include <QtGui>
#include "../QSkinWindows/QSkinWidget.h"
#include "../QSkinWindows/QSkinMainWindow.h"
int main(int argc, char* argv[])
{
a.setStyle("plastique");
QSkinWidget *wid = new QSkinWidget();
wid->setWindowTitle("QSkinWidget");
g->addWidget(pb);
wid->setLayout(g);
wid->show();
QSkinMainWindow *mw = new QSkinMainWindow();
mw->setWindowTitle("QSkinMainWindow");
g2->addWidget(pb2);
centralWidget.setLayout(g2);
mw->setCentralWidget(¢ralWidget);
mw->show();
return a.exec();
}
#include <QtGui>
#include "../QSkinWindows/QSkinWidget.h"
#include "../QSkinWindows/QSkinMainWindow.h"
int main(int argc, char* argv[])
{
QApplication a(argc, argv);
a.setStyle("plastique");
QSkinWidget *wid = new QSkinWidget();
wid->setWindowTitle("QSkinWidget");
QHBoxLayout *g = new QHBoxLayout();
QPushButton* pb = new QPushButton("test", wid);
g->addWidget(pb);
wid->setLayout(g);
wid->show();
QSkinMainWindow *mw = new QSkinMainWindow();
QWidget centralWidget;
mw->setWindowTitle("QSkinMainWindow");
QHBoxLayout *g2 = new QHBoxLayout();
QPushButton* pb2 = new QPushButton("test", ¢ralWidget);
g2->addWidget(pb2);
centralWidget.setLayout(g2);
mw->setCentralWidget(¢ralWidget);
mw->show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
the application should only close if you click on the "X"-Button. and i don't us grabMouse... could you post a snippet of your code or are you using my test-application?
Bookmarks