Results 1 to 11 of 11

Thread: widget qgraphicsview scaling

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Feb 2007
    Posts
    32
    Thanks
    3

    Default Re: widget qgraphicsview scaling

    i used this code:
    Qt Code:
    1. void scalingApp::resizeEvent(QResizeEvent *event)
    2. {
    3. QWidget::resizeEvent(event);
    4. graphicsView->resize(width(),220);
    5. }
    To copy to clipboard, switch view to plain text mode 

    this allows the graphicsview to only be resize'ed horizontally. however, the button is fixed and doesnt move to the right like i would like it to. (the button is situated on the bottom within a horizontal layout including the button and a horizontal spacer) any hints/help?

    Last edited by mistertoony; 6th March 2007 at 16:55.

Similar Threads

  1. Custom Shape Widget (resize)
    By PiXeL16 in forum Qt Programming
    Replies: 7
    Last Post: 12th February 2007, 07:00
  2. Pin/Unpin Dock Widget
    By charlesD in forum Newbie
    Replies: 1
    Last Post: 21st June 2006, 06:57
  3. Replies: 4
    Last Post: 24th March 2006, 22:50
  4. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 14:16
  5. advanced split widget
    By vitaly in forum Qt Programming
    Replies: 10
    Last Post: 24th January 2006, 20:00

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.