BadWindow II
BadWindow II
- Subject: BadWindow II
- From: Tad Thurston <email@hidden>
- Date: Mon, 14 Jul 2003 16:07:38 -0500
Ok, bad form to reply to myself, but here is a little code that
illustrates the problem:
----------------------------------------------
#include <qapplication.h>
#include <qmainwindow.h>
class MyMainWindow : public QMainWindow
{
public:
MyMainWindow( QWidget* parent = 0, const char* name = 0 ) {}
};
int main( int argc, char** argv )
{
QApplication a( argc, argv );
QMainWindow m;
a.setMainWidget( &m );
m.show();
return a.exec();
}
-----------------------------------------------------------
Now, when run as above, I see a little QMainWindow. When
using the derived class, though (replace QMainWindow with
MyMainWindow) I get the XError: BadWindow problem.
Am I really being dumb about something, or could this be a bug?
---
Tad Thurston
email@hidden
http://wanerious.com
cell:(405) 401-7535
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.