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. Adding console to mainwindow
Forum Updated to NodeBB v4.3 + New Features

Adding console to mainwindow

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.9k 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
    sri438
    wrote on last edited by
    #1

    i am new to qt .. i am designing an application in linux can some one please tell me how to add console in mainwindow...

    1 Reply Last reply
    0
    • T Offline
      T Offline
      task_struct
      wrote on last edited by
      #2

      Hello,

      AFAIK there is no such class in Qt, but if you use KDE, take a look at "TerminalInterface Class Reference":http://api.kde.org/4.0-api/kdelibs-apidocs/interfaces/html/classTerminalInterface.html

      "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

      • Linu...
      1 Reply Last reply
      0
      • S Offline
        S Offline
        sri438
        wrote on last edited by
        #3

        thanks for replying...my application is all qDebug messeges should have to be appeared in the wainwindow not in the command window

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          "qInstallMsgHandler() ":http://doc.qt.nokia.com/4.7/qtglobal.html#qInstallMsgHandler is your friend then.

          The "Browser for QDebug Log Output":http://developer.qt.nokia.com/wiki/Browser_for_QDebug_output has an example using a separate MainWindow, it can easily be adapted to utilize your regular MainWindow.

          http://www.catb.org/~esr/faqs/smart-questions.html

          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