Results 1 to 2 of 2

Thread: Which Qt4 function is used in spite of setPaletteBackgroundPixmap()

  1. #1
    Join Date
    Aug 2007
    Location
    Gorakhpur, India
    Posts
    254
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question Which Qt4 function is used in spite of setPaletteBackgroundPixmap()

    Dear Everyone!
    Which Qt4 fuction is available to use correponding to Qt3 function
    Qt Code:
    1. setPaletteBackgroundPixmap (QPixmap ( "supeme.jpg", 0, QPixmap::Auto ) );
    To copy to clipboard, switch view to plain text mode 
    Anurag Shukla
    A man who never makes mistake is the man who never does anything! Theodre Rosvelt!

  2. #2
    Join Date
    Oct 2007
    Posts
    39
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Smile Re: Which Qt4 function is used in spite of setPaletteBackgroundPixmap()

    if your code is like this
    Qt Code:
    1. widget->setPaletteBackgroundPixmap(pixmap);
    To copy to clipboard, switch view to plain text mode 

    then you can replace it with

    Qt Code:
    1. QPalette palette;
    2. palette.setBrush(widget->backgroundRole(), QBrush(pixmap));
    3. widget->setPalette(palette);
    To copy to clipboard, switch view to plain text mode 

    a pure qt4 code
    Darshan

Similar Threads

  1. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  2. Link Errors
    By magikalpnoi in forum Qt Programming
    Replies: 5
    Last Post: 25th September 2006, 22:04
  3. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52
  4. Qt 4.1.4 plugin QPSQL
    By jcr in forum Installation and Deployment
    Replies: 4
    Last Post: 22nd June 2006, 22:55
  5. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52

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.