Results 1 to 3 of 3

Thread: Segment fault using a Qt plugin with QTabWidget

  1. #1
    Join Date
    Nov 2007
    Posts
    36
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation Segment fault using a Qt plugin with QTabWidget

    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.
    Attached Files Attached Files

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Segment fault using a Qt plugin with QTabWidget

    Your Qt version is from early 2007.
    J-P Nurmi

  3. #3
    Join Date
    Nov 2007
    Posts
    36
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Segment fault using a Qt plugin with QTabWidget

    Thank you!

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

    Anyway, the Qt version is imposed by the company.

Similar Threads

  1. Extending a plugin in a static library
    By ultim8 in forum Qt Programming
    Replies: 5
    Last Post: 25th March 2010, 16:10
  2. Trouble with plugin system's documentation
    By niklas in forum Qt Programming
    Replies: 8
    Last Post: 6th March 2009, 23:07
  3. Plugin implementation question
    By JPNaude in forum Qt Programming
    Replies: 12
    Last Post: 27th August 2008, 21:24
  4. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 15:13
  5. Segment fault when using Q3ListBox and QFile
    By hiuao in forum Qt Programming
    Replies: 8
    Last Post: 12th May 2007, 12:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.