Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. VS Qt 槽函数
Qt 6.11 is out! See what's new in the release blog

VS Qt 槽函数

Scheduled Pinned Locked Moved Unsolved Chinese
2 Posts 2 Posters 507 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.
  • H Offline
    H Offline
    Herxinsasa
    wrote on last edited by
    #1

    VS Qt,为什么用on_名_操作的函数命名方式,槽函数会触发两次,例如on_loginPushButton_clicked(),设置弹窗会出现两次~

    1 Reply Last reply
    0
    • goldenhawkingG Offline
      goldenhawkingG Offline
      goldenhawking
      wrote on last edited by goldenhawking
      #2

      "connect" method have been called for Two times.

      First, on_object_signal will automatically connect signals and slots when the object is just created,
      I guess that you have another "connect" call in your code . With Qt' s automatic connection approach, No extra "connect" function calls needed, .

      Qt is the best C++ framework I've ever met.

      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