Results 1 to 4 of 4

Thread: Need help with a project

  1. #1
    Join Date
    Mar 2019
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Need help with a project

    Hello everyone,i just installed Qt for the first time,so i am a total newbie. I have to make an application which will do the following : I need to insert a powerpoint presentation(the presentation is about C/C++),create 3 buttons (next,back and exit) and make one more thing. When the user comes to a slide with a C/C++ example that a random line of the code is missing and that the user needs to insert the missing line,if the line is correct he then may proceed to the next slide. As i mentioned before,im using Qt for the first time,and i have almost no knowledge about C/C++. I hope you can give me some tips or something that can help me do this. 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: Need help with a project

    Since this is centered around Powerpoint my suggestion would be to investigate some form of Powerpoint scripting instead.

    Like Visual Basic for Applications or any .NET/C# variation thereof.

    Cheers,
    _

  3. #3
    Join Date
    Mar 2019
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Need help with a project

    Thank you for your reply, but as i mentioned above i have almost no knowledge/experience when it comes to programming. The project must be done in Qt,and i dont know from where to start...

  4. #4
    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: Need help with a project

    I think what anda_skoa is trying to say is that this project is not suitable for doing in Qt. If you have to interact with an actual Powerpoint presentation where you must keep track not only of which slide is being displayed, but know the content of the slide -and- be able to tell if a user has correctly entered missing information onto the slide, this is not something you can easily do with Qt.

    Qt does have support for embedding ActiveX controls and objects into a Qt program, but this is really no different from what you can do much more easily with Visual Basic or .NET / C#.

    If you do not need to interact with an actual Powerpoint presentation, but can use JPG / PNG images of the pages in the presentation instead, then the problem is easier. You can use the image / pixmap support in Qt to display the "pages" of the presentation on a QLabel. QPushButton is for the three buttons, and QLineEdit so the user can type the missing text if there is any.

    You would need to build a list of filenames for each page in the presentation, and for each of those pages, a lookup table that gives the missing text for each page. If a page does not have missing text, the entry for that page is an empty string. As you advance to each page, you load the file with the image of that page, check the lookup table to see if there is any missing text, and enable or disable the Next button accordingly. If there is missing text, you wait for the user to enter it (using a slot connected to the QLineEdit::editingFinished() signal), compare the user's answer to the "correct" answer, and if the user is right, enable the Next button.

    Look at the Qt Image Viewer example for ideas if this kind of solution is within the scope of your project.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 1
    Last Post: 3rd August 2016, 08:21
  2. Replies: 7
    Last Post: 28th November 2014, 16:59
  3. Replies: 4
    Last Post: 20th January 2013, 12:01
  4. Replies: 1
    Last Post: 4th December 2009, 00:34
  5. Project generation on linux from QT Project
    By darpan in forum Qt Programming
    Replies: 6
    Last Post: 11th December 2006, 10:43

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.