Results 1 to 3 of 3

Thread: Segment fault using a Qt plugin with QTabWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  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

Similar Threads

  1. Extending a plugin in a static library
    By ultim8 in forum Qt Programming
    Replies: 5
    Last Post: 25th March 2010, 15:10
  2. Trouble with plugin system's documentation
    By niklas in forum Qt Programming
    Replies: 8
    Last Post: 6th March 2009, 22:07
  3. Plugin implementation question
    By JPNaude in forum Qt Programming
    Replies: 12
    Last Post: 27th August 2008, 20:24
  4. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 14:13
  5. Segment fault when using Q3ListBox and QFile
    By hiuao in forum Qt Programming
    Replies: 8
    Last Post: 12th May 2007, 11: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
  •  
Qt is a trademark of The Qt Company.