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. [Bug] Why QDialog display empty rarely.
Forum Updated to NodeBB v4.3 + New Features

[Bug] Why QDialog display empty rarely.

Scheduled Pinned Locked Moved Unsolved General and Desktop
17 Posts 5 Posters 1.6k Views 1 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.
  • brucezcgB Offline
    brucezcgB Offline
    brucezcg
    wrote on last edited by
    #7

    Just like the dialog doesn't call paint() automatically.

    1 Reply Last reply
    0
    • jsulmJ jsulm

      @brucezcg Can you also show how you create the dialog and show it?
      If the dialog is empty then most probably your event loop is blocked.

      brucezcgB Offline
      brucezcgB Offline
      brucezcg
      wrote on last edited by
      #8

      @jsulm Thanks.

      I create the dialog in a Wdiget's constructor function like this.
      {
      ……
      mDialogBank = new DlgBank(this);
      }

      //Click button display the dialog.
      void Wgt_Tuning::on_btnBank_clicked()
      {
      //Display the dialog.
      if (QDialog::Accepted == mDialogBank->exec()) {
      }
      }

      jsulmJ 1 Reply Last reply
      0
      • brucezcgB brucezcg

        @jsulm Thanks.

        I create the dialog in a Wdiget's constructor function like this.
        {
        ……
        mDialogBank = new DlgBank(this);
        }

        //Click button display the dialog.
        void Wgt_Tuning::on_btnBank_clicked()
        {
        //Display the dialog.
        if (QDialog::Accepted == mDialogBank->exec()) {
        }
        }

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #9

        @brucezcg On which platform do you have this behaviour?
        You also could try to run through debugger and check the stack trace when this happens.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        brucezcgB 1 Reply Last reply
        1
        • jsulmJ jsulm

          @brucezcg On which platform do you have this behaviour?
          You also could try to run through debugger and check the stack trace when this happens.

          brucezcgB Offline
          brucezcgB Offline
          brucezcg
          wrote on last edited by
          #10

          @jsulm Qt 5.12.3 mingw7 32bit.
          This phenomena is never occur on my PC, It occurred on my college's PC rarely.

          jsulmJ 1 Reply Last reply
          0
          • brucezcgB brucezcg

            @jsulm Qt 5.12.3 mingw7 32bit.
            This phenomena is never occur on my PC, It occurred on my college's PC rarely.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #11

            @brucezcg What is the OS on that PC and graphics driver?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            brucezcgB 1 Reply Last reply
            0
            • jsulmJ jsulm

              @brucezcg What is the OS on that PC and graphics driver?

              brucezcgB Offline
              brucezcgB Offline
              brucezcg
              wrote on last edited by
              #12

              @jsulm Win10 & Intel HD Graphics 520

              jsulmJ 1 Reply Last reply
              0
              • brucezcgB brucezcg

                @jsulm Win10 & Intel HD Graphics 520

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #13

                @brucezcg Try to update the graphics driver.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                brucezcgB 1 Reply Last reply
                1
                • jsulmJ jsulm

                  @brucezcg Try to update the graphics driver.

                  brucezcgB Offline
                  brucezcgB Offline
                  brucezcg
                  wrote on last edited by
                  #14

                  @jsulm But this is very rarely. most of the time the dialog display well.

                  mrjjM 1 Reply Last reply
                  0
                  • brucezcgB brucezcg

                    @jsulm But this is very rarely. most of the time the dialog display well.

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #15

                    @brucezcg
                    Hi
                    maybe a rare driver bug. :)

                    In any case, if possible you should test if a new driver helps on your college's PC.

                    brucezcgB 1 Reply Last reply
                    0
                    • mrjjM mrjj

                      @brucezcg
                      Hi
                      maybe a rare driver bug. :)

                      In any case, if possible you should test if a new driver helps on your college's PC.

                      brucezcgB Offline
                      brucezcgB Offline
                      brucezcg
                      wrote on last edited by
                      #16

                      @mrjj Thanks for the reply, and I try to use QWidget instead of QDialog.

                      1 Reply Last reply
                      0
                      • Christian EhrlicherC Offline
                        Christian EhrlicherC Offline
                        Christian Ehrlicher
                        Lifetime Qt Champion
                        wrote on last edited by
                        #17

                        Maybe related to https://forum.qt.io/topic/107728/qscrollarea-causes-crash-on-close/4 ? Please try with 5.12.5

                        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                        Visit the Qt Academy at https://academy.qt.io/catalog

                        1 Reply Last reply
                        1

                        • Login

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