Results 1 to 3 of 3

Thread: Design question.

  1. #1
    Join Date
    Feb 2010
    Location
    Japan
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Design question.

    Hello everyone.

    I have a question on how you would go about designing a widget to perform the following function.

    I have a Nokia N900 which I want to use for practicing Japanese Kanji with the Stylus. To do this I need a widget which will display the kanji and also let me draw on it. (Like tracing paper).

    I originally thought That I could use a widget subclassed from QGraphicsView associated with a QGraphicsScene. A QGraphicsSimpleText holds the Kanji and I paint on the subclassed QGraphicsView widget.

    I am having problems with this approach but before I start asking about my particular problem I was wondering if using QGraphicsView is the right way to go about this.

    Obviously I am total beginner with Qt (And it has been a long time since I did c++) so any advice would be very useful (Using different widgets?).

    Regards,

    RJ
    Last edited by RurouniJones; 14th March 2010 at 08:04. Reason: Clarifications

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Design question.

    It's fine to use QGraphicsView but it might be an overkill if all you want to do is to display a glyph and paint over it. See the Scribble example that comes with Qt - you can do it like this too.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    RurouniJones (14th March 2010)

  4. #3
    Join Date
    Feb 2010
    Location
    Japan
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Design question.

    Thank you for that; I found the scribble program just before I came back and read your post and wondered if that was a better way.

    Thank you for pointing me in the right direction.

Similar Threads

  1. MDI design question
    By mooreaa in forum Qt Programming
    Replies: 8
    Last Post: 8th April 2011, 09:42
  2. Thread Design Question
    By craigdillabaugh in forum Qt Programming
    Replies: 4
    Last Post: 30th April 2009, 19:16
  3. Design question regarding dll
    By MarkoSan in forum Qt Programming
    Replies: 1
    Last Post: 11th December 2008, 16:49
  4. A question of style and design
    By Kumosan in forum General Programming
    Replies: 7
    Last Post: 16th March 2007, 09:34
  5. Design problem/question
    By Valheru in forum Qt Programming
    Replies: 2
    Last Post: 27th September 2006, 21:45

Tags for this Thread

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.