Results 1 to 2 of 2

Thread: the Function setBuddy() does't work

  1. #1
    Join Date
    Jan 2016
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default the Function setBuddy() does't work

    I write the code with the book <<c++ GUI programming whit Qt4>>

    label = new QLabel(tr("Find &What"));
    lineEdit = new QLineEdit;
    label->setBuddy(lineEdit);


    when i pressed Alt+W,the focus sholud have jumped to lineEdit field,
    but nothing happened, why ?


    My qt version: Qt 5.5
    complier: windbg_x86 6.11.1

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: the Function setBuddy() does't work

    Where else in your program is the shortcut key is Alt+W defined and used?

Similar Threads

  1. Replies: 12
    Last Post: 30th April 2014, 13:33
  2. Replies: 15
    Last Post: 23rd December 2013, 07:38
  3. Replies: 7
    Last Post: 30th August 2013, 15:01
  4. Replies: 3
    Last Post: 1st May 2013, 21:44
  5. qSort doesn't work with member function
    By ber_44 in forum Qt Programming
    Replies: 10
    Last Post: 2nd June 2007, 13:00

Tags for this Thread

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.