[Qt-interest] Screen is getting white
Alexandre Beraud
aberaud at infflux.com
Fri Apr 17 11:56:15 CEST 2009
Hi,
It looks like your main events loop is blocked somehow. You shall make
the heavy calculations in a different thread and use signals to refresh
the display in the main thread.
Regards,
Alex
Sujan Dasmahapatra a écrit :
>
> 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.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
BERAUD Alexandre
Ingénieur Développement
Infflux - Informatique & Flux
Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
Mail: aberaud at infflux.com
Visitez notre site : www.infflux.com
More information about the Qt-interest-old
mailing list