Results 1 to 4 of 4

Thread: An intro I do at LineEdit is processed as a mouseclick

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default An intro I do at LineEdit is processed as a mouseclick

    I have an icon (a pushbutton) to open a text file. (the mousepressed is used)
    Into the same frame where I have other widgets (icons-pushbutton) I have a QlineEdit to write a line number and I have connected the returnPressed to do some things.
    After proccess the comands linked to this event (place the cursor at the right position) I give the focus to the QtextEdit where I'm viewing the file.

    Ok, I dont know how, but the same event linked with the last mousepressed event (the pushbutton-icon to open a file) is launched.... ??????

    I have placed another lineEdit without returnPressed conected and the same occurs. (If I press return )
    What is happen?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: An intro I do at LineEdit is processed as a mouseclick

    Have you set a buddy? Can we see your code?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: An intro I do at LineEdit is processed as a mouseclick

    Make sure the button has the "default" and "autoDefault" properties set to false.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: An intro I do at LineEdit is processed as a mouseclick

    Yes that is the solution.
    However, I have observed a strange behavior if I dont set the buttons to true and false again. ( I I have cleaned my project).
    Thanks

Similar Threads

  1. wait until a signal is processed
    By mentalmushroom in forum Qt Programming
    Replies: 9
    Last Post: 10th November 2011, 13:17
  2. Events not processed using QMfcApp::pluginInstance
    By nokkie in forum Qt Programming
    Replies: 1
    Last Post: 29th April 2010, 00:23
  3. Personal Intro
    By prof.ebral in forum Newbie
    Replies: 2
    Last Post: 17th February 2010, 11:50
  4. Intro - Warning: BBBOORRRIINNGGG!!!!!
    By katrina in forum General Discussion
    Replies: 65
    Last Post: 26th January 2006, 17:47
  5. Intro/Rambles
    By rickbsgu in forum General Discussion
    Replies: 1
    Last Post: 25th January 2006, 08:06

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.