October 17, 2011

sri438 sri438
Lab Rat
13 posts

adding console to mainwindow

 

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

3 replies

October 17, 2011

task_struct task_struct
Ant Farmer
349 posts

Hello,

AFAIK there is no such class in Qt, but if you use KDE, take a look at TerminalInterface Class Reference [api.kde.org]

 Signature 

“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.”
- Linus Torvalds

October 17, 2011

sri438 sri438
Lab Rat
13 posts

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

October 17, 2011

Volker Volker
Ant Farmer
5428 posts

qInstallMsgHandler() [doc.qt.nokia.com] is your friend then.

The Browser for QDebug Log Output [developer.qt.nokia.com] has an example using a separate MainWindow, it can easily be adapted to utilize your regular MainWindow.

 
  ‹‹ Signal emitted when the cursor comes out of QTableWidget Cell      Qt 4.8.0 Setting OpenGL to CoreProfile throws STATUS_STACK_BUFFER_OVERRUN encountered ››

You must log in to post a reply. Not a member yet? Register here!