Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. how to hide command window while opening exe

how to hide command window while opening exe

Scheduled Pinned Locked Moved Solved QML and Qt Quick
7 Posts 2 Posters 898 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.
  • F Offline
    F Offline
    Furkan
    wrote on last edited by
    #1

    I have an issue in qt 6.6.0 creator project. I use qmake and when I try to open my project exe in release command window is opening bu I don't want to open this command window. I try below solution options:

    1- CONFIG -= console in .pro
    2- QApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton); in main.cpp
    3- #ifdef WIN64
    // Windows 64-bit için komut penceresini gizleme ayarları
    #pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
    #endif in modelmanager.cpp and main.cpp
    4-CONFIG += windows in .pro
    5- CONFIG += no_console in .pro
    6- CONFIG += WIN64 in .pro

    Could you please help me about this issue? Thank you

    jsulmJ 1 Reply Last reply
    0
    • F Furkan

      @jsulm
      QT +=
      quick
      multimedia
      core
      widgets
      testlib
      charts

      SOURCES += main.cpp

      CONFIG += resources_big
      warn_off

      CONFIG -= console

      INCLUDEPATH += ../Assets/Libraries/opencv/include
      DEPENDPATH += ../Assets/Libraries/opencv/x64/mingw

      DISTFILES +=
      ../Assets/Fonts/Courier_Std_Bold.otf
      english.qm

      INCLUDEPATH += $$PWD/../Assets/Libraries/ChartDirector/include

      DEFINES += CHARTDIR_HIDE_OBSOLETE _CRT_SECURE_NO_WARNINGS #chartdir warninglerini kapatmak için

      LIBS += ../Assets/Libraries/ChartDirector/lib64/chartdir70.lib

      CONFIG += c++11

      I can share this part and also I have some cpp and header files.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #6

      @Furkan I think the problem is: testlib
      You should only add it for testing.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      F 1 Reply Last reply
      1
      • F Furkan

        I have an issue in qt 6.6.0 creator project. I use qmake and when I try to open my project exe in release command window is opening bu I don't want to open this command window. I try below solution options:

        1- CONFIG -= console in .pro
        2- QApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton); in main.cpp
        3- #ifdef WIN64
        // Windows 64-bit için komut penceresini gizleme ayarları
        #pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
        #endif in modelmanager.cpp and main.cpp
        4-CONFIG += windows in .pro
        5- CONFIG += no_console in .pro
        6- CONFIG += WIN64 in .pro

        Could you please help me about this issue? Thank you

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @Furkan said in how to hide command window while opening exe:

        command window

        Do you mean a terminal is opening?
        Did you rebuild your app after adding "CONFIG -= console"?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        F 1 Reply Last reply
        0
        • jsulmJ jsulm

          @Furkan said in how to hide command window while opening exe:

          command window

          Do you mean a terminal is opening?
          Did you rebuild your app after adding "CONFIG -= console"?

          F Offline
          F Offline
          Furkan
          wrote on last edited by
          #3

          @jsulm Sorry, yes I mean a terminal is opening. Yes I rebuild my app after run qmake.

          jsulmJ 1 Reply Last reply
          0
          • F Furkan

            @jsulm Sorry, yes I mean a terminal is opening. Yes I rebuild my app after run qmake.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @Furkan Please post your pro file

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            F 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Furkan Please post your pro file

              F Offline
              F Offline
              Furkan
              wrote on last edited by
              #5

              @jsulm
              QT +=
              quick
              multimedia
              core
              widgets
              testlib
              charts

              SOURCES += main.cpp

              CONFIG += resources_big
              warn_off

              CONFIG -= console

              INCLUDEPATH += ../Assets/Libraries/opencv/include
              DEPENDPATH += ../Assets/Libraries/opencv/x64/mingw

              DISTFILES +=
              ../Assets/Fonts/Courier_Std_Bold.otf
              english.qm

              INCLUDEPATH += $$PWD/../Assets/Libraries/ChartDirector/include

              DEFINES += CHARTDIR_HIDE_OBSOLETE _CRT_SECURE_NO_WARNINGS #chartdir warninglerini kapatmak için

              LIBS += ../Assets/Libraries/ChartDirector/lib64/chartdir70.lib

              CONFIG += c++11

              I can share this part and also I have some cpp and header files.

              jsulmJ 1 Reply Last reply
              0
              • F Furkan

                @jsulm
                QT +=
                quick
                multimedia
                core
                widgets
                testlib
                charts

                SOURCES += main.cpp

                CONFIG += resources_big
                warn_off

                CONFIG -= console

                INCLUDEPATH += ../Assets/Libraries/opencv/include
                DEPENDPATH += ../Assets/Libraries/opencv/x64/mingw

                DISTFILES +=
                ../Assets/Fonts/Courier_Std_Bold.otf
                english.qm

                INCLUDEPATH += $$PWD/../Assets/Libraries/ChartDirector/include

                DEFINES += CHARTDIR_HIDE_OBSOLETE _CRT_SECURE_NO_WARNINGS #chartdir warninglerini kapatmak için

                LIBS += ../Assets/Libraries/ChartDirector/lib64/chartdir70.lib

                CONFIG += c++11

                I can share this part and also I have some cpp and header files.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #6

                @Furkan I think the problem is: testlib
                You should only add it for testing.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                F 1 Reply Last reply
                1
                • jsulmJ jsulm

                  @Furkan I think the problem is: testlib
                  You should only add it for testing.

                  F Offline
                  F Offline
                  Furkan
                  wrote on last edited by
                  #7

                  @jsulm It was solved. Thank you very much.

                  1 Reply Last reply
                  0
                  • F Furkan has marked this topic as solved on

                  • Login

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