Results 1 to 2 of 2

Thread: QObject::connect exception fire

  1. #1
    Join Date
    Apr 2010
    Posts
    2

    Default QObject::connect exception fire

    Hello, Qt guru
    I try to implement QComboBox derived class and process signal currentIndexChanged(int)

    Qt Code:
    1. class ComboBox_impl : public QComboBox
    2. {
    3. Q_OBJECT
    4. public:
    5.  
    6. ComboBox_impl()
    7. {
    8. connect(this, SIGNAL(currentIndexChanged(int)), SLOT(doProcessIndexChanged(int)));
    9. }
    10.  
    11. virtual ~ComboBox_impl()
    12. {
    13. }
    14.  
    15. public Q_SLOTS:
    16. void doProcessIndexChanged(int)
    17. {
    18. }
    19. };
    To copy to clipboard, switch view to plain text mode 

    This works excellent on Mac, but on Windows exception "Access denied" occured on line

    Qt Code:
    1. connect(this, SIGNAL(currentIndexChanged(int)), SLOT(doProcessIndexChanged(int)));
    To copy to clipboard, switch view to plain text mode 

    I use Xcode on Mac and VS 2008 on Windows.

    Qt version on Windows is 4.6.2

    Waiting for your help,
    N.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QObject::connect exception fire

    Please provide more information about the error.

Similar Threads

  1. [Help] QObject::connect
    By vinny gracindo in forum Newbie
    Replies: 3
    Last Post: 20th October 2009, 13:26
  2. qobject connect questions
    By VireX in forum Newbie
    Replies: 5
    Last Post: 20th May 2007, 09:04
  3. Replies: 4
    Last Post: 10th November 2006, 15:38
  4. QStringList in QObject::connect
    By DPinLV in forum Qt Programming
    Replies: 6
    Last Post: 6th September 2006, 17:01

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.