Results 1 to 6 of 6

Thread: QToolButton & QPushButton

  1. #1
    Join Date
    Jan 2008
    Posts
    13
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Cool QToolButton & QPushButton

    hi!

    how can i remove the & in the QPushButoon and QToolButton name?

    everytime i add new QToolButton or QPushButton, & is automatically added in its name.. i edited the buttons name and remove the & but after pressing ok, the & returns..

    is way a to remove this?

    im using qt 3.3 on linux..

    thnks..

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QToolButton & QPushButton

    Can you explain this a little more or provide some screen shots explaining , what's exactly is happening?

  3. #3
    Join Date
    Jan 2008
    Posts
    13
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QToolButton & QPushButton

    for instance, i will insert new QPushButton in the designer (im using KDevelop Designer), then the default button text is p&ushButton1. then i'm trying to remove the & in the buttons text. the problem is i cant remove & in the buttons text..

    thks...
    Last edited by hrcariaga; 15th July 2008 at 06:14. Reason: updated contents

  4. #4
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QToolButton & QPushButton

    May be this is an issue with KDevelop designer (not sure). But you can do this.

    Open the UI file in some text pad, search for your pushbutton name, remove the '&' and save the file. Now compile your code and see if you still have the problem.

  5. #5
    Join Date
    Jan 2008
    Posts
    13
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QToolButton & QPushButton

    i did it but still the same problem...

    the '&' stil returning...

    niwei thanks...

  6. #6
    Join Date
    Apr 2008
    Posts
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QToolButton & QPushButton

    Did you check for all occurrences of the string in the ui file? I dont use designer myself but i remember seeing a section for translations which sets all the ui text.

Similar Threads

  1. Adding Image to QPushButton
    By Seema Rao in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2011, 09:06
  2. QPushButton not calling repaint when needed?
    By Enygma in forum Qt Programming
    Replies: 5
    Last Post: 13th May 2010, 17:03
  3. Change QPushButton Background Color, Qt4.3
    By Rayven in forum Qt Programming
    Replies: 5
    Last Post: 4th July 2009, 07:14
  4. Changing QPushButton text colour with mouseMoveEvent
    By Misenko in forum Qt Programming
    Replies: 1
    Last Post: 10th June 2008, 16:53
  5. Replies: 3
    Last Post: 26th September 2006, 12:16

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.