PDA

View Full Version : Segment fault using a Qt plugin with QTabWidget



tarod
14th July 2009, 09:49
Using the next configuration:

- Operating System: Linux Redhat 5.0
- Qt version: Qt 4.2.3
- gcc (GCC) 4.1.1 20070105

We have developed an own plugin called LatLonTextBox. This control works fine in all situations, but it fails when it is included into a QTabWidget and, using the QDesktopWidget class, it is displayed in the opposite screen to the binary application.

The fail comes when the window is closed and the application deallocates the memory, but how we said before, this only happens if the window is displayed on the opposite screen to the binary application.

The package attached to this message includes:

1. LatLonTextBox library compiled and the source and Makefile to build the LatLonTextBox library.
2. An application that receives a parameter to display a window with QTabWidget and LatLonTextBox on the upper or lower screen. It only fails if the application is launched in the lower screen and the window displayed on the upper screen and viceversa.
3. An application that no fails. It receives a parameter to display a window with QTabWidget and LatLonTextBox on the upper or lower screen. This application never fails because the LatLonTextBox is added directly to the QTabWidget, not to a QWidget added to the QTabWidget.
4. A little readme which explains the content.

Any idea?

You are my last hope...

Thank you very much.

jpn
14th July 2009, 09:52
Your Qt version is from early 2007.

tarod
14th July 2009, 10:27
Thank you!

But... do you think the problem is my Qt version?

Anyway, the Qt version is imposed by the company.