Results 1 to 2 of 2

Thread: [Qt Creator] Need help in developing a paiting app

  1. #1
    Join Date
    Jun 2010
    Posts
    26
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default [Qt Creator] Need help in developing a paiting app

    Hello everyone ... Well I'm new to Qt and all, and I'm trying to develop a painting related app which paints on the screen in some areas depending on user input ...

    Now I'm following this tutorial here which uses the 'paintEvent' signal to draw some lines on the widget (QMainWindow) ..:

    http://zetcode.com/tutorials/qt4tutorial/painting/

    What I need is to have some kind of an event (or signal) associated with this main window which triggers the paintEvent when there is a mouseDown event, or something similar ... problem is that I cannot find all the events/signals QMainWindow supports .. The only way I know how to find out which events/signals a control responds to is by right clicking on the control and clicking on 'Go to Slot ...' option ... but here, the signals I see are very less (as compared to the 'events' supported in VS2008 for example, which has a lot more)

    Uptill now, I've developed nearly all my apps for Windows in VS, so I'm a lot more used to that, but since now I want to develop for Maemo, I'm forced to use Qt Creator etc ..

    Any help in this ??

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: [Qt Creator] Need help in developing a paiting app

    problem is that I cannot find all the events/signals QMainWindow supports
    Where did you look for them?
    There are all here:
    http://doc.trolltech.com/4.6/qmainwindow-members.html

    You might want to look at the various mouse event handlers such as mousePressedEvent() etc.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Developing 64 bit applications with Qt
    By swamyonline in forum Qt Programming
    Replies: 2
    Last Post: 1st October 2009, 12:02
  2. QT minimum build to start developing
    By lurky in forum Installation and Deployment
    Replies: 27
    Last Post: 10th September 2009, 20:42
  3. Discussion about developing an onscreen keyboard in Qt
    By montylee in forum Qt Programming
    Replies: 6
    Last Post: 2nd January 2009, 20:09
  4. IDE for developing Qtopia4.3 application
    By namita in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 7th March 2008, 05:29
  5. Developing Plugins
    By Jimmy2775 in forum Qt Programming
    Replies: 5
    Last Post: 28th February 2007, 18:03

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.