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. How to update textedit with qDebug things..
Qt 6.11 is out! See what's new in the release blog

How to update textedit with qDebug things..

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 3.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.
  • M Offline
    M Offline
    mahesh
    wrote on last edited by
    #1

    hi i want to create a console like thing what ever the standerdouts i want to put it in text edit i wrote code like this
    @
    process = new QProcess(this);
    process->setReadChannel(QProcess::StandardOutput);
    connect(process, SIGNAL(readyReadStandardOutput()), this, SLOT(updateOutput()));

    void MainWindow :: updateOutput(void)
    {
    QByteArray bytes = process->readAllStandardOutput();
    ui->textEdit->insertPlainText(bytes);
    }

    @
    When i run Qt application i want see all stdout in this textEdit..but it was not showing any thing can some one please tell me what is the wrong in this one...

    1 Reply Last reply
    0
    • H Offline
      H Offline
      HuXiKa
      wrote on last edited by
      #2

      "LMGTFY":http://lmgtfy.com/?q=qt+redirect+stdout. "Done":http://www.qtforum.org/article/24554/displaying-std-cout-in-a-text-box.html.

      If you can find faults of spelling in the text above, you can keep them.

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

        You should start the process.

        EDIT:
        How is your question related to your thread topic? They do not match at all and qDebug is not used anywhere in your code.

        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