Results 1 to 5 of 5

Thread: Unexpected pasting of text in qtcreator

  1. #1
    Join Date
    Apr 2014
    Posts
    53
    Thanks
    9

    Default Unexpected pasting of text in qtcreator

    I have been working with QTCreator for a while, and I found that it unexpectedly pastes text sometimes somewhere in the file where I am working in (editing) currently. Some times this pasted text compiles without error and gives me serious runtime bugs. I wonder if someone else noted this? I just suddenly find code snippets where they shouldn't be and I have no idea how that happened. Does some one seen this before ? I would think it pastes text on mouse click , but then why is this only happening to me with QT Creator and not any other application. (I am using Fedora 23.)


    TIA
    Nulik

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Unexpected pasting of text in qtcreator

    Sounds like this could be one of those problems that originates somewhere between the chair and the keyboard...

    I have had problems when using a laptop and touchpad where the pressure of my hands on the sides of the case near the touchpad can generate spurious mouse clicks. I know this because all of a sudden I find myself typing into some random place in my document instead of the place where I was originally typing. For that reason I always disable the touchpad and attach an external mouse. You probably use Qt Creator more often than other apps which is why you notice it there.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. The following user says thank you to d_stranz for this useful post:

    nuliknol (11th December 2016)

  4. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Unexpected pasting of text in qtcreator

    Another possibility is that you accidentally do a middle-mouse-button click which pastes the last mouse selection.

    An extremely useful X11 feature of you are aware of it but confusing if you are not.

    Cheers,
    _

  5. #4
    Join Date
    Apr 2014
    Posts
    53
    Thanks
    9

    Default Re: Unexpected pasting of text in qtcreator

    Thanks guys. I found what it was. When I scrolled quickly (upwards) with the mouse wheel, the wheel (which is also the third button) was also being pressed, and pasting occurred. I will check if I can disable this third button in linux.

  6. #5
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Unexpected pasting of text in qtcreator

    Sounds like this could be one of those problems that originates somewhere between the chair and the keyboard...
    Like I said
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Pasting emoji in QT QTextEdit
    By JohnWillzy in forum Newbie
    Replies: 0
    Last Post: 8th September 2014, 17:30
  2. Pasting from MS Word to QTextEdit
    By hunsrus in forum Qt Programming
    Replies: 0
    Last Post: 18th March 2010, 13:40
  3. QtCreator warning underlines in text editor
    By chaoticbob in forum Qt Tools
    Replies: 6
    Last Post: 29th December 2009, 23:46
  4. Problem pasting text into a QTextEdit
    By Spockmeat in forum Qt Programming
    Replies: 8
    Last Post: 14th March 2009, 14:36
  5. qtcreator text editor color scheme problem
    By elflord in forum Qt Tools
    Replies: 1
    Last Post: 5th March 2009, 17:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.