Results 1 to 3 of 3

Thread: QListWidget does not send itemDoubleClicked( QListWidgetItem *) signal in DLL

  1. #1
    Join Date
    Jul 2015
    Posts
    26
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QListWidget does not send itemDoubleClicked( QListWidgetItem *) signal in DLL

    I am trying to make a simple connect in an dll or a .so file. I wrote my own slot doubleClickSelect to
    connect to QListWidget signal itemDoubleClicked( QListWidgetItem *). No signal is received inside
    my .dll or .so library. There is no issue when I take the code out and make a small application.
    Anyone can help?


    Added after 29 minutes:


    more info. This piece of code is inside a derived class of QDialog. QListWidget is the only component in this class.
    If I take out this class out of the .dll or .so and test it, there is no issue.
    Last edited by newcfd; 30th July 2015 at 22:15.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QListWidget does not send itemDoubleClicked( QListWidgetItem *) signal in DLL

    You will need to provide a bit more information for clarity.

    You have a DLL.
    It contains a QDialog derived class.

    Does the dialog contain the list widget?
    Is it added by application code or is the dialog already constructed that way?
    Where to you establish the connect?
    What does the connect return?

    Cheers,
    _

  3. #3
    Join Date
    Jul 2015
    Posts
    26
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QListWidget does not send itemDoubleClicked( QListWidgetItem *) signal in DLL

    Problem solved. I removed export name of my DLL from the derived QDialog class. It worked.


    Added after 37 minutes:


    The list widget is the only widget in the dialog.
    I made the connect in the derived dialog class.
    It is very simple code. I used an event detector
    to check and did not receive any event in the application.
    When I copy the code out and make a standalone application,
    there is no issue.

    The __declspec(dllexport) definition name seems the problem.
    After it is removed, the app runs fine


    Added after 46 minutes:


    The problem does not show up on Windows. It is a pure Linux issue
    Last edited by newcfd; 31st July 2015 at 19:57.

Similar Threads

  1. Replies: 4
    Last Post: 22nd March 2012, 17:07
  2. QListWidget and QListWidgetItem
    By Noxxik in forum Qt Programming
    Replies: 5
    Last Post: 3rd August 2011, 09:59
  3. Replies: 1
    Last Post: 22nd July 2010, 04:58
  4. delete QListWidgetItem in QListWidget
    By sophister in forum Qt Programming
    Replies: 1
    Last Post: 10th May 2009, 15:52
  5. QListWidget add QListWidgetItem
    By fellobo in forum Qt Programming
    Replies: 3
    Last Post: 20th February 2006, 19:37

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.