Unsolved A Model dialog causes a qgraphicsscene to paint in the background
-
Any one Please reply back
-
Hi
People will :) But can be in different time zones from you
so please allow 24 hours before bumping the post.In the meantime you can enhance your post with
platform + Qt version.Also please show the code to display the dialog.
-
@mrjj
Thanks for your info ... Will wait for the next day -
Hi,
A modal dialog doesn't block the painting from happening. If you move a modal dialog over any application, it is expected than what was under the dialog before you move the dialog appear properly after you moved it.
-
@SGaist
Hi,Thanks for your reply . You are correct . It will paint but my problem is when ever we open a model dialog above the qgraphicsscene . At first everything looks fine . But when we resize the dialog unwantedly the scene flickers(Ab normal behavior ) .Also when ever the focus comes to dialog the scene's view portion width flickers .
-
How are you opening that dialog ?
-
@SGaist
Hi ,,,
"How are you opening that dialog ? "
there is a button above the qgraphicsscene if i click on it a normal slot will open the dialog (custom dialog) ... this is what the normal scenario ...Is it ok or by which way you are asking ?
-
I meant are you calling exec on your dialog or open ?
-
I'm calling it with show() functionality ...
I would like make a note such that our custom dialog is not like dialog kind of thing its a widget which will be shown as a dialog -
Ok, I just realized that I have misread something. What is your "model dialog" doing ?
I've understood that it was a modal dialog.
-
Yup its a modal dialog ... I have a lot of modal dialog in my app when ever some modal dialog has been opened or after opening the modal dialog if I do some operation in the dialog(Like FocusEvent is activated ) the QGraphicsScene flickers or it looks like scene rendering happens with some irregular value ...
Note : If I do something in the modal dialog it reflects some irregular behaviour with the QGraphicsScene -
Can you explain then how you are creating your modal dialog ?