Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Errors in code for "Assigning a file type to an Application on Windows". Which is provided by Qt wiki in "https://wiki.qt.io/".

Errors in code for "Assigning a file type to an Application on Windows". Which is provided by Qt wiki in "https://wiki.qt.io/".

Scheduled Pinned Locked Moved Unsolved General and Desktop
file typeerrorsatomassignwiki
3 Posts 3 Posters 362 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saad02
    wrote on 2 Jul 2022, 18:34 last edited by
    #1

    [https://wiki.qt.io/Assigning_a_file_type_to_an_Application_on_Windows](link url mentioned below)
    The code of the upper link has a bunch of problems. It's about "Assigning a file type to a Qt application on windows".
    It has a warning in "explicit DocumentWindow()" function, bugs in "DocumentWindow::ddeInitiate()", "bool DocumentWindow::SetHkcrUserRegKey()", "void DocumentWindow::executeDdeCommand()" and "bool DocumentWindow::winEvent()" function.
    I am requesting to solve those problems. Thanks for your kind concern!

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 2 Jul 2022, 19:25 last edited by
      #2

      @Saad02 said in Errors in code for "Assigning a file type to an Application on Windows". Which is provided by Qt wiki in "https://wiki.qt.io/".:

      I am requesting to solve those problems.

      You can do it too - everyone can edit a this wiki.

      It has a warning in "explicit DocumentWindow()" function, bugs in "DocumentWindow::ddeInitiate()", "bool DocumentWindow::SetHkcrUserRegKey()", "void DocumentWindow::executeDdeCommand()" and "bool DocumentWindow::winEvent()" function.

      Maybe you simply can tell us what exactly is wrong and/or fix it directly by yourself when you already know what's wrong.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ChrisW67
        wrote on 3 Jul 2022, 06:27 last edited by
        #3

        To quote the wiki page, "You may use this code without any warranty. "

        The code is from 2011, when Qt 4 was the latest. Attempting to compile the Git code with Qt 5 or 6 will not work as-is. The error in DocumentWindow::winEvent() is simply because Qt5 changed the API and removed QPaintDevice::winEvent() (and by inheritance from QWidget and QMainWindow). Look at QWidget::nativeEvent() when you are porting.

        There are a few typos in the Wiki page source code and a now broken link to the source on Gitorious.
        Gitorious ceased to be in 2015 when taken over by Gitlab. The source still exists there. The simple typos are not present in the Git sources.

        When you have finished porting to Qt5 and Qt6 feel free to update the wiki page with code that uses include guards to handle version differences.

        1 Reply Last reply
        2

        3/3

        3 Jul 2022, 06:27

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved