Results 1 to 3 of 3

Thread: how to get rid of the fram of a button!!

  1. #1
    Join Date
    Sep 2006
    Location
    nanjing China
    Posts
    19
    Thanks
    3
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default how to get rid of the fram of a button!!

    Hi ,All!
    I am a beginer of QT3,now i want to get rid of the frame of a button(i want to get the button like the button of the menu of xp ),which is designed by QT Desinger,but i don't know how to modify it!







    sorry for my poor english !

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to get rid of the fram of a button!!

    Either subclass QPushButton (or QToolButton) and reimplement its paint event or subclass one of QStyle subclasses and reimplement drawControl. But check first, maybe it's enough for your needs to only activate the "flat" property of QPushButton.

  3. #3
    Join Date
    Sep 2006
    Location
    nanjing China
    Posts
    19
    Thanks
    3
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: how to get rid of the fram of a button!!

    Thanks for your reply!

Similar Threads

  1. Create a new button
    By avis_phoenix in forum Qt Programming
    Replies: 7
    Last Post: 3rd September 2006, 18:56
  2. Paint XP radio button to pixmap
    By Ben.Hines in forum Qt Programming
    Replies: 2
    Last Post: 26th April 2006, 21:15
  3. Push Button problem!!
    By Seema Rao in forum Qt Programming
    Replies: 1
    Last Post: 22nd April 2006, 16:31
  4. Push button double click
    By curtisw in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2006, 16:40
  5. QLabel on a Button
    By cwalsh in forum Newbie
    Replies: 4
    Last Post: 12th January 2006, 16:06

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.