<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="Osso Notes">
<title></title></head>
<body>
<p><b><b><b></b></b></b>
<br><b><font color="#999999"><b><b>--</font></b></b></b>
<br><b><font color="#999999"><b><b>Sent from my Nokia N900</font></b></b></b>
<br><b><b><b></b></b></b>
<br><b><b><b>----- Original message -----</b></b></b>
<br><b><b><b>> Hi Ram!</b></b></b>
<br><b><b><b>> </b></b></b>
<br><b><b><b>>  Could you please post this questions to FN DiBo?</b></b></b>
<br><b><b><b>A</b></b></b>
<br><b><b><b>Hi Daniil, yes of course i can.</b></b></b>
<br><b><b><b>I was asked for examples here so i replied.</b></b></b>
<br><b><b><b>FN DiBo = forum nokia discussion board ?</b></b></b>
<br><b><b><b> </b></b></b>
<br><b><b><b>>  BTW, why do create dialog dynamically and never free it?</b></b></b>
<br><b><b><b></b></b></b>
<br><b><b><b>This is an example only to show the issue.</b></b></b>
<br><b><b><b></b></b></b>
<br><b><b><b>> Thanks, Daniil.</b></b></b>
<br><b><b><b>> </b></b></b>
<br><b><b><b>> On Tue, Jun 1, 2010 at 10:59 AM, Ram Kurvakat <<a href="mailto:rkmaemo@gmx.com">rkmaemo@gmx.com</a>> wrote:</b></b></b>
<br><b><b><b>> > Daniil, Robin or anyone</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > did you get a chance to look at this one please ?</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > thanks for your time,</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > cheers</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > krk969</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > ----- Original Message -----</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > From: Ram Kurvakat</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > Sent: 05/29/10 10:32 AM</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > To: Maemo-developers, <a href="mailto:viroteck@viroteck.net">viroteck@viroteck.net</a>, Daniil Ivanov</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > Subject: Re: QT4.6 with PR1.2 has introduced issues</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > Here is the example requested.</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > Compile the example with qmake from /opt/qt4-maemo5/bin which is QT4.6</b></b></b>
<br><b><b><b>> > in PR1.1 and run on the device with QT4.6 libs from PR1.1 installed in</b></b></b>
<br><b><b><b>> > /opt/qt4-maemo5/lib</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > ~$: ldd TEMP2</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > ....</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > libQtGui.so.4 => /opt/qt4-maemo5/lib/libQtGui.so.4 (0x40142000)</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > libQtCore.so.4 => /opt/qt4-maemo5/lib/libQtCore.so.4 (0x40bfd000)</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > ....</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > and this is the result</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > <a href="http://bit.ly/bH2ApK">http://bit.ly/bH2ApK</a></b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > Then</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > Compile the example with qmake from /usr/bin which is QT4.6 in PR1.2</b></b></b>
<br><b><b><b>> > and run on the device with QT4.6 libs from PR1.2 installed in /usr/lib</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > ~$: ldd TEMP2</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > ....</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0x40139000)</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0x40bf4000)</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > ....</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > and you will see this</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > <a href="http://bit.ly/bIpRi0">http://bit.ly/bIpRi0</a></b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > I think some default alignments may have been changed in the styles.</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > Thanks again for taking a look.</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > #include <QtGui></b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > #include <QApplication></b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > int main(int argc, char* argv[])</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > {</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > QApplication app(argc, argv);</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > QDialog *dialog = new QDialog;</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > QScrollArea *scroll = new QScrollArea;</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > QWidget* widget = new QWidget(scroll);</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > // Currency code</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > QLineEdit *currency = new QLineEdit(dialog);</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > // Date format</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > QStringList dateformatlist;</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > dateformatlist << "dd-MM-yyyy" << "MM-dd-yyyy" << "dd-MMM-yyyy" <<</b></b></b>
<br><b><b><b>> > "MMM-dd-yyyy";</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > QComboBox *dateformat = new QComboBox;</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > // Graph Period</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > QStringList periodlist;</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > periodlist << "current day" << "current month" << "current week" <<</b></b></b>
<br><b><b><b>> > "current year";</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > QComboBox *graphperiod = new QComboBox;</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > dialog->setStyleSheet("QDialog { border: 2px solid #8f8f91; ;</b></b></b>
<br><b><b><b>> > border-radius: 15px; }");</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > QFormLayout *layout = new QFormLayout;</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > layout->addRow("currency code : ", currency);</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > layout->addRow("display date format : ", dateformat);</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > layout->addRow("default reports period: ", graphperiod);</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > widget->setLayout(layout);</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > QHBoxLayout *mainlayout = new QHBoxLayout;</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > scroll->setWidget(widget);</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > mainlayout->addWidget(scroll, 0, Qt::AlignVCenter);</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > dialog->setLayout(mainlayout);</b></b></b>
<br><b><b><b>> > dialog->show();</b></b></b>
<br><b><b><b>> > return app.exec();</b></b></b>
<br><b><b><b>> > }</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > ----- Original Message -----</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > From: Robin Burchell</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > Sent: 05/28/10 10:36 AM</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > To: Daniil Ivanov</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > Subject: Re: QT4.6 with PR1.2 has introduced issues</b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > On Fri, May 28, 2010 at 7:25 AM, Daniil Ivanov</b></b></b>
<br><b><b><b>> > <<a href="mailto:daniil.ivanov@gmail.com">daniil.ivanov@gmail.com</a>> wrote: > Hi Ram! > > Screenshots do not say</b></b></b>
<br><b><b><b>> > anything. > Without seeing the code it's not possible to say if it's</b></b></b>
<br><b><b><b>> > because of > problems with the way how you constructed layouts of the</b></b></b>
<br><b><b><b>> > widgets > or with Qt styles.  Seconding what Daniil says - to try</b></b></b>
<br><b><b><b>> > pinpoint your issue (and look for workarounds or fixes), please</b></b></b>
<br><b><b><b>> > produce a minimal testcase.  That is, a *minimal* example (as little</b></b></b>
<br><b><b><b>> > code as possible, please! can't emphasise how important this is) which</b></b></b>
<br><b><b><b>> > demonstrates the incorrect behaviour you are talking about. :)  ></b></b></b>
<br><b><b><b>> > Thanks, Daniil.  Best,  Robin Burchell mob: +447702671419 msn:</b></b></b>
<br><b><b><b>> > <a href="mailto:msn@viroteck.net">msn@viroteck.net</a> irc: w00t @ irc.freenode.net twr:</b></b></b>
<br><b><b><b>> > <a href="http://twitter.com/w00teh">http://twitter.com/w00teh</a> lac: <a href="http://identi.ca/w00t">http://identi.ca/w00t</a></b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b>> > </b></b></b>
<br><b><b><b></b></b></b><br></p>
</body>
</html>