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. I want to perform the same method "func" in the close button slot method and the close event in the dialog box, and found that "func" will be repeatedly called, how to avoid this situation
Forum Updated to NodeBB v4.3 + New Features

I want to perform the same method "func" in the close button slot method and the close event in the dialog box, and found that "func" will be repeatedly called, how to avoid this situation

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 182 Views
  • 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.
  • C Offline
    C Offline
    canid
    wrote on last edited by canid
    #1

    I want to perform the same method "func" in the close button slot method and the close event in the dialog box, and found that "func" will be repeatedly called, how to avoid this situation

    aha_1980A 1 Reply Last reply
    0
    • C canid

      I want to perform the same method "func" in the close button slot method and the close event in the dialog box, and found that "func" will be repeatedly called, how to avoid this situation

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @canid why do you need it in the close button slot at all?

      As you noticed, it is called in the close event.

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      1

      • Login

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