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. Map of Class Names onto Implementing Libraries
Forum Updated to NodeBB v4.3 + New Features

Map of Class Names onto Implementing Libraries

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.0k Views 3 Watching
  • 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.
  • Carey GisterC Offline
    Carey GisterC Offline
    Carey Gister
    wrote on last edited by Carey Gister
    #1

    I'm porting an existing application to 64 bit Windows. The application was last built using QT 4.5 under Visual Studio 2005. I am building it under Visual Studio 2013 using QT 5.6.

    I am not familiar with QT and I need to get this project done. I am looking for a list that maps QT classes, such as QFont, onto the implementing library so that I can add that library to my library list. QFont is a specific example, but I need this solution for the general case.

    If such a document does not exist, then how would you solve his problem other than dumping the contents of the existing libraries and searching them?

    This seems like a common problem, yet I could not find the solution in the forums.

    Ideally, the QT class documentation would contain a reference to the implementing debug and non-debug libraries.

    Thank you in advance.

    kshegunovK 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by SGaist
      #2

      Hi and welcome to devnet,

      The first step is basically to add QT += widgets in your .pro file and the removed all module prefix from your includes. i.e.

      #include <QtGui/QWidget> => #include <QWidget>
      

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Carey GisterC Carey Gister

        I'm porting an existing application to 64 bit Windows. The application was last built using QT 4.5 under Visual Studio 2005. I am building it under Visual Studio 2013 using QT 5.6.

        I am not familiar with QT and I need to get this project done. I am looking for a list that maps QT classes, such as QFont, onto the implementing library so that I can add that library to my library list. QFont is a specific example, but I need this solution for the general case.

        If such a document does not exist, then how would you solve his problem other than dumping the contents of the existing libraries and searching them?

        This seems like a common problem, yet I could not find the solution in the forums.

        Ideally, the QT class documentation would contain a reference to the implementing debug and non-debug libraries.

        Thank you in advance.

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on last edited by kshegunov
        #3

        @Carey-Gister said:

        I am not familiar with QT and I need to get this project done. I am looking for a list that maps QT classes, such as QFont, onto the implementing library so that I can add that library to my library list. QFont is a specific example, but I need this solution for the general case.

        I don't understand the question. Are you looking in which module the class is defined? If so, the documentation provides that (e.g. for QFont)

        QT += gui

        So the class is in the gui module - Qt5Gui.dll.

        Ideally, the QT class documentation would contain a reference to the implementing debug and non-debug libraries.

        There's a difference only for windows. On linux the debug and release libraries are actually compatible and can be used interchangeably. For me they just reside in different folders. On windows the debug libraries have d suffix to them, so Qt5Guid.dll would be the debug version of Qt5Gui.dll.

        Kind regards.

        Read and abide by the Qt Code of Conduct

        1 Reply Last reply
        1
        • Carey GisterC Offline
          Carey GisterC Offline
          Carey Gister
          wrote on last edited by
          #4

          Yes, that answers the question. I was not aware that the qmake QT += X syntax specified the containing library.

          1 Reply Last reply
          0

          • Login

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