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
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 530 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.
  • S Offline
    S Offline
    Stefanoxjx
    wrote on 8 Feb 2018, 11:18 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 1 Reply Last reply 8 Feb 2018, 11:22
    0
    • S Stefanoxjx
      8 Feb 2018, 11:18

      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 Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 8 Feb 2018, 11:22 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 8 Feb 2018, 11:31 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

        1/3

        8 Feb 2018, 11:18

        • Login

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