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

QWidget / QApplication

Scheduled Pinned Locked Moved Unsolved General and Desktop
16 Posts 4 Posters 3.2k Views
  • 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 Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on 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
    1
    • mrjjM mrjj

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

      aha_1980A 1 Reply Last reply
      0
      • K krichen30

        @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

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 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
        2
        • aha_1980A aha_1980

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

          K Offline
          K Offline
          krichen30
          wrote on last edited by
          #5

          @aha_1980 how can i fix it ?

          aha_1980A 1 Reply Last reply
          0
          • K krichen30

            @aha_1980 how can i fix it ?

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 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
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on 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 last edited by
                #8

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

                mrjjM 1 Reply Last reply
                0
                • K krichen30

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

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 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
                  0
                  • mrjjM mrjj

                    @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 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 last edited by
                      #11

                      do you have solution please !!!

                      mrjjM 1 Reply Last reply
                      0
                      • K krichen30

                        do you have solution please !!!

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on 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 last edited by
                          #13

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

                          mrjjM K 2 Replies Last reply
                          3
                          • hskoglundH hskoglund

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

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

                            @hskoglund
                            Very good guess since he as SQL classes.

                            1 Reply Last reply
                            0
                            • hskoglundH hskoglund

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

                              K Offline
                              K Offline
                              krichen30
                              wrote on last edited by
                              #15

                              @hskoglund what is the relation between QSqlDatabase and QWidget ?

                              mrjjM 1 Reply Last reply
                              0
                              • K krichen30

                                @hskoglund what is the relation between QSqlDatabase and QWidget ?

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

                                @krichen30
                                But do you have a static QSqlDatabase ?

                                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