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 get info from "textChanged " slot?
Qt 6.11 is out! See what's new in the release blog

how to get info from "textChanged " slot?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 440 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by Anonymous_Banned275
    #1

    Please help me to code this in C++ .

        void MainWindow_Bluetoothctl::on_textEdit_7_textChanged()
            {
                qDebug()<< "DEBUG " << Q_FUNC_INFO ;
                qDebug()<< "DEBUG @line " << QString::number(__LINE__);
                // get the actual text 
                // QString text = textEdit->toplainText(); no go 
                // get the QTextEdit object pointer 
                BTUL->Sub_CopyQTextEdit(ui->textEdit_7,ui->textEdit_7);
            }
    
    JonBJ 1 Reply Last reply
    0
    • A Anonymous_Banned275

      Please help me to code this in C++ .

          void MainWindow_Bluetoothctl::on_textEdit_7_textChanged()
              {
                  qDebug()<< "DEBUG " << Q_FUNC_INFO ;
                  qDebug()<< "DEBUG @line " << QString::number(__LINE__);
                  // get the actual text 
                  // QString text = textEdit->toplainText(); no go 
                  // get the QTextEdit object pointer 
                  BTUL->Sub_CopyQTextEdit(ui->textEdit_7,ui->textEdit_7);
              }
      
      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @AnneRanch said in how to get info from "textChanged " slot?:

      // QString text = textEdit->toplainText(); no go

      You should find

      QString text = ui->textEdit_7->toPlainText();
      

      works. Note the capitalization.

      1 Reply Last reply
      4

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved