Results 1 to 3 of 3

Thread: disable automatically created accelerator keys

  1. #1
    Join Date
    Nov 2006
    Posts
    2
    Qt products
    Qt3
    Platforms
    Windows

    Default disable automatically created accelerator keys

    Hello,

    hope, anyone can help me:

    How can I disable the behavior, that Qt creates automatically shortcuts on buttons. I create a button and use labeld it with e.g. abc.setText("Start"). When I re-read the button-label, I get: abc.text() = "S&tart".

    I have an UI with many buttons, so shortcuts may not sence and I don't want to see the underlined characters. With Qt 3.0.5 my Application works fine (no shortcuts), but I have installed a new Linux-Distribution with Qt 3.4.4. that show this behavior.

    Greetings from Jena/Germany

    Joerg

  2. #2
    Join Date
    Nov 2006
    Posts
    2
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: disable automatically created accelerator keys

    Hey All,


    I have found the reason for my problem (not the solution). It's not Qt, it's KDE.

    When I generate my project as a QApplication, everything is fine - generate as KApplication forces the Auto-Accelerator-Keys.


    So I should close this thread and look at the KDE-Guys

  3. #3
    Join Date
    Jan 2008
    Posts
    7
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: disable automatically created accelerator keys

    Old thread but the subject is still valid. For some months ago updating KDE to 3.5.8 broke our application. We use menus which have autogenerated items and it worked fine until... And now people have a crashing application because it's packaged with distributions and KDE has been automatically updated.

    That was easy enough to fix because our data didn't use ampersand, but now I'm running into this same problem with tab names. The data is user defined and we should write extra code to handle the ampersands - and what happens if KDE is fixed again? Does someone has a solution?

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.