Results 1 to 5 of 5

Thread: Lindedit error

  1. #1
    Join Date
    Aug 2011
    Posts
    42
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Lindedit error

    I have Qt running on an ITX(Win Xp). I have an external device which puts some data onto to the keyboard buffer. I used a linedit with setFocus event to capture this input. I developed the program on Win7 & it runs fine in it. But when i try running in the ITX machine it just prints garbage (----?++00--) I'm not sure why this is happening. I tried to create a new project on the itx & linedit, textedit all seem to have the same problem, they cant read from the keyboard buffer. Why is this happenning?

    Prem

  2. #2
    Join Date
    Feb 2008
    Posts
    491
    Thanks
    12
    Thanked 142 Times in 135 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Lindedit error

    Just a WAG, but if you are connected through the serial port, are the pinouts the same?

  3. #3
    Join Date
    Aug 2011
    Posts
    42
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Lindedit error

    No, I'm using a USB RFID reader. It spits tue value onto a keyboard buffer. When I open a notepad it seems to spit out the right values. But on Qt it spits out garbage. I'm not sure why that's happening

  4. #4
    Join Date
    Aug 2011
    Posts
    42
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Lindedit error

    To make it clear
    On a notepad i get 00000000097A66BE
    On Qt i get ˆˆˆˆˆˆˆˆˆÉ +ÿ¨¨š+
    Ofcourse, the fist one is right. Is this because of an encoding/pasring error? how can i solve this?

  5. #5
    Join Date
    Aug 2011
    Posts
    44
    Thanked 13 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows Symbian S60

    Default Re: Lindedit error

    You could try to monitor WM_CHAR and WM_KEYDOWN windows messages for the lineedit and paste here those with WParams and LParams.
    Maybe we'll find a workaround.

Similar Threads

  1. no compile error, but error on run with QMenu QAction
    By sincnarf in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2011, 11:05
  2. : error: [\NokiaQtSDK\Symbian\SDK\epoc32\release\gcce\udeb\V ideo.exe] Error 1
    By ranjit.kadam in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 1st May 2011, 22:11
  3. Replies: 3
    Last Post: 23rd January 2011, 12:15
  4. fatal error C1001: An internal error has occurred in the compiler
    By noodles in forum Installation and Deployment
    Replies: 0
    Last Post: 12th August 2010, 11:24
  5. Replies: 1
    Last Post: 25th October 2008, 19:18

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.