<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title></title><meta http-equiv="Content-type" content="text/html; charset=UTF-8" /><style type="text/css">p { margin:0px; padding:0px; }</style></head><body style='background-color:rgb(255, 255, 255);background-image:none;background-repeat:repeat;background-position:0% 0%;font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;padding-top:5px;padding-bottom:5px;padding-left:5px;padding-right:5px;'><p><span class="Apple-style-span" style="font-size:medium;">Here is the example requested.</span></p><p><span class="Apple-style-span" style="font-size:medium;"><br /></span></p><p><span class="Apple-style-span" style="font-size:medium;">Compile the example with qmake from<b> /opt/qt4-maemo5/bin</b> which is QT4.6 in PR1.1 and run on the device with QT4.6 libs from PR1.1 installed in <b>/opt/qt4-maemo5/lib</b></span></p><p><span class="Apple-style-span" style="font-size:medium;"><b>~$: ldd TEMP2</b></span></p><p><span class="Apple-style-span" style="font-size:medium;">....</span></p><p><span class="Apple-style-span" style="font-size:medium;"><p>libQtGui.so.4 => /opt/qt4-maemo5/lib/libQtGui.so.4 (0x40142000)</p><p>libQtCore.so.4 => /opt/qt4-maemo5/lib/libQtCore.so.4 (0x40bfd000)</p><div>....</div><div><br /></div></span></p><p><span class="Apple-style-span" style="font-size:medium;"><b>and this is the</b> <b>result</b></span></p><p><span class="Apple-style-span" style="font-size:medium;"><a href="http://bit.ly/bH2ApK" target="_blank" title="http://bit.ly/bH2ApK">http://bit.ly/bH2ApK</a></span></p><p><span class="Apple-style-span" style="font-size:medium;"><br /></span></p><p><span class="Apple-style-span" style="font-size:medium;">Then</span></p><p><span class="Apple-style-span" style="font-size:medium;"><span class="Apple-style-span" style="font-size:12px;"><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;"><span class="Apple-style-span" style="font-size:medium;">Compile the example with qmake from<b> /usr/bin</b> which is QT4.6 in PR1.2 and run on the device with QT4.6 libs from PR1.2 installed in <b>/usr/lib</b></span></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;"><span class="Apple-style-span" style="font-size:medium;"><b>~$: ldd TEMP2</b></span></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;"><span class="Apple-style-span" style="font-size:medium;">....</span></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;"><span class="Apple-style-span" style="font-size:medium;"><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;">libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0x40139000)</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;">libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0x40bf4000)</p><div>....</div></span></p><div><span class="Apple-style-span" style="font-size:medium;"><br /></span></div><div><span class="Apple-style-span" style="font-size:medium;"><b>and you will see this</b></span></div><p><a href="http://bit.ly/bIpRi0" target="_blank" title="http://bit.ly/bIpRi0"><span class="Apple-style-span" style="font-size:medium;">http://bit.ly/bIpRi0</span></a><br /></p><div><span class="Apple-style-span" style="font-size:medium;"><br /></span></div><div><span class="Apple-style-span" style="font-size:medium;">I think some default alignments may have been changed in the styles.</span></div><div><span class="Apple-style-span" style="font-size:medium;"><br /></span></div></span></span></p><p><span class="Apple-style-span" style="font-size:medium;">Thanks again for taking a look.</span></p><p><span class="Apple-style-span" style="font-size:medium;"><br /></span></p><p><span class="Apple-style-span" style="font-size:medium;"><p><span class="Apple-style-span" style="font-size:small;">#include <QtGui></span></p><p><span class="Apple-style-span" style="font-size:small;">#include <QApplication></span></p><p><span class="Apple-style-span" style="font-size:small;"><br /></span></p><p><span class="Apple-style-span" style="font-size:small;">int main(int argc, char* argv[])</span></p><p><span class="Apple-style-span" style="font-size:small;">{</span></p><p><span class="Apple-style-span" style="font-size:small;"> QApplication app(argc, argv);</span></p><p><span class="Apple-style-span" style="font-size:small;"><br /></span></p><p><span class="Apple-style-span" style="font-size:small;"> QDialog *dialog = new QDialog;</span></p><p><span class="Apple-style-span" style="font-size:small;"><br /></span></p><p><span class="Apple-style-span" style="font-size:small;"> QScrollArea *scroll = new QScrollArea;</span></p><p><span class="Apple-style-span" style="font-size:small;"> QWidget* widget = new QWidget(scroll);</span></p><p><span class="Apple-style-span" style="font-size:small;"><br /></span></p><p><span class="Apple-style-span" style="font-size:small;"> // Currency code</span></p><p><span class="Apple-style-span" style="font-size:small;"> QLineEdit *currency = new QLineEdit(dialog);</span></p><p><span class="Apple-style-span" style="font-size:small;"><br /></span></p><p><span class="Apple-style-span" style="font-size:small;"> // Date format</span></p><p><span class="Apple-style-span" style="font-size:small;"> QStringList dateformatlist;</span></p><p><span class="Apple-style-span" style="font-size:small;"> dateformatlist << "dd-MM-yyyy" << "MM-dd-yyyy" << "dd-MMM-yyyy" << "MMM-dd-yyyy";</span></p><p><span class="Apple-style-span" style="font-size:small;"> QComboBox *dateformat = new QComboBox;</span></p><p><span class="Apple-style-span" style="font-size:small;"><br /></span></p><p><span class="Apple-style-span" style="font-size:small;"> // Graph Period</span></p><p><span class="Apple-style-span" style="font-size:small;"> QStringList periodlist;</span></p><p><span class="Apple-style-span" style="font-size:small;"> periodlist << "current day" << "current month" << "current week" << "current year";</span></p><p><span class="Apple-style-span" style="font-size:small;"> QComboBox *graphperiod = new QComboBox;</span></p><p><span class="Apple-style-span" style="font-size:small;"><br /></span></p><p><span class="Apple-style-span" style="font-size:small;"> dialog->setStyleSheet("QDialog { border: 2px solid #8f8f91; ; border-radius: 15px; }");</span></p><p><span class="Apple-style-span" style="font-size:small;"><br /></span></p><p><span class="Apple-style-span" style="font-size:small;"> QFormLayout *layout = new QFormLayout;</span></p><p><span class="Apple-style-span" style="font-size:small;"> layout->addRow("currency code : ", currency);</span></p><p><span class="Apple-style-span" style="font-size:small;"> layout->addRow("display date format : ", dateformat);</span></p><p><span class="Apple-style-span" style="font-size:small;"> layout->addRow("default reports period: ", graphperiod);</span></p><p><span class="Apple-style-span" style="font-size:small;"> widget->setLayout(layout);</span></p><p><span class="Apple-style-span" style="font-size:small;"><br /></span></p><p><span class="Apple-style-span" style="font-size:small;"> QHBoxLayout *mainlayout = new QHBoxLayout;</span></p><p><span class="Apple-style-span" style="font-size:small;"><br /></span></p><p><span class="Apple-style-span" style="font-size:small;"> scroll->setWidget(widget);</span></p><p><span class="Apple-style-span" style="font-size:small;"> mainlayout->addWidget(scroll, 0, Qt::AlignVCenter);</span></p><p><span class="Apple-style-span" style="font-size:small;"><br /></span></p><div><div><span class="Apple-style-span" style="font-size:small;"> dialog->setLayout(mainlayout);</span></div><div><span class="Apple-style-span" style="font-size:small;"> dialog->show();</span></div><div><span class="Apple-style-span" style="font-size:small;"><br /></span></div><div><span class="Apple-style-span" style="font-size:small;"> return app.exec();</span></div><div><span class="Apple-style-span" style="font-size:small;">}</span></div></div><div><br /></div></span></p><font size="3"><p></p><blockquote class="quote" type="cite"><p>----- Original Message -----</p><p>From: Robin Burchell</p><p>Sent: 05/28/10 10:36 AM</p><p>To: Daniil Ivanov</p><p>Subject: Re: QT4.6 with PR1.2 has introduced issues</p><br /><div><div><pre>On Fri, May 28, 2010 at 7:25 AM, Daniil Ivanov <daniil.ivanov@gmail.com> wrote: > Hi Ram! > > Screenshots do not say anything. > Without seeing the code it's not possible to say if it's because of > problems with the way how you constructed layouts of the widgets > or with Qt styles. Seconding what Daniil says - to try pinpoint your issue (and look for workarounds or fixes), please produce a minimal testcase. That is, a *minimal* example (as little code as possible, please! can't emphasise how important this is) which demonstrates the incorrect behaviour you are talking about. :) > Thanks, Daniil. Best, Robin Burchell mob: +447702671419 msn: msn@viroteck.net irc: w00t @ irc.freenode.net twr: http://twitter.com/w00teh lac: http://identi.ca/w00t</pre></div></div></blockquote><p></p><br /></font><p></p><p> </p><div id="editor_signature"><p size="3" style="font-family:Verdana;"> </p></div></body></html>