I get a sigsev when the mouse drag on a tab selector. The code is this
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include <qapplication.h>
#include <qpushbutton.h>
#include <ktabwidget.h>
class MyWidget : public KTabWidget
{
public:
MyWidget( QWidget *parent=0, const char *name=0 );
};
MyWidget::MyWidget( QWidget *parent, const char *name )
: KTabWidget( parent, name )
{
QPushButton *button1 = new QPushButton( "Hello 1", this, "hello1" );
QPushButton *button2 = new QPushButton( "Hello 2", this, "hello2" );
addTab( button1, "Button1" );
addTab( button2, "Button2" );
}
int main( int argc, char **argv )
{
QApplication a( argc, argv );
MyWidget w;
a.setMainWidget( &w );
w.show();
return a.exec();
}
|
I compile it with 'g++ -lkdeui -lkdecore -I/usr/include/kde -I/usr/include/qt3 tab.cpp' (the last two are upcase i, I mean the include paths) and this is a backtrace:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#0 0xb7c353e7 in KInstance::config () from /usr/lib/libkdecore.so.4
#1 0xb7c2e284 in KGlobal::config () from /usr/lib/libkdecore.so.4
#2 0xb7c2e84c in KGlobalSettings::dndEventDelay () from /usr/lib/libkdecore.so.4
#3 0xb7f60ff5 in KTabBar::mouseMoveEvent () from /usr/lib/libkdeui.so.4
#4 0x412d4e70 in QWidget::event () from /usr/lib/libqt-mt.so.3
#5 0x413c7a92 in QTabBar::event () from /usr/lib/libqt-mt.so.3
#6 0x412423ff in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#7 0x41241af4 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#8 0x411d6e70 in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3
#9 0x411d4afe in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#10 0x411eb9d4 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#11 0x41254758 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#12 0x41254608 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#13 0x41242651 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#14 0x0804be5d in main ()
|
This does not happens if I use a qtabwidget.