Qt 5.0.2 Trace inside Qt source code
-
Compiling from source is quite a drag. If you're starting I'd suggest you get the latest installed in the Download section. It's compiled with Debug info.
Anyway, why do you need to trace inside Qt source code? You should only have to trace inside your code, unless you're developping the API yourself.
-
My problem is that i'm using a progress bar wen i try to set its value the second time. it give me a segmentation fault. So i want to see what is going on? why the first setvalue() is working and not the second? and they are running in same thread (thread 1).
-
Hi,
Without some code it's a bit hard to help you, could you show us ?
-
hello,
i can't give the code but i'll explain to you,
so i have a mainwindow with a progressbar in the status bar, and in another class i'm calculating the value of the progress bar the send it by a signal:
connect(this, SIGNAL(barValueChanged(int )), wind , SLOT(setNewValue(int ))); and i emit the signal :
emit barValueChanged(newValue);
and in the mainwindow the slot set the value of the progressbar :
void MainWindow::setNewValue(int val){
test->setValue(val); // test is the name of my progressbar
update();
}
the signal triggers the signal correctly, but when executing "setValue" it give me a segmentation fault.
So thats my problem, if you need more infos just tell me. And also it would be great if you can show me how to trace in side qt source code. -
Does test point to a valid object ?
-
Where do you initialize it ? Do you create it multiple times ? Do you delete it ?
-
Please, enclose your code with code tags, it will make it readable.
This workaround seems a bit fishy even if it works
-
Hi again,
i want it to thank you for your help. For the solution i also find it fishy. But i want to tell you that i create a multiple progressdialog. I ll explain : i have a class and i create several objects of it, so each one has his own progressdialog. And i double checked the pointer is valid (my mistake). so do you think that can be where the problem is coming from ?