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. Message QWindowsNativeInterface::nativeResourceForWindow: 'handle' requested for null window or window without handle.
Qt 6.11 is out! See what's new in the release blog

Message QWindowsNativeInterface::nativeResourceForWindow: 'handle' requested for null window or window without handle.

Scheduled Pinned Locked Moved General and Desktop
46 Posts 17 Posters 72.1k Views 3 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #21

    I'm sure it is not only your problem. As you can read in thes thread, many others are affected as well.

    1 Reply Last reply
    0
    • I Offline
      I Offline
      irfan.omair
      wrote on last edited by
      #22

      Yes I was able to reproduce it and have fix if you guys are willing to apply the patch.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        irfan.omair
        wrote on last edited by
        #23

        fix is already in the repo so feel free to use latest or find the patch from there, commit is ac864956f8ba6f6cb527725a4347babab2a1e498

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #24

          [quote author="irfan.omair" date="1360970748"]fix is already in the repo so feel free to use latest or find the patch from there, commit is ac864956f8ba6f6cb527725a4347babab2a1e498 [/quote]

          Received, thank you very much. Although I do not know how to fix the patch, had to wait for 5.02.
          I will continue to learn.
          Thanks again.

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #25

            [quote author="irfan.omair" date="1360970748"]fix is already in the repo so feel free to use latest or find the patch from there, commit is ac864956f8ba6f6cb527725a4347babab2a1e498 [/quote]

            I got the same problem, thank you omair for providing a fix.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pklemm
              wrote on last edited by
              #26

              Also on QT5.0.2 - Qt Commercial MinGW on Win7 64

              Pete Klemm, consultant with Embedded Systems Research, Inc.

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #27

                Also on Qt5.0.2 commercial, compiled with VS 2012.2 v110_xp 32 bit:

                Warning:painting\qbackingstore.cpp (101:void __thiscall QBackingStore::flush(const class QRegion &,class QWindow *,const class QPoint &)) - QBackingStore::flush() called with non-exposed window, behavior is undefined

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  pklemm
                  wrote on last edited by
                  #28

                  Solved my reporting of "QWindowsNativeInterface::nativeResourceForWindow: ‘handle’ requested for null window or window without handle."

                  This was was due to one of my DLLs being built by an earlier version of Qt.

                  Once I rebuilt all of the code used in my project the error messages stopped.

                  Pete Klemm, consultant with Embedded Systems Research, Inc.

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #29

                    thanks, my warnings are slightly different - it complains about non exposed windows...

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #30

                      Hi
                      I want to know step by step how I can fix this problem.
                      Thanks.

                      1 Reply Last reply
                      0
                      • ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #31

                        What kind of warning do you have in detail?

                        "QBackingStore::flush() called with non-exposed window, behavior is undefined"

                        or

                        "QWindowsNativeInterface::nativeResourceForWindow: ‘handle’ requested for null window or window without handle."

                        the latter one was fixed in 5.0.2 as far as I know, the first one still exists. In my app, the first warnign raises as soon as I tabify a dockwidget which is currently hidden.

                        I have reported this issue to comemrcial support but did not get any response yet :/

                        regards,
                        Torben

                        1 Reply Last reply
                        0
                        • ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #32

                          the second one
                          “QWindowsNativeInterface::nativeResourceForWindow: ‘handle’ requested for null window or window without handle”

                          1 Reply Last reply
                          0
                          • ? Offline
                            ? Offline
                            A Former User
                            wrote on last edited by
                            #33

                            Have you upgraded to 5.0.2?

                            1 Reply Last reply
                            0
                            • ? Offline
                              ? Offline
                              A Former User
                              wrote on last edited by
                              #34

                              I got this error on 5.0.1 but I have the 5.0.2 setup

                              1 Reply Last reply
                              0
                              • ? Offline
                                ? Offline
                                A Former User
                                wrote on last edited by
                                #35

                                well, then test it if the warning still occurs on in the current stable release (5.0.2) -ideally before asking for support ;)

                                Good luck!

                                1 Reply Last reply
                                0
                                • ? Offline
                                  ? Offline
                                  A Former User
                                  wrote on last edited by
                                  #36

                                  Ok! I didn't know that the 5.0.1 is unstable. Thanks!

                                  1 Reply Last reply
                                  0
                                  • ? Offline
                                    ? Offline
                                    A Former User
                                    wrote on last edited by
                                    #37

                                    hi,

                                    5.0.1 is not unstable, but it is not the current stable release.

                                    If you have a bug, it's always worth to verify that the used Qt version is the current stable release. If not, maybe the error is already fixed in the current stable release ;)

                                    1 Reply Last reply
                                    0
                                    • C Offline
                                      C Offline
                                      Cyttorak
                                      wrote on last edited by
                                      #38

                                      I get a lot of those messages with that call:

                                      QFileDialog::getOpenFileNames()

                                      1 Reply Last reply
                                      0
                                      • ? Offline
                                        ? Offline
                                        A Former User
                                        wrote on last edited by
                                        #39

                                        Cyttorak: sorry, I lost my crystal ball yesterday, so I cannot help you...

                                        ...If you really want to get help, you should provide at least a minimal set of information:
                                        which OS and with Qt version you use.

                                        Torben

                                        1 Reply Last reply
                                        0
                                        • C Offline
                                          C Offline
                                          Cyttorak
                                          wrote on last edited by
                                          #40

                                          Excuse me TorbenD for that poor example. I will create a minimum project in order to provide a better showing of this issue. Is there any jira about this problem so I can upload the example project?

                                          Thank you

                                          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