Results 1 to 4 of 4

Thread: Newbie needs advice

  1. #1
    Join Date
    Jul 2006
    Posts
    25
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Newbie needs advice

    Hi all,

    What kind of Main Window should I use?

    I want a main window where I can draw a line by free hand, then add attributes to that line (attributes to be stored).

    If anyone can point me to a main window code that I should use I would appreciate it. I want to look at that code, understand that code, and build upon that code.

    Eventually I want to build the below but I need a good starting point to understand what is going on, so I am looking for a Main Window on where I should start.
    http://www.powerworld.com/images/simb7runmode.jpg

    Thanks in advance

    Seth

  2. #2
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Newbie needs advice

    I would subclass QMainwindow and have QGraphicsView as the central widget.
    We can't solve problems by using the same kind of thinking we used when we created them

  3. The following user says thank you to sunil.thaha for this useful post:

    Seth (13th April 2007)

  4. #3
    Join Date
    Jul 2006
    Posts
    25
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Newbie needs advice

    Sounds good!

    Can you direct me to some already developed code that uses both QMainwindow as a subclass and QGraphicsView as the central widget so I can study it and learn from it?

    Thanks in advance!

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

    Default Re: Newbie needs advice

    See the Ported Canvas example in the Qt Demos. It is in the Graphics View section. Also there are several other examples involving QGraphicsView/QGraphicsScene.

    You should also read the Graphics View Framework, in Assistant.

    Regards.

  6. The following user says thank you to marcel for this useful post:

    Seth (13th April 2007)

Similar Threads

  1. Newbie needs advice on moving to designer
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 11th April 2007, 23:32
  2. how to write RS232,give me some advice?
    By hiuao in forum Qt Programming
    Replies: 2
    Last Post: 23rd February 2007, 08:33
  3. Qtopia H/w Advice needed
    By void* in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 19th January 2007, 11:25
  4. QT/Win 4.1.1 with VisualStudio2005 Newbie
    By skaiser in forum Installation and Deployment
    Replies: 9
    Last Post: 24th March 2006, 02:26

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.