Results 1 to 5 of 5

Thread: Image on Splitter

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Image on Splitter

    Ok. Maybe the index of the handle is wrong or the child-parent relationship between the label and the handle is messed.

    Try adding labels with the image on every handle:
    Qt Code:
    1. int i = 0;
    2. while (splitter->handle(i))
    3. {
    4. QLabel* label = new QLabel(splitter->handle(i));
    5. label->setPixmap(pixmap);
    6. ++i;
    7. }
    To copy to clipboard, switch view to plain text mode 

    Btw, I tested setting a pixmap in the splitter handle in win and linux environments and both worked for me (Qt 4.1.1)..
    (Except that handle width didn't change on linux but I still was able to see the pixmap though..)

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Image on Splitter

    Isn't this more or less what you are looking for?
    Attached Images Attached Images
    Attached Files Attached Files

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. Explanation to Image Formats
    By sincnarf in forum Qt Programming
    Replies: 13
    Last Post: 6th July 2007, 17:02
  4. Help needed handling image data
    By toratora in forum General Programming
    Replies: 2
    Last Post: 11th May 2007, 09:24
  5. How and when to repaint a widget ?
    By yellowmat in forum Newbie
    Replies: 7
    Last Post: 3rd April 2006, 16:36

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.