title: Does Qt support virtual pure slots?
body: <p>My GUI project in <code>Qt</code> has a lot of "configuration pages" classes which all inherit directly from <code>QWidget</code>.</p>
  
  <p>Recently, I realized that all these classes share 2 commons slots (<code>loadSettings()</code> and <code>saveSettings()</code>).</p>
  
  <p>Regarding this, I have two questions:</p>
  
  <ul>
  <li>Does it make sense to write a intermediate base abstract class (lets name it <code>BaseConfigurationPage</code>) with these two slots as virtual pure methods ? (Every possible configuration page <strong>will always</strong> have these two methods, so I would say "yes")</li>
  <li>Before I do the heavy change in my code (if I have to) : does Qt support virtual pure slots ? Is there anything I should be aware of ?</li>
  </ul>
  
  <p>Here is a code example describing everything:</p>
  
  <pre><code>class BaseConfigurationPage : public QWidget
  {
    // Some constructor and other methods, irrelevant here.
  
    public slots:
  
      virtual void loadSettings() = 0;
      virtual void saveSettings() = 0;
  };
  
  class GeneralConfigurationPage : public BaseConfigurationPage
  {
    // Some constructor and other methods, irrelevant here.
  
    public slots:
  
      void loadSettings();
      void saveSettings();
  };
  </code></pre>