Results 1 to 2 of 2

Thread: Hiding QPushButton String in QSigalMapper built keypad.

  1. #1
    Join Date
    May 2010
    Posts
    100
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Hiding QPushButton String in QSigalMapper built keypad.

    hellow,

    I am building a QWERTY keypad of aplhanumeric keys and some others Enter, Shift, up, down,right,left arrow and delete with QSignalMapper class. And this is ready.

    I need to use my own buttons Images on that. I have tried with setpixmap for each key.But i can't hide the QString attached with each button.When i am doing this,the string name is shifting and both string name and image are seen. I want to hide this string and want to show only image.

    Than,it should be able to link to the mapped(QString), when i press any of key.

    Thank you all .

  2. #2
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: Hiding QPushButton String in QSigalMapper built keypad.

    You can subclass QPushButton, add a variable to store your text, create functions to set and retrieve it.

Similar Threads

  1. Implementing Keys : 1, a, b, c in QWSServer::Keypad
    By ramsarvan in forum Qt Programming
    Replies: 1
    Last Post: 18th May 2011, 10:59
  2. Replies: 3
    Last Post: 11th May 2010, 04:50
  3. Need help regarding the keypad
    By rohan_m_e in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 26th February 2009, 04:05
  4. Detecting KeyPad Events from my Keypad
    By Svaths in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 18th August 2006, 07:28
  5. Regarding KeyPad Handling
    By mahe2310 in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 17th July 2006, 08:03

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.