Qt-interest Archive, June 2007
Dock Widget layout problem
Message 1 in thread
Hi everyone,
I ran into problem with dockwidget layout. When we add/remove
dockwidget from the main window, the widget will be vertically centered
within the dock area. Manually resize the dock widget would fix the
problem (but of course we don't want to have to do that :)
I also tried to send a resizeEvent to the dock widget right after it's
shown, it would fix the problem but we would see the widget flickered
(from moving from center position to top position)
I cant really attach a small seciton of our code for your to see but I
can reproduce the problem with QT samples "dockwidget"
1. Bring up dockwidget application. (Picture tmp.png)
2. Close "Customers" dock widget
3. Close "Paragraphs" dock widget
4. Open "Customers" dock widget again. (Picture tmp2.png)
I appreciate your help very much!
Tamara Nguyen
--
[ signature omitted ]


Message 2 in thread
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Oops! I forgot to mention that I am using Qt 4.2.3 and VS 2005<br>
Thanks,<br>
<div class="moz-signature">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="ProgId" content="Word.Document">
<meta name="Generator" content="Microsoft Word 10">
<meta name="Originator" content="Microsoft Word 10">
<link rel="File-List" href="signature_files/filelist.xml">
<title>Tamara Nguyen</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>tamaran</o:Author>
<o:LastAuthor>tamaran</o:LastAuthor>
<o:Revision>2</o:Revision>
<o:TotalTime>1</o:TotalTime>
<o:Created>2006-03-06T17:57:00Z</o:Created>
<o:LastSaved>2006-03-06T17:57:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>113</o:Words>
<o:Characters>649</o:Characters>
<o:Company>PDF Solutions, Inc.</o:Company>
<o:Lines>5</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>761</o:CharactersWithSpaces>
<o:Version>10.6735</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
<div class="Section1">Tamara.<br>
<br>
<br>
</div>
</div>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:tamara.nguyen@xxxxxxx">tamara.nguyen@xxxxxxx</a> wrote:
<blockquote cite="mid46643E5A.3040000@xxxxxxx" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
<br>
Hi everyone,<br>
I ran into problem with dockwidget layout. When we add/remove
dockwidget from the main window, the widget will be vertically centered
within the dock area. Manually resize the dock widget would fix the
problem (but of course we don't want to have to do that :)<br>
I also tried to send a resizeEvent to the dock widget right after it's
shown, it would fix the problem but we would see the widget flickered
(from moving from center position to top position)<br>
<br>
I cant really attach a small seciton of our code for your to see but I
can reproduce the problem with QT samples "dockwidget"<br>
<br>
1. Bring up dockwidget application. (Picture tmp.png)<br>
2. Close "Customers" dock widget<br>
3. Close "Paragraphs" dock widget<br>
4. Open "Customers" dock widget again. (Picture tmp2.png)<br>
<br>
I appreciate your help very much!<br>
Tamara Nguyen<br>
<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="ProgId" content="Word.Document">
<meta name="Generator" content="Microsoft Word 10">
<meta name="Originator" content="Microsoft Word 10">
<link rel="File-List" href="signature_files/filelist.xml">
<title>Tamara Nguyen</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>tamaran</o:Author>
<o:LastAuthor>tamaran</o:LastAuthor>
<o:Revision>2</o:Revision>
<o:TotalTime>1</o:TotalTime>
<o:Created>2006-03-06T17:57:00Z</o:Created>
<o:LastSaved>2006-03-06T17:57:00Z</o:LastSaved>
<o:Pages>1</o:Pages>
<o:Words>113</o:Words>
<o:Characters>649</o:Characters>
<o:Company>PDF Solutions, Inc.</o:Company>
<o:Lines>5</o:Lines>
<o:Paragraphs>1</o:Paragraphs>
<o:CharactersWithSpaces>761</o:CharactersWithSpaces>
<o:Version>10.6735</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
<div class="Section1">
<p class="MsoNormal"><span style="color: rgb(51, 51, 153);">Tamara
Nguyen</span></p>
<p class="MsoNormal"><i><span
style="font-size: 10pt; color: rgb(51, 51, 153);">Software
Engineer</span></i></p>
<p class="MsoNormal"><span
style="font-size: 10pt; color: rgb(51, 51, 153);">PDF Solutions,
Inc.</span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; color: rgb(51, 51, 153);">(408) 283 5655</span><span
style="font-size: 8pt; color: rgb(0, 0, 153);"><br>
</span><span style="font-size: 7pt; color: rgb(153, 153, 153);">CONFIDENTIALITY
NOTICE: This e-mail is meant only for the intended recipient. It
contains information that may be confidential and privileged. Unless
you are
the intended recipient (or authorized to receive for the intended
recipient),
you are prohibited from reviewing, using, copying, forwarding,
retaining or
disclosing to anyone this e-mail or any information in the e-mail
(including
any attachment). If you have received this e-mail in error, please send
a reply
e-mail only to the sender </span><span
style="font-size: 7pt; color: blue;">(<a
href="mailto:tamara.nguyen@xxxxxxx">tamara.nguyen@xxxxxxx</a>) </span><span
style="font-size: 7pt; color: rgb(153, 153, 153);">and delete this
message from your
system. <span class="GramE">My apologies for any inconvenience, and
thank
you in advance for your cooperation.</span></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<br>
<hr size="4" width="90%"><br>
<center><img src="cid:part1.02090608.04090106@xxxxxxx"></center>
<p><br>
</p>
<hr size="4" width="90%"><br>
<center><img src="cid:part2.08060906.02040001@xxxxxxx"></center>
</blockquote>
</body>
</html>


