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. Black screen Map
Qt 6.11 is out! See what's new in the release blog

Black screen Map

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 5 Posters 2.9k Views 2 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.
  • V vin212

    Hello,

    I make an application on QT. In the debug verison, the application work on QT.

    I make the release, on QT, the application work but, whene i use the ".exe" with the différent .dll, the apllication work but, the map was replace with a black screen... I don't know why....

    I use QTLocation and QTPositioning for the map.

    I suppose the bug as link with openSSL...

    Do you have any solution for fixe this bug ?
    faa7b26b-e684-4028-ab83-19e00a0ff47c-image.png

    the release on QT (with no probleme)

    adad8c10-35ca-4ad3-a673-17f2ad207d67-image.png

    the release with the ".exe"

    Pablo J. RoginaP Offline
    Pablo J. RoginaP Offline
    Pablo J. Rogina
    wrote on last edited by
    #2

    @vin212 said in Black screen Map:

    the ".exe" with the différent .dll

    You didn't state but I assume your using Windows OS.
    So please check with Dependency Walker in the case with black map to see what DLL could be missing
    In addition, change your application to include debug statements (i.e. HTTP requests/responses, important methods calls, etc.) to see what could be the last step you're able to run into in that wrong case
    And if you're doing network requests for getting maps you may also want to capture network traffic, to compare the good and bad cases.

    Upvote the answer(s) that helped you solve the issue
    Use "Topic Tools" button to mark your post as Solved
    Add screenshots via postimage.org
    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

    1 Reply Last reply
    1
    • V Offline
      V Offline
      vin212
      wrote on last edited by
      #3

      sorry, yes i'm on windows.

      I use Dependency Walker, all API-MS-Win was missing and all EXT-MS-WIN. For debug my programme i use the log file but, i can't detect the probleme, i suppose is in the QML or it can't read the QML. And, if it can read the QML i can debug the QML programme ^^'

      1 Reply Last reply
      0
      • V vin212

        Hello,

        I make an application on QT. In the debug verison, the application work on QT.

        I make the release, on QT, the application work but, whene i use the ".exe" with the différent .dll, the apllication work but, the map was replace with a black screen... I don't know why....

        I use QTLocation and QTPositioning for the map.

        I suppose the bug as link with openSSL...

        Do you have any solution for fixe this bug ?
        faa7b26b-e684-4028-ab83-19e00a0ff47c-image.png

        the release on QT (with no probleme)

        adad8c10-35ca-4ad3-a673-17f2ad207d67-image.png

        the release with the ".exe"

        KroMignonK Offline
        KroMignonK Offline
        KroMignon
        wrote on last edited by
        #4

        @vin212 said in Black screen Map:

        whene i use the ".exe" with the différent .dll, the apllication work but, the map was replace with a black screen.

        Did you use windeployqt.exe (cf. https://doc.qt.io/qt-5/windows-deployment.html) to deploy your application?
        Did you pass --qmldir argument to ensure all your QML files have been checked to add required dependencies?

        It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

        1 Reply Last reply
        1
        • V Offline
          V Offline
          vin212
          wrote on last edited by
          #5

          yes, i use windeployqt (no exe but, the ".bat")

          i'm not shure for the --qmldir, where i do put this ?

          KroMignonK SGaistS 2 Replies Last reply
          0
          • V vin212

            yes, i use windeployqt (no exe but, the ".bat")

            i'm not shure for the --qmldir, where i do put this ?

            KroMignonK Offline
            KroMignonK Offline
            KroMignon
            wrote on last edited by KroMignon
            #6

            @vin212 said in Black screen Map:

            yes, i use windeployqt (no exe but, the ".bat")

            Which windeployqt.bat?

            I am only aware about windeployqt.exe which is in c:\qt\<version>\<kit-name>\bin.
            For example for Win32 Qt 5.12.10 the path would be c:\qt\5.12.10\msvc2017\bin.

            It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

            1 Reply Last reply
            0
            • V vin212

              yes, i use windeployqt (no exe but, the ".bat")

              i'm not shure for the --qmldir, where i do put this ?

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #7

              Hi,

              @vin212 said in Black screen Map:

              i'm not shure for the --qmldir, where i do put this ?

              It's an option you can pass to windeployqt. As value you need to pass the path to your application qml sources.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • V Offline
                V Offline
                vin212
                wrote on last edited by
                #8

                I try the different solution. With the option "--qmldir" and with the "windepoyqt.exe" but, nothing... The situation no change... it's embarassing... do you have any solution ?

                windeployqt --qmldir c:\...\QML\ --dir c:\....\finalDirectory c:\...\toto.exe
                

                the application working but the map is black... (the map use openSSL)

                KroMignonK 1 Reply Last reply
                0
                • V vin212

                  I try the different solution. With the option "--qmldir" and with the "windepoyqt.exe" but, nothing... The situation no change... it's embarassing... do you have any solution ?

                  windeployqt --qmldir c:\...\QML\ --dir c:\....\finalDirectory c:\...\toto.exe
                  

                  the application working but the map is black... (the map use openSSL)

                  KroMignonK Offline
                  KroMignonK Offline
                  KroMignon
                  wrote on last edited by
                  #9

                  @vin212 said in Black screen Map:

                  the application working but the map is black... (the map use openSSL)

                  Which Qt version are you using?
                  Could you add debug message at application start to check SSL is correctly set.
                  Something like this:

                  qDebug() << "SSL support:" << QSslSocket::supportSsl();
                  qDebug() << "SSL version required:" << QSslSocket::sslLibraryBuildVersionString();
                  qDebug() << "SSL version found:" << QSslSocket::sslLibraryVersionString();
                  

                  On another thread, the solution with Qt 6.x, was to add manually TLS backend (which is an external plugin with Qt 6.x):
                  Copy C:\Qt\<Qt version>\<compiler>\plugins\tls in to the generated deployment directory (cf. https://forum.qt.io/post/674464)

                  It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    vin212
                    wrote on last edited by vin212
                    #10

                    i useQT5.15 and, open SSL is use on QML, i can't debug with your message beacause i don't use this library. OpenSSL is use by QtLocation or/and Qtpositioning

                    the message whene i include the lib QSslSocket :

                    SSL support: true
                    SSL version required: "OpenSSL 1.1.1g  21 Apr 2020"
                    SSL version found: "OpenSSL 1.1.1l  24 Aug 2021"
                    

                    on the release, i have the same result

                    Pablo J. RoginaP 1 Reply Last reply
                    0
                    • V vin212

                      i useQT5.15 and, open SSL is use on QML, i can't debug with your message beacause i don't use this library. OpenSSL is use by QtLocation or/and Qtpositioning

                      the message whene i include the lib QSslSocket :

                      SSL support: true
                      SSL version required: "OpenSSL 1.1.1g  21 Apr 2020"
                      SSL version found: "OpenSSL 1.1.1l  24 Aug 2021"
                      

                      on the release, i have the same result

                      Pablo J. RoginaP Offline
                      Pablo J. RoginaP Offline
                      Pablo J. Rogina
                      wrote on last edited by
                      #11

                      @vin212 said in Black screen Map:

                      i can't debug with your message

                      You may need to look at this article regarding debugging QML.
                      And I already suggested that you capture network traffic to see what your application is requesting/receiving (although once the TLS session is established you'll see "garbage")

                      Upvote the answer(s) that helped you solve the issue
                      Use "Topic Tools" button to mark your post as Solved
                      Add screenshots via postimage.org
                      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                      V 1 Reply Last reply
                      0
                      • Pablo J. RoginaP Pablo J. Rogina

                        @vin212 said in Black screen Map:

                        i can't debug with your message

                        You may need to look at this article regarding debugging QML.
                        And I already suggested that you capture network traffic to see what your application is requesting/receiving (although once the TLS session is established you'll see "garbage")

                        V Offline
                        V Offline
                        vin212
                        wrote on last edited by vin212
                        #12

                        @Pablo-J-Rogina for the console.log, i dont know who i can read the result whene i execute my programme out of the IDE

                        And, i don't know how i use the network traffic for debug my programme

                        1 Reply Last reply
                        0
                        • V Offline
                          V Offline
                          vin212
                          wrote on last edited by
                          #13

                          [EDIT]

                          After research i discovering my problème but, i can't solve this beacause i dont have the solution...

                          Whell, on my version on my PC, the map work but, whene i add the "dll" QT5core.dll i have the same probleme, black screen. Do you have eny solution ?

                          Cobra91151C 1 Reply Last reply
                          0
                          • V vin212

                            [EDIT]

                            After research i discovering my problème but, i can't solve this beacause i dont have the solution...

                            Whell, on my version on my PC, the map work but, whene i add the "dll" QT5core.dll i have the same probleme, black screen. Do you have eny solution ?

                            Cobra91151C Offline
                            Cobra91151C Offline
                            Cobra91151
                            wrote on last edited by Cobra91151
                            #14

                            @vin212

                            Hello!
                            Add the code below to your .pro file (project file):

                            Code:

                            CONFIG(debug, debug|release) {
                                DESTDIR = $$OUT_PWD/debug
                            } else {
                                DESTDIR = $$OUT_PWD/release
                            }
                            
                            QMAKE_POST_LINK = $$(QTDIR)/bin/windeployqt.exe $$shell_quote($$DESTDIR/$$shell_quote($$TARGET).exe) --qmldir "C:\\Qt\\5.15.2\\mingw81_32\\qml" --no-compiler-runtime
                            

                            This should add all the necessary libs to your project.

                            1 Reply Last reply
                            0
                            • V Offline
                              V Offline
                              vin212
                              wrote on last edited by vin212
                              #15

                              My situation change, after many help and manipulation, my map change ! The map is not black but, is white !

                              [Edit] it's work ! After many help and research i fixe my probleme ! En effect, i add the line : qputenv("QT_OPENGL", "angle"); QCoreApplication::setAttribute(Qt::AA_UseOpenGLES,true); and i add many depedency ".dll" on my repertory. After this, my application work's

                              Thank's for your help !

                              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