Results 1 to 4 of 4

Thread: Tutorial/Walkthrough system on top of a Qt application

  1. #1
    Join Date
    Apr 2013
    Posts
    14
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Tutorial/Walkthrough system on top of a Qt application

    Hi guys,

    I wanted to know if someone has ever done something like a tutorial/walkthrough in a Qt application - the type you see in games or complex applications. Basically, what I want is a feature that opens up the first time you open the app and it blacks out the screen except for a the New button and has an text with an arrow pointing to the button saying "Click here to create a new file". Once the user does that, it would enable another part of the screen and thus guide them through step by step. Hope I'm explaining this well enough. Something like this:
    Untitled.jpg
    I know Qt probably does not have such an in-built system but I am looking for pointers on how to get started. Any tips appriciated. Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Tutorial/Walkthrough system on top of a Qt application

    I have in fact created something a bit like that for a demo once.

    If I remember correctly I created a custom widget that would resize itself to match the size of the thing it was covering, using an event filter.

    It would receive "allowed" area via signal and adjust its painting accordingly.
    The painting was done using QPainterPath, first adding a rectangle that is the whole area and then adding the "hole". The painter path fill rules would then fill everything that is not the whole with a semi transparent color.

    I think mouse events need to be received and forward to the actual window as well, but I am a bit fuzzy on that, been quite a while

    Cheers,
    _

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

    regular (15th August 2014)

  4. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Tutorial/Walkthrough system on top of a Qt application

    It sounds to me like the OP means a "wizard" of some sort maybe. Have a look at QWizard, maybe that has the basis of what you need. You could connect to the currentIdChanged() signal to implement the progressive enabling of the UI you refer to. Wizards are QDialog-based, so they don't have to be modal.

  5. #4
    Join Date
    Aug 2014
    Posts
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android

    Default Re: Tutorial/Walkthrough system on top of a Qt application

    What about this solution?
    (github source link inside)

    http://qt-apps.org/content/show.php/...content=162277

    162277-1.png

    It seems eyecandy and easy to implement as it is just a widget

Similar Threads

  1. Deploying a qt application to a system without qt
    By aaditya190 in forum Installation and Deployment
    Replies: 1
    Last Post: 10th January 2014, 07:51
  2. my application won't work on same system
    By puujee in forum Installation and Deployment
    Replies: 1
    Last Post: 17th October 2012, 05:22
  3. Create a help system for my application.
    By deepal_de in forum Qt Programming
    Replies: 1
    Last Post: 10th January 2012, 07:53
  4. Cpu Plot walkthrough
    By maxpayne in forum Qwt
    Replies: 1
    Last Post: 13th October 2008, 11:16
  5. Is There any Tutorial for non GUI Tcp Application
    By pilgermann in forum Qt Programming
    Replies: 1
    Last Post: 8th February 2006, 18:12

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.