Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Portuguese
  4. Inserir dados em um Table View ou Text Edit [RESOLVDO]
Forum Updated to NodeBB v4.3 + New Features

Inserir dados em um Table View ou Text Edit [RESOLVDO]

Scheduled Pinned Locked Moved Portuguese
3 Posts 2 Posters 1.5k 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.
  • L Offline
    L Offline
    lima_will
    wrote on last edited by
    #1

    Pessoal,

    Preciso preencher um dos dois com os dados que o usario digita, na imagem a baixo tenho um campo para preencher com o ip e o outro quero que mostre o que foi digitado em uma lista.
    COmo faço isso?
    Usei o :

    [code]ui->Coluna1->setTextElideMode(IP);[/code]

    Mas o mesmo sobrepoe o primeiro valor!!

    Imagem da tela:
    http://forum.qtbrasil.com/download/file.php?id=83()!

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rodrigocg
      wrote on last edited by
      #2

      nao entendi sua pergunta...

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lima_will
        wrote on last edited by
        #3

        Consegui resolver usando o seguinte código:
        @
        QString IP;
        QTextCharFormat textFormat;
        IP = ui->Campo_Digitar_ip->text();
        IP += "\n";
        QTextCursor cursor(ui->textEdit->textCursor());
        cursor.insertText(IP);@

        1 Reply Last reply
        0

        • Login

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