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. QWidget / QApplication
Forum Updated to NodeBB v4.3 + New Features

QWidget / QApplication

Scheduled Pinned Locked Moved Unsolved General and Desktop
16 Posts 4 Posters 3.2k 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.
  • K Offline
    K Offline
    krichen30
    wrote on 10 Dec 2017, 16:24 last edited by
    #1

    0_1512923031094_fr.PNG
    Can you help please !!???

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 10 Dec 2017, 16:28 last edited by
      #2

      Hi
      It means you have a global Qwidget outside main / as global variable.
      Or you do not have a main that creates a QApplication object.

      show some code that says this :)

      K 1 Reply Last reply 10 Dec 2017, 16:41
      1
      • M mrjj
        10 Dec 2017, 16:28

        Hi
        It means you have a global Qwidget outside main / as global variable.
        Or you do not have a main that creates a QApplication object.

        show some code that says this :)

        K Offline
        K Offline
        krichen30
        wrote on 10 Dec 2017, 16:41 last edited by
        #3

        @mrjj 1_1512924024632_1.PNG 0_1512924024631_22.PNG

        there is a something weird !! when i run with release mode it works but not with debug mode

        A 1 Reply Last reply 10 Dec 2017, 16:45
        0
        • K krichen30
          10 Dec 2017, 16:41

          @mrjj 1_1512924024632_1.PNG 0_1512924024631_22.PNG

          there is a something weird !! when i run with release mode it works but not with debug mode

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 10 Dec 2017, 16:45 last edited by
          #4

          @krichen30 You may also get this error if you're mixing debug and release libraries on Windows.

          Qt has to stay free or it will die.

          K 1 Reply Last reply 10 Dec 2017, 16:46
          2
          • A aha_1980
            10 Dec 2017, 16:45

            @krichen30 You may also get this error if you're mixing debug and release libraries on Windows.

            K Offline
            K Offline
            krichen30
            wrote on 10 Dec 2017, 16:46 last edited by
            #5

            @aha_1980 how can i fix it ?

            A 1 Reply Last reply 10 Dec 2017, 16:48
            0
            • K krichen30
              10 Dec 2017, 16:46

              @aha_1980 how can i fix it ?

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 10 Dec 2017, 16:48 last edited by
              #6

              @krichen30 At first I would try a clean rebuild.

              Qt has to stay free or it will die.

              1 Reply Last reply
              2
              • M Offline
                M Offline
                mrjj
                Lifetime Qt Champion
                wrote on 10 Dec 2017, 17:01 last edited by
                #7

                Hi
                it doesn't look like you have any global widgets just a normal mainwindow.
                So yeah, try as @aha_1980 suggest and completely wipe the
                build folder.

                1 Reply Last reply
                2
                • K Offline
                  K Offline
                  krichen30
                  wrote on 10 Dec 2017, 17:20 last edited by
                  #8

                  i delete the folder debug and i redebug it but nothing change same error ...

                  M 1 Reply Last reply 10 Dec 2017, 17:24
                  0
                  • K krichen30
                    10 Dec 2017, 17:20

                    i delete the folder debug and i redebug it but nothing change same error ...

                    M Offline
                    M Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on 10 Dec 2017, 17:24 last edited by
                    #9

                    @krichen30
                    Hi
                    You only have the Satistique class ?
                    and no other files?

                    Does it say this when running from creator ?

                    K 1 Reply Last reply 10 Dec 2017, 18:22
                    0
                    • M mrjj
                      10 Dec 2017, 17:24

                      @krichen30
                      Hi
                      You only have the Satistique class ?
                      and no other files?

                      Does it say this when running from creator ?

                      K Offline
                      K Offline
                      krichen30
                      wrote on 10 Dec 2017, 18:22 last edited by
                      #10

                      @mrjj i have another files but not include in this statistique class

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        krichen30
                        wrote on 10 Dec 2017, 20:50 last edited by
                        #11

                        do you have solution please !!!

                        M 1 Reply Last reply 10 Dec 2017, 20:53
                        0
                        • K krichen30
                          10 Dec 2017, 20:50

                          do you have solution please !!!

                          M Offline
                          M Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on 10 Dec 2017, 20:53 last edited by
                          #12

                          @krichen30
                          Nope. If you dont have any global QWidgets/QObject before main is run, i
                          have no idea.

                          1 Reply Last reply
                          0
                          • hskoglundH Online
                            hskoglundH Online
                            hskoglund
                            wrote on 10 Dec 2017, 20:58 last edited by
                            #13

                            Perhaps a QSqlDatabase? If there's a static instance, it will also cause this error.

                            M K 2 Replies Last reply 10 Dec 2017, 21:07
                            3
                            • hskoglundH hskoglund
                              10 Dec 2017, 20:58

                              Perhaps a QSqlDatabase? If there's a static instance, it will also cause this error.

                              M Offline
                              M Offline
                              mrjj
                              Lifetime Qt Champion
                              wrote on 10 Dec 2017, 21:07 last edited by
                              #14

                              @hskoglund
                              Very good guess since he as SQL classes.

                              1 Reply Last reply
                              0
                              • hskoglundH hskoglund
                                10 Dec 2017, 20:58

                                Perhaps a QSqlDatabase? If there's a static instance, it will also cause this error.

                                K Offline
                                K Offline
                                krichen30
                                wrote on 10 Dec 2017, 21:10 last edited by
                                #15

                                @hskoglund what is the relation between QSqlDatabase and QWidget ?

                                M 1 Reply Last reply 10 Dec 2017, 21:17
                                0
                                • K krichen30
                                  10 Dec 2017, 21:10

                                  @hskoglund what is the relation between QSqlDatabase and QWidget ?

                                  M Offline
                                  M Offline
                                  mrjj
                                  Lifetime Qt Champion
                                  wrote on 10 Dec 2017, 21:17 last edited by mrjj 12 Oct 2017, 21:38
                                  #16

                                  @krichen30
                                  But do you have a static QSqlDatabase ?

                                  1 Reply Last reply
                                  0

                                  1/16

                                  10 Dec 2017, 16:24

                                  • Login

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