<div dir="ltr">I have noticed that! Clearly they thought of it! I tried grabbing the y coordinate of the legend and changing it. That also does not work! It would be nice to have a solution to this.</div><div class="gmail_extra"><br><div class="gmail_quote">On 11 April 2018 at 10:03, Mike Chinander <span dir="ltr"><<a href="mailto:chinander@gmail.com" target="_blank">chinander@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Not sure of a solution to this, but noticed that unlike other uses of Qt::Alignment flags, the QLegend docs say, "If you set more than one flag, the result is undefined."<div><br></div><div><a href="https://doc.qt.io/qt-5.10/qlegend.html#alignment-prop" target="_blank">https://doc.qt.io/qt-5.10/<wbr>qlegend.html#alignment-prop</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Apr 11, 2018 at 8:51 AM, Christopher Probst <span dir="ltr"><<a href="mailto:christop.probst@gmail.com" target="_blank">christop.probst@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I would like to place the legend of  chart that uses Qt charts at the top right of the view. I would have expected something like this to work:</div><div><br></div><div>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,0)">m_chart</span>-><span style="color:rgb(0,103,124)">legend</span>()-><span style="color:rgb(0,103,124)">setAlignmen<wbr>t</span>(<span style="color:rgb(128,0,128)">Qt</span>::<span style="color:rgb(128,0,128)">AlignTop| Qt::AlignRight</span>)</pre><pre style="margin:0px;text-indent:0px"><br></pre><pre style="margin:0px;text-indent:0px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Unfortunately it does not! Is there a direct way to  make the<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"> legends (right or left) be top aligned rather then middle.?</span></span></pre><pre style="margin:0px;text-indent:0px"><br></pre><pre style="margin:0px;text-indent:0px"><pre style="color:rgb(34,34,34);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;margin:0px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline"><span>Thanks,</span></span></pre><pre style="color:rgb(34,34,34);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;margin:0px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;display:inline"><span>Christopher </span></span></pre>

<br></pre></div></div>
<br></div></div>______________________________<wbr>_________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org" target="_blank">Interest@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/interest" rel="noreferrer" target="_blank">http://lists.qt-project.org/ma<wbr>ilman/listinfo/interest</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org">Interest@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/interest" rel="noreferrer" target="_blank">http://lists.qt-project.org/<wbr>mailman/listinfo/interest</a><br>
<br></blockquote></div><br></div>