Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. insert text to textbox and..
Forum Updated to NodeBB v4.3 + New Features

insert text to textbox and..

Scheduled Pinned Locked Moved Unsolved Language Bindings
6 Posts 5 Posters 2.2k Views 3 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.
  • D Offline
    D Offline
    Dl10
    wrote on 16 Jan 2018, 10:01 last edited by
    #1

    i use PyQt5 and i write " textbox = QTextEdit() "
    now i write " textbox.setText('12') "
    and now i write "textbox.toPlainText()"
    and the output is "12121212121212121212121212121212121212121212......."
    why the output is not only "12" ??
    help !
    tnx

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 16 Jan 2018, 10:10 last edited by
      #2

      Hi
      So if you write 'hello' you get many hellos ?

      1 Reply Last reply
      1
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 16 Jan 2018, 10:14 last edited by
        #3

        Hi,

        Please provide a complet code sample that produces this behaviour.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • P Offline
          P Offline
          Pradeep Kumar
          wrote on 16 Jan 2018, 10:26 last edited by
          #4

          Hi,

          Are u appending else where to the textedit, can u provide the code ?.

          Thanks,

          Pradeep Kumar
          Qt,QML Developer

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Dl10
            wrote on 16 Jan 2018, 11:56 last edited by
            #5

            I managed to thank you all !

            P 1 Reply Last reply 16 Jan 2018, 16:47
            0
            • D Dl10
              16 Jan 2018, 11:56

              I managed to thank you all !

              P Offline
              P Offline
              Pablo J. Rogina
              wrote on 16 Jan 2018, 16:47 last edited by
              #6

              @Dl10 said in insert text to textbox and..:

              I managed to thank you all !

              it looks like you have solved your problem, so two things please: write a reply showing how you actually solved it :-) and two, don't forget to mark you post as solved. Thanks.

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              2

              1/6

              16 Jan 2018, 10:01

              • Login

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