[Qt-interest] Two questions regarding QStatusBar

Patric userqt at gmail.com
Tue Jul 7 02:36:06 CEST 2009


Thank you very much for your answers, I understand.
I don't know why this confused me.

Best regards,
Patric

----- Original Message ----- 
From: "Malyushytsky, Alex" <alex at wai.com>
To: <qt-interest at trolltech.com>
Sent: Tuesday, July 07, 2009 3:03 AM
Subject: Re: [Qt-interest] Two questions regarding QStatusBar


> Have you noticed extra parameter insertWidget has over addWidget?
> insertWidget () allows you to specify an order, addWidget() just adds 
> widget without letting you specify the position.
>
> Regards,
>  Alex
>
>
>
> From: qt-interest-bounces at trolltech.com 
> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Patric
> Sent: Monday, July 06, 2009 3:46 PM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] Two questions regarding QStatusBar
>
> Hello,
> I have two simple questions here.
> The first one is for the difference between addWidget and insertWidget. I 
> didn't found a difference when I tested them in my code.
> The second one is about the attached file. I need to add two widgets, one 
> QLabel and one QProgress bar in my status bar.
> Unfortunately, the QProgressBar is added with some strange space after 
> it... (the red circle)
>
> Any ideas what might be the reason ? Here is my code :
>
> // setup the status bar progress widget
> statusBarProgressBar = new QProgressBar();
> statusBarProgressBar->setMaximumSize(85, 14);
> ui->statusBar->addPermanentWidget(statusBarProgressBar);
>
> // setup the status bar IP widget
> statusBarIPLabel = new QLabel();
> ui->statusBar->addPermanentWidget(statusBarIPLabel );
>
> http://doc.trolltech.com/4.5/qstatusbar.html#addPermanentWidget
>
> Thank you very much in advance. :)
>
> Best regards,
> Patric
>
>
> ---------------------------------------------------------------------------------------------------
> Weidlinger Associates, Inc. made the following annotations.
>
> "This message and any attachments are solely for the intended recipient 
> and may contain confidential or privileged information. If you are not the 
> intended recipient, any disclosure, copying, use, or distribution of the 
> information included in this message and any attachments is prohibited. If 
> you have received this communication in error, please notify us by reply 
> e-mail and immediately and permanently delete this message and any 
> attachments. Thank you."
>
> "Please consider our environment before printing this email."
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
> 




More information about the Qt-interest-old mailing list