Results 1 to 2 of 2

Thread: problem with changed() signal emitted by QGraphicsScene

  1. #1
    Join Date
    Jul 2007
    Posts
    90
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default problem with changed() signal emitted by QGraphicsScene

    Hi All,

    I am facing problem with use of changed( const QList<QRectF> & region) signal emitted by QGraphicsScene whenever scene contents are changed.

    Connecting this signal to one of my SLOT returns false saying there is no such signal in QGraphicsScene.

    I writing like this :

    qDebug()<<connect(scene, SIGNAL(changed(const QList<QRectF> &region ) ), this, SLOT(sceneModified( const QList<QRectF> & region)));

    I am getting following debug information

    Object::connect: No such signal QGraphicsScene::changed(QList<QRectF>&region)


    Any suggestion or hint will be helpfull.

    Thanks in advance
    ~Sanjay

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problem with changed() signal emitted by QGraphicsScene

    The correct syntax for connect is
    Qt Code:
    1. connect(scene, SIGNAL(changed(const QList<QRectF> &) ), this, SLOT(sceneModified( const QList<QRectF> &)));
    To copy to clipboard, switch view to plain text mode 
    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. creating treeWidgetItem using emitted signal from thread class
    By santosh.kumar in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2007, 08:37
  2. Problem emitting signal from a static function
    By Valheru in forum Qt Programming
    Replies: 21
    Last Post: 12th June 2007, 14:48
  3. Replies: 3
    Last Post: 15th April 2007, 19:16
  4. Signal problem in Qline Edit
    By awalesminfo in forum Newbie
    Replies: 1
    Last Post: 3rd April 2006, 09:13
  5. Problem with Signal and Slots
    By Kapil in forum Installation and Deployment
    Replies: 2
    Last Post: 10th February 2006, 08: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.