Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. two windows opening after I deployed an application on windows
Forum Updated to NodeBB v4.3 + New Features

two windows opening after I deployed an application on windows

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 429 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.
  • CollevattiC Offline
    CollevattiC Offline
    Collevatti
    wrote on last edited by
    #1

    I followed the steps detailed in this link: https://wiki.qt.io/Deploy_an_Application_on_Windows

    After my aplication (exe) is launched two windows appear, the main one and qhat seems to be a debuggin window...
    There are no output lines in my code (no qInfo()... no cout), i don't know why this happens and if someone could help me i would be much apreciated.

    these are the libraries that I am using...

    #include <QMainWindow>
    #include <QApplication>
    #include <QPdfWriter>
    #include <QPainter>
    #include <QImage>
    #include <QPoint>
    #include <QFileInfo>
    #include <QTextStream>
    #include <QFile>
    #include <QMessageBox>
    #include <QFileDialog>

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mpergand
      wrote on last edited by mpergand
      #2

      Hi,

      Maybe a terminal window ?
      In QtCreator click Projects->run
      and look if 'Run in terminal ' is not checked

      1 Reply Last reply
      0
      • CollevattiC Offline
        CollevattiC Offline
        Collevatti
        wrote on last edited by
        #3

        it wasn't checked, when i run in Qt creator it doesn't appear, only when i run the app

        but the second window when i run the app looks like it

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mpergand
          wrote on last edited by
          #4

          Searching the internets, one says it happens when he calls system().
          is it your case ?
          Apart from that I have no clue ...

          1 Reply Last reply
          0
          • CollevattiC Offline
            CollevattiC Offline
            Collevatti
            wrote on last edited by
            #5

            FOUND IT:

            in CMake set_target_properties I added the line:

            WIN32_EXECUTABLE true

            couldn't have found it without knowing it was a terminal window.

            Thank you.

            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