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. Using the console along with a Qt GUI
Forum Updated to NodeBB v4.3 + New Features

Using the console along with a Qt GUI

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.4k Views 1 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.
  • K Offline
    K Offline
    kpchem
    wrote on last edited by
    #1

    I apologize if this has been posted before, but I have extensively searched my specific issue and have not found anything.

    I am working on a project and have developed some modeling software that runs entirely in the console. However, as a part of configuration the program to run, there is a GUI where the user can specify some basic input settings before the program begins. Everything is functioning perfectly except that once the initial configuration is complete, the console window never appears.

    A few more details to go along with this.

    • This is running on Windows 7 using qt 5.0.* (I do not remember if it is 5.0.1 or 5.0.2)
    • The project is setup for a static deployment, and I know that that part is functioning properly
    • I have tried adding "CONFIG += console" or "CONFIG += qt console", and nothing has changed.
    • When I run the application in Qt Creator, everything is printed to the debugging interface/console at the bottom of the application.

    Does anyone have any advice for what I should do to try to get this to work?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alexisdm
      wrote on last edited by
      #2

      After adding "CONFIG+=console" did you configure QtCreator to run your project in its own terminal (in Projects −> Run (at the top near "Build")−> Checkbox "Run in terminal") ?

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kpchem
        wrote on last edited by
        #3

        We had not tried that, and when we did that the console appeared. However, nothing ever printed to it, even when using a basic program that was just supposed to print "Hello, World" to the console.

        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