[Qt-interest] Screen is getting white

Sujan Dasmahapatra sdh at lmglasfiber.com
Fri Apr 17 11:43:23 CEST 2009


Dear Friends 

I have developed a software where I am loading multiple geometries one
by one and it's appearing on the screen  as well as the file name is
being updated in my QtableWidget. But I do't know why sometimes the
screen is getting white and no geometry is visible.I fixed the scene
background  color as black so there's no reason for it to get white.
After analyzing the problem I came to know that the geometry is actually
being uploaded but the screen is getting white and the geometry is not
visible.But if I continue the operation and  if I load another geometry
then all the geomries are visible.I don't know why it's sometimes
getting white and invisible.

Could anyone tell me the possible reason.Here I am writing the code
which is managing my Scene and View.

Please help me 

     

 

     scene->addItem(geometry[countMainWindow]);

     tableWidget->fileNameUpdate(fileGeometry[countMainWindow],
geometry[countMainWindow]);

     view->fitInView(geometry[countMainWindow],Qt::KeepAspectRatio);
//This two functions are fitting the geometry on the view

     view->setSceneRect(xmin,-ymax,width,height);

     view->show();

     statusBar()->showMessage(tr("Part loaded"),2000);

     consoleView->append(fileGeometry[countMainWindow] + " is loaded");

     countMainWindow++;

     firstTime = false;

 

 

Kind regards, 
LM Glasfiber R&D (India) Pvt. Ltd.
 
Sujan Dasmahapatra
Project Engineer - CFD
  
Telephone: +91 80 66470248 
Mobile: 
E-mail: sdh at lmglasfiber.com <mailto:sdh at lmglasfiber.com>  

 

 

 

 

--------------------------------------------------------------

This e-mail and any attachments are confidential. If you are not the
named or intended recipient, please notify the sender immediately and do
not disclose the contents to any other person, use it for any purpose or
store or copy the information in any medium. Any unauthorized
disclosure, use or storage is prohibited and might be unlawful.



-------------------------------------------------

This E-mail and any attachments are confidential. If you are not the named or intended receipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose or store or copy the information in any medium. Any unauthorized disclosure, use or storage is prohibited and might be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090417/d7c652b7/attachment.html 


More information about the Qt-interest-old mailing list