Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Augment Behavior for XButtonBox accepted() and rejected()
Forum Updated to NodeBB v4.3 + New Features

Augment Behavior for XButtonBox accepted() and rejected()

Scheduled Pinned Locked Moved Solved General and Desktop
xbuttonbox
2 Posts 1 Posters 425 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DougyDrumz
    wrote on last edited by
    #1

    I want to add some behavior before the default behavior for XButtonBox accepted() and rejected(). I did the following:

    connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
    

    The code in my accept() method gets executed, but I'd like to execute the default behavior for accepted() after that. I want to do the same for rejected(). I.e., I don't what to override the behavior for accepted() and rejected(), I want to augment their behavior. How do I go about that?

    Dougy Drumz

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DougyDrumz
      wrote on last edited by
      #2

      Found the problem. Apparently I overrided the behavior because I used a method name know to XButtonBox (accept()). Once I changed that, everything work fine.

      Dougy Drumz

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved