Results 1 to 12 of 12

Thread: QStackedWidget fill Postscript image And scroll problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: QStackedWidget fill Postscript image And scroll problem

    Nice...
    Qt Code:
    1. onepdf->SetPage(nowrender,QSize(doc->getPageWidth(nowrender),doc->getPageHeight(nowrender)));
    2. src->setWidget(onepdf);
    3. onepdf->setMinimumHeight(doc->getPageHeight(nowrender) + 1);
    4. onepdf->setMinimumWidth(doc->getPageHeight(nowrender) + 50);
    5. src->setBackgroundRole(QPalette::Dark);
    To copy to clipboard, switch view to plain text mode 
    I thought that:
    Qt Code:
    1. onepdf->SetPage(nowrender,QSize(doc->getPageWidth(nowrender),doc->getPageHeight(nowrender)));
    To copy to clipboard, switch view to plain text mode 
    was already setting the size of onepdf.

    EDIT:
    Shouldn't you use:
    Qt Code:
    1. onepdf->setMinimumHeight(doc->getPageWidth(nowrender) + 1);
    2. onepdf->setMinimumWidth(doc->getPageHeight(nowrender) + 50);
    To copy to clipboard, switch view to plain text mode 
    You were setting page height for both minimum width and height.
    Regards
    Last edited by marcel; 22nd April 2007 at 09:38.

Similar Threads

  1. Big image, how to scroll to see it ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2007, 13:27
  2. Scroll large image in game
    By Morea in forum Qt Programming
    Replies: 2
    Last Post: 11th August 2006, 23: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.