Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Italian
  4. Delucidazione sintassi slot
Qt 6.12 LTS is out! See what's new in the release blog

Delucidazione sintassi slot

Scheduled Pinned Locked Moved Solved Italian
2 Posts 2 Posters 1.1k 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.
  • PollyP Offline
    PollyP Offline
    Polly
    wrote on last edited by Polly
    #1

    Mi è capitato mentre guardavo alcuni esempi la seguente riga

    connect(quit,&QAction::triggered,qApp,QApplication::quit);
    

    e ho notato che la funzione QApplication::quit è scritta senza le () e funziona ugualmente.
    Inoltre nel testo del programma non compare la macro Q_OBJECT. Mi sapete spiegare perchè?

    V 1 Reply Last reply
    0
    • PollyP Polly

      Mi è capitato mentre guardavo alcuni esempi la seguente riga

      connect(quit,&QAction::triggered,qApp,QApplication::quit);
      

      e ho notato che la funzione QApplication::quit è scritta senza le () e funziona ugualmente.
      Inoltre nel testo del programma non compare la macro Q_OBJECT. Mi sapete spiegare perchè?

      V Offline
      V Offline
      vivaladav
      wrote on last edited by
      #2

      @Polly Questa è la nuova sintassi in Qt 5.
      Puoi leggerne di più a riguardo nella pagina del wiki: New Signal Slot Syntax.

      Davide Coppola
      blog | Linkedin | Twitter

      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
      • Unsolved