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. Suppressing xterm in Qt app

Suppressing xterm in Qt app

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 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.
  • S Offline
    S Offline
    Sht0p0r
    wrote on last edited by
    #1

    My Qt app pop up terminal window, when I run it on my Red Hat OS. There is no "CONFIG += console" in my .pro file, I tried to add "CONFIG -= console", but this doesn't help. When I run same project on my Ubuntu system - everything is fine, there is only my application window. Only difference that on Ubuntu I compile my project with qmake and on Red Hat - with qmake4. What seems to be a problem?

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

      HI and welcome to devnet,

      this happens only on your project or also for other projects (for instance an example one)?
      Could you post your .pro file?

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      S 1 Reply Last reply
      0
      • M mcosta

        HI and welcome to devnet,

        this happens only on your project or also for other projects (for instance an example one)?
        Could you post your .pro file?

        S Offline
        S Offline
        Sht0p0r
        wrote on last edited by Sht0p0r
        #3

        @mcosta for other projects too. Tried http://doc.qt.io/qt-4.8/qt-layouts-basiclayouts-example.html - same thing, xterm window pop up.
        .pro file:

        QT += core gui

        greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

        TARGET = Replication
        TEMPLATE = app

        SOURCES += main.cpp
        mainwindow.cpp
        dialog.cpp

        HEADERS += mainwindow.h
        dialog.h

        FORMS += mainwindow.ui
        dialog.ui

        CONFIG -= console

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

          Are you using Qt4 in both cases?

          Running from command line or from Qt Creator?

          Once your problem is solved don't forget to:

          • Mark the thread as SOLVED using the Topic Tool menu
          • Vote up the answer(s) that helped you to solve the issue

          You can embed images using (http://imgur.com/) or (http://postimage.org/)

          S 1 Reply Last reply
          0
          • M mcosta

            Are you using Qt4 in both cases?

            Running from command line or from Qt Creator?

            S Offline
            S Offline
            Sht0p0r
            wrote on last edited by
            #5

            @mcosta On Ubuntu - QMake version 3.0
            Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu
            On Red Hat - QMake version: 2.01a
            Using Qt version 4.8.4 in /usr/lib64/qt48/lib64
            Running with executable icon, after I compile project.

            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