Results 1 to 2 of 2

Thread: Alt key changes the text of the Qcheckbox showing the shortcut

  1. #1
    Join Date
    Oct 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Alt key changes the text of the Qcheckbox showing the shortcut

    I have a QDialog,
    He owns a QCheckBox, put the text describing the short cut to "&"
    example:

    ui-> myCheckBox-> setText ("Acce&pt");

    Run the program and when I click the dialog and then press the key ALT the text of the changes "Accept" to "Acce&pt". Can anyone help me?
    QT version 4.7.2.

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 106 Times in 103 Posts

    Default Re: Alt key changes the text of the Qcheckbox showing the shortcut

    What OS?

    I've never seen such problem.
    Try to clear and recompile the project.

    Also you could post some code, maybe there's some simple mistake we can spot.

Similar Threads

  1. QCheckBox with long text label
    By Ferdous in forum Newbie
    Replies: 5
    Last Post: 29th October 2011, 19:05
  2. using QCheckBox->text() from QThread
    By yodasoda in forum Qt Programming
    Replies: 2
    Last Post: 18th September 2010, 07:49
  3. Custom ListWidget(QCheckBox + Icon + Text)
    By nrabara in forum Newbie
    Replies: 6
    Last Post: 13th May 2010, 06:35
  4. QLable::setText(text) is not showing the Text
    By ranna in forum Qt Programming
    Replies: 4
    Last Post: 14th November 2008, 09:39
  5. Qt class showing text area/text edit
    By maverick_pol in forum Qt Programming
    Replies: 4
    Last Post: 21st August 2008, 12:15

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
  •  
Qt is a trademark of The Qt Company.