Results 1 to 6 of 6

Thread: Connecting textEdit with label

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2020
    Posts
    11
    Qt products
    Qt4 Qt5

    Default Connecting textEdit with label

    I tried to connect a textEdit to a label on a different page using stackedWidget, so that when a text is written in textEdit the same text is shown in the label on the next page, but so far it didnt work out. My textEdits Name is "textEdit_name" and my labels Name is "label_name". My Code so far is

    Qt Code:
    1. void Volk_Auswahl::label_name()
    2. {
    3. connect(ui->textEdit_name, SIGNAL(textChanged()), this, SLOT(label_name()));
    4. }
    To copy to clipboard, switch view to plain text mode 

    There is no error but when I type something in textEdit there is no text in label.
    Last edited by ejoty; 25th June 2020 at 12:22.

Similar Threads

  1. Replies: 0
    Last Post: 3rd November 2016, 23:27
  2. Qml TextEdit
    By goli in forum Newbie
    Replies: 4
    Last Post: 28th April 2011, 14:37
  3. Inserting label inside textEdit widget
    By dshan in forum Qt Programming
    Replies: 1
    Last Post: 11th January 2011, 11:17
  4. Replies: 3
    Last Post: 12th May 2010, 23:53
  5. How to make text in label or TextEDit to flash?
    By qtlinuxnewbie in forum Newbie
    Replies: 2
    Last Post: 6th April 2010, 07:53

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.