Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. A Model dialog causes a qgraphicsscene to paint in the background
Forum Updated to NodeBB v4.3 + New Features

A Model dialog causes a qgraphicsscene to paint in the background

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 3 Posters 2.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mrjjM mrjj

    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.

    keksi venksiK Offline
    keksi venksiK Offline
    keksi venksi
    wrote on last edited by
    #4

    @mrjj
    Thanks for your info ... Will wait for the next day

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #5

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      keksi venksiK 1 Reply Last reply
      1
      • SGaistS SGaist

        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.

        keksi venksiK Offline
        keksi venksiK Offline
        keksi venksi
        wrote on last edited by
        #6

        @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 .

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #7

          How are you opening that dialog ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          keksi venksiK 1 Reply Last reply
          0
          • SGaistS SGaist

            How are you opening that dialog ?

            keksi venksiK Offline
            keksi venksiK Offline
            keksi venksi
            wrote on last edited by
            #8

            @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 ?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #9

              I meant are you calling exec on your dialog or open ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              keksi venksiK 1 Reply Last reply
              0
              • SGaistS SGaist

                I meant are you calling exec on your dialog or open ?

                keksi venksiK Offline
                keksi venksiK Offline
                keksi venksi
                wrote on last edited by
                #10

                @SGaist

                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

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #11

                  Ok, I just realized that I have misread something. What is your "model dialog" doing ?

                  I've understood that it was a modal dialog.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  keksi venksiK 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Ok, I just realized that I have misread something. What is your "model dialog" doing ?

                    I've understood that it was a modal dialog.

                    keksi venksiK Offline
                    keksi venksiK Offline
                    keksi venksi
                    wrote on last edited by
                    #12

                    @SGaist

                    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

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #13

                      Can you explain then how you are creating your modal dialog ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved