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. ui->textedit->append(): The program has unexpectedly finished

ui->textedit->append(): The program has unexpectedly finished

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 520 Views
  • 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
    Stefanoxjx
    wrote on last edited by
    #1

    Hi, I've a problem with textedit inserted by designer.
    Why this line generate the immediate termination of program?

    ui->textEdit->append("Hello World...");
    

    What's wrong?

    Many thanks.

    Stefano

    J.HilkJ 1 Reply Last reply
    0
    • S Stefanoxjx

      Hi, I've a problem with textedit inserted by designer.
      Why this line generate the immediate termination of program?

      ui->textEdit->append("Hello World...");
      

      What's wrong?

      Many thanks.

      Stefano

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @Stefanoxjx hard to tell without more code, but my crystalball tells me:

      ui->textEdit does not exist at the moment you try to access it.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      4
      • S Offline
        S Offline
        Stefanoxjx
        wrote on last edited by
        #3

        Hi J.Hilk, you're right.
        I tried to append text before to invoke "ui->setupUi(this);"
        Many thanks for your illumination and thanks at your crystall ball :)

        Stefano

        1 Reply Last reply
        1

        • Login

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