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. 2 clipboard->setTex different 2x Ctrl+v but not the desired result

2 clipboard->setTex different 2x Ctrl+v but not the desired result

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.3k 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.
  • A Offline
    A Offline
    aznur
    wrote on last edited by
    #1

    I copy two different text and past one after another
    @QString StringLog="vbghghg ";

    QClipboard *clipboard = QApplication::clipboard();
    clipboard->setText(StringLog);
    mykeyboard->paste();

    QString ddd="1255512 ";
    clipboard->setText(ddd);
    mykeyboard->paste();

    @

    with the following code
    I get the following result

    1255512 1255512

    my sytem is ubuntu 12,04 and QT 4.8
    thx for help

    1 Reply Last reply
    0
    • A Offline
      A Offline
      aznur
      wrote on last edited by
      #2

      same problem using selection

      @clipboard->setText(ddd,QClipboard::Selection);
      mymouse->mouseClick(2);@

      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