title: Stretch video player with vlc-qt?
body: <p>I want to make qt application that contains video play function.<br>
  Already, I can play video using <a href="https://github.com/vlc-qt/vlc-qt" rel="nofollow noreferrer">VLC-QT Library</a>, and its <a href="https://github.com/vlc-qt/examples" rel="nofollow noreferrer">Examples</a><br>
  Some reason, I want stretch preview.</p>
  
  <p>I found change aspect ratio, but that is only support with enum</p>
  
  <pre><code>/*
  enum Ratio {
      Original,
      Ignore, !&lt; QML aspect ratio only
      R_16_9,
      R_16_10,
      R_185_100,
      R_221_100,
      R_235_100,
      R_239_100,
      R_4_3,
      R_5_4,
      R_5_3,
      R_1_1
  }
  */
  Vlc::Ratio r = Vlc::Ratio::R_1_1;
  
  ui-&gt;video-&gt;setDefaultAspectRatio(r);
  ui-&gt;video-&gt;setAspectRatio(r);
  ui-&gt;video-&gt;setCurrentCropRatio(r);
  ui-&gt;video-&gt;setDefaultCropRatio(r);
  ui-&gt;video-&gt;setCropRatio(r);
  
  ui-&gt;video-&gt;enableDefaultSettings();
  </code></pre>
  
  <p><strong>Current:</strong>  </p>
  
  <p><a href="https://i.stack.imgur.com/3Ursd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3Ursd.png" alt="Preview"></a>
  <strong>I want:</strong><br>
  <a href="https://i.stack.imgur.com/AraFu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AraFu.png" alt="Want"></a></p>
  
  <p>How I can configure <strong>stretch mode</strong>?</p>