Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • 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.12 LTS 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 73.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
    #9

    I can't give you a Qt example programm causing this problem (havent' compiled the examples) but I can you give a small programm that shows the error. it is a autoupdater library for qt based programms, based on the poject "flevor" together with the mentioned small example programm to show the effect.

    There are only two disadvantages: It depends on QuaZIP, a Qt wrapper for zLib/minizip. And it suffers the QtWebkit bug described here: http://qt-project.org/forums/viewthread/23571

    If you are interested please give me a note and I will send you the files.

    Torben

    1 Reply Last reply
    0
    • S Offline
      S Offline
      skorodum
      wrote on last edited by
      #10

      I also can confirm. Tested with official builds for both mingw 4.7.2 and MSVC 2010.
      One message for each control (QWidget child?).

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

        [quote author="TorbenD" date="1360329674"]I can't give you a Qt example programm causing this problem (havent' compiled the examples) but I can you give a small programm that shows the error. it is a autoupdater library for qt based programms, based on the poject "flevor" together with the mentioned small example programm to show the effect.

        There are only two disadvantages: It depends on QuaZIP, a Qt wrapper for zLib/minizip. And it suffers the QtWebkit bug described here: http://qt-project.org/forums/viewthread/23571

        If you are interested please give me a note and I will send you the files.

        Torben[/quote]

        Yes sure if it is not too big example and if I can easily see the behavior then yes please let me know how I can get that code.

        1 Reply Last reply
        0
        • O Offline
          O Offline
          omichel
          wrote on last edited by
          #12

          Same problem here with Qt 5.0.1 for mingw on Windows 7 64bit...

          1 Reply Last reply
          0
          • A Offline
            A Offline
            artem_pisarenko
            wrote on last edited by
            #13

            Same problem. Qt 5.0.1 mingw (official build from downloads), win7 64bit.

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

              只要创建widget,就是一大堆QWindowsNativeInterface::nativeResourceForWindow: 'handle' requested for null window or window without handle.

              自带的示例也是一样的.不知道是不是qt5.0.1的问题?
              QT5.0.1 win7 32bit ming/vs2010 (official build)都是!

              Just create widget, that is a lot of "QWindowsNativeInterface::nativeResourceForWindow: 'handle' requested for null window or window without handle."

              QT Example has the same problem in QT5.0.1!
              QT5.0.1 win7 32bit mingw4.7/vs2010 (official build)

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

                [quote author="xisuosunboy" date="1360592779"]只要创建widget,就是一大堆QWindowsNativeInterface::nativeResourceForWindow: 'handle' requested for null window or window without handle.

                QT Example has the same problem in QT5.0.1!
                QT5.0.1 win7 32bit mingw4.7/vs2010 (official build)[/quote]

                Can you please point me which example and what steps required to see this , i just ran few widget based example and dont see this.

                1 Reply Last reply
                0
                • O Offline
                  O Offline
                  omichel
                  wrote on last edited by
                  #16

                  It seems you should compile in "debug" mode as in "release" mode, I do no get these messages.

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

                    [quote author="irfan.omair" date="1360629199"]
                    [quote author="xisuosunboy" date="1360592779"]只要创建widget,就是一大堆QWindowsNativeInterface::nativeResourceForWindow: 'handle' requested for null window or window without handle.

                    QT Example has the same problem in QT5.0.1!
                    QT5.0.1 win7 32bit mingw4.7/vs2010 (official build)[/quote]

                    Can you please point me which example and what steps required to see this , i just ran few widget based example and dont see this.

                    [/quote]

                    "Application Example",When you click to "open" or "save",then there will a lot of "QWindowsNativeInterface::nativeResourceForWindow: 'handle' requested for null window or window without handle."

                    Whether in "debug" or "release",this problem occurs.

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

                      When in windows2003 .QT5.0.1 32bit mingw4.7 (official build)

                      “Application Example”,When you click to “open” or “save”,then there one message like this "CoCreateInstance failed (在活动的激活上下文中没有找到任何查找密钥。)"

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

                        Alright, so it seems it is coming up when you are actually trying to show native dialog. Let me try to reproduce it here

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

                          [quote author="irfan.omair" date="1360695750"]Alright, so it seems it is coming up when you are actually trying to show native dialog. Let me try to reproduce it here[/quote]

                          Did you able to reproduce this problem?Or the problem is only my case.

                          1 Reply Last reply
                          0
                          • ? 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

                                          • Login

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