Results 1 to 7 of 7

Thread: disabling the signal event

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2009
    Location
    The Netherlands and Spain
    Posts
    150
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    6
    Thanked 18 Times in 18 Posts

    Default Re: disabling the signal event

    As MrD. suggested, you have to do this:
    disconnect(ui->spinBox, SIGNAL(valueChanged (int)), 0, 0);

    You may read the QObject Class Reference for more info about this.

  2. #2
    Join Date
    Aug 2008
    Posts
    134
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10
    Thanked 3 Times in 3 Posts

    Default Re: disabling the signal event

    If you want to block all signals of particular control use
    Qt Code:
    1. blockSignals()
    To copy to clipboard, switch view to plain text mode 
    function.

  3. The following user says thank you to navi1084 for this useful post:

    basslo (13th July 2012)

  4. #3
    Join Date
    Jul 2012
    Posts
    1
    Thanks
    1

    Default Re: disabling the signal event

    Quote Originally Posted by navi1084 View Post
    If you want to block all signals of particular control use
    Qt Code:
    1. blockSignals()
    To copy to clipboard, switch view to plain text mode 
    function.
    thanks navi, it s exactly what i wanted.

  5. #4
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    29
    Thanked 50 Times in 47 Posts

    Default Re: disabling the signal event

    But you can also perform your task through disconnect also.
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

Similar Threads

  1. disabling mouse event
    By elessaar in forum Qt Programming
    Replies: 7
    Last Post: 17th September 2008, 09:03
  2. event loop isStarted() signal?
    By Xerion in forum Qt Programming
    Replies: 1
    Last Post: 18th February 2008, 21:45
  3. TableView navigate signal/event
    By skuda in forum Qt Programming
    Replies: 2
    Last Post: 25th January 2008, 15:52
  4. QTreeWidgetItem signal or event
    By db in forum Newbie
    Replies: 1
    Last Post: 20th October 2007, 14:18
  5. What's the relationship between signal/slot and event?
    By twosnowman in forum Qt Programming
    Replies: 4
    Last Post: 11th January 2006, 17:13

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.