Results 1 to 2 of 2

Thread: QGraphicsView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2007
    Posts
    104
    Thanks
    22
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QGraphicsView

    Qt Code:
    1. class ImenuPage:public QGraphicsView,public IBasePage
    2. {
    3. }
    To copy to clipboard, switch view to plain text mode 
    IBasePage is an abstract class and inherits from QWidget.

    Qt Code:
    1. ImenuPage::ImenuPage(EditorPage *_editor,QWidget *parent)
    2. :QGraphicsView(parent),IBasePage(_editor)
    3. {
    4. scene=new QGraphicsScene;
    5. scene->setSceneRect(230, 100, 560, 320);
    6. setScene(scene);
    7. }
    8.  
    9. class IBasePage:public QWidget
    10. {
    11. }
    To copy to clipboard, switch view to plain text mode 

    When I didnt use IBasePage I can create a scene and show images.But If I use above codes there is nothing.Why?
    Last edited by jacek; 17th August 2007 at 23:53. Reason: missing [code] tags

Similar Threads

  1. Creating a widget on a QGraphicsView
    By maverick_pol in forum Qt Programming
    Replies: 4
    Last Post: 9th August 2007, 17:54
  2. QGraphicsView
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 26th July 2007, 08:00
  3. Speed, transparency, and drop issues with QGraphicsView
    By jefferai in forum Qt Programming
    Replies: 16
    Last Post: 30th June 2007, 16:14
  4. no image displayed on QGraphicsView
    By sincnarf in forum Qt Programming
    Replies: 9
    Last Post: 28th June 2007, 12:33
  5. QGraphicsView and item focus
    By Micawber in forum Qt Programming
    Replies: 3
    Last Post: 22nd June 2007, 20: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.