Summary: | qt4 programm crashed after click in LineEdit | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Yury Zhuravlev <stalkerg> |
Component: | [OLD] Library | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED WORKSFORME | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Yury Zhuravlev
2005-06-29 13:14:19 UTC
Which qt4 program crashed? Please be more verbose... Example programm(simple text and lineedit):
#include <QApplication>
#include <QFont>
#include <QLCDNumber>
#include <QPushButton>
#include <QLineEdit>
#include <QSlider>
#include <QVBoxLayout>
#include <QWidget>
class MyWidget : public QWidget
{
public:
MyWidget(QWidget *parent = 0);
};
MyWidget::MyWidget(QWidget *parent)
: QWidget(parent)
{
QPushButton *quit = new QPushButton("Quit");
quit->setFont(QFont("Times", 18, QFont::Bold));
QLineEdit *edit = new QLineEdit();
connect(quit, SIGNAL(clicked()), qApp, SLOT(quit()));
QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget(quit);
layout->addWidget(edit);
setLayout(layout);
}
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MyWidget widget;
widget.show();
return app.exec();
}
//--------
>gdb qtchat
(gdb) run
Starting program: /home/stalkerg/MyProjects/qtchat/qtchat
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 20628)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 20628)]
0xb78a07ea in XCreateIC () from /usr/lib/libX11.so.6
hm... i use X.org 6.8.2-r1
You forgot to reopen... (In reply to comment #3) > You forgot to reopen... Reopen what? I test on qtconfig(qt4) programm too. on X.org 2.8.99.13 too... I just compiled your program and it works just fine here. Are you using the Qt4 in portage? Are you using the latest version? Are you sure you are linking against the proper Qt 4 libraries at run time? (In reply to comment #6) > I just compiled your program and it works just fine here. Are you using the > Qt4 in portage? Yes. >Are you using the latest version? Yes!!! > Are you sure you are > linking against the proper Qt 4 libraries at run time? yes... when i can view proper qt 4 lib or not? 'ldd your_program_name' will show you which libraries it links against Also, what command did you use to compile it? Do the demos/examples that come with qt work? (you have to use the examples USE flag when emerging to get them installed) [stalkerg@stalkerg]$ldd qtchat
linux-gate.so.1 => (0xffffe000)
libQtGui.so.4 => /usr/lib/qt4/libQtGui.so.4 (0xb7a52000)
libpng.so.3 => /usr/lib/libpng.so.3 (0xb7a20000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb7a17000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb79ff000)
libXi.so.6 => /usr/lib/libXi.so.6 (0xb79f7000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb79ef000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb79eb000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb79e1000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7970000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7949000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb793a000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb786b000)
libQtCore.so.4 => /usr/lib/qt4/libQtCore.so.4 (0xb7726000)
libz.so.1 => /lib/libz.so.1 (0xb7716000)
libdl.so.2 => /lib/libdl.so.2 (0xb7712000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb76c0000)
libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6
(0xb75f2000)
libm.so.6 => /lib/libm.so.6 (0xb75cf000)
libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libgcc_s.so.1
(0xb75c6000)
libc.so.6 => /lib/libc.so.6 (0xb74b0000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb7490000)
/lib/ld-linux.so.2 (0xb7fa3000)
it is good?
> Do the demos/examples that come with qt work?
No but, this bug in designer too!!!
makefile i creat qmake tools.
shrug - i cannot reproduce it |