Results 1 to 3 of 3

Thread: How to put image on QSplitter? (Qt3)

  1. #1
    Join Date
    Jan 2006
    Location
    Moscow, Russia
    Posts
    23
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default How to put image on QSplitter? (Qt3)

    I would like to use "skins" in my application, but I have no idea of how to put image on QSplitter. Could anyone help me with this?

    Thanks in advance!

  2. #2
    Join Date
    Oct 2008
    Posts
    17
    Thanked 1 Time in 1 Post

    Default Re: How to put image on QSplitter? (Qt3)

    I don't know what it has to do with skins feature, but to put images on a QSplitter you could easily create a QLabel, set its Pixmap (image) with setPixmap and add it to the QSplitter. You could change the displayed image arbitrary by calling yourLabel->setPixmap(image).

  3. #3
    Join Date
    Jan 2006
    Location
    Moscow, Russia
    Posts
    23
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to put image on QSplitter? (Qt3)

    Quote Originally Posted by tinsuke View Post
    I don't know what it has to do with skins feature, but to put images on a QSplitter you could easily create a QLabel, set its Pixmap (image) with setPixmap and add it to the QSplitter. You could change the displayed image arbitrary by calling yourLabel->setPixmap(image).
    It looks proposed sulution doesn't work for Qt3

    I tried this way:
    Qt Code:
    1. QLabel* l = new QLabel(_splitter);
    2. l->setPixmap(pixmap);
    To copy to clipboard, switch view to plain text mode 

    and this:
    Qt Code:
    1. _splitter->setPaletteBackgroundPixmap(pixmap)
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. can Qlabel display a series of image one by one ?
    By jirach_gag in forum Qt Tools
    Replies: 3
    Last Post: 11th August 2008, 15:36
  2. Finding marks on scanned image for alignment
    By caduel in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2007, 02:10
  3. How and when to repaint a widget ?
    By yellowmat in forum Newbie
    Replies: 7
    Last Post: 3rd April 2006, 16:36
  4. To put Image on QSplitter
    By moizahamedv in forum Qt Programming
    Replies: 10
    Last Post: 3rd March 2006, 12:05
  5. Question about updating an image on screen
    By SkripT in forum Qt Programming
    Replies: 1
    Last Post: 24th February 2006, 19:01

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.