Since in modern Qt you connect signals to functions/lambdas, is there a reason to declare slots anymore?

In other words, is there any difference between:

  class Foo: public QObject {
      Q_OBJECT

  public slots:
      void bar();
  };

and:

  class Foo: public QObject {
      Q_OBJECT
  public:

      void bar();
  };

I can connect to Foo::bar either way. If I don't intend to ever use the old-style connect syntax, is there a reason to have "public slots:" anymore?

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to