Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    UIC: #include "Qt3Support/Q3ButtonGroup" cannot open include file Qt3Support/Q3ButtonGroup

    Tools
    4
    6
    1306
    Loading More Posts
    • 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.
    • Z
      zosrothko last edited by

      Hi

      I am using Qt VS Tools 2.0.0 on VS2015. The installed Qt is the 5.7 version. Compiling the UI forms generates such code

      /********************************************************************************
      ** Form generated from reading UI file 'OptDisplayDlg.ui'
      **
      ** Created by: Qt User Interface Compiler version 5.7.0
      **
      ** WARNING! All changes made in this file will be lost when recompiling UI file!
      ********************************************************************************/
      
      #ifndef UI_OPTDISPLAYDLG_H
      #define UI_OPTDISPLAYDLG_H
      
      #include <QtCore/QVariant>
      #include <QtWidgets/QAction>
      #include <QtWidgets/QApplication>
      #include <QtWidgets/QButtonGroup>
      #include <QtWidgets/QCheckBox>
      #include <QtWidgets/QDialog>
      #include <QtWidgets/QGridLayout>
      #include <QtWidgets/QGroupBox>
      #include <QtWidgets/QHBoxLayout>
      #include <QtWidgets/QHeaderView>
      #include <QtWidgets/QLabel>
      #include <QtWidgets/QLineEdit>
      #include <QtWidgets/QPushButton>
      #include <QtWidgets/QSpacerItem>
      #include <QtWidgets/QSpinBox>
      #include <QtWidgets/QVBoxLayout>
      #include "Qt3Support/Q3ButtonGroup"
      
      

      but there is no Qt3Support directory under the Qt directory. Where can I found or install this Qt3 support lib?

      JKSH 1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by SGaist

        Hi and welcome to devnet,

        You won't. The Qt3Support module was meant to help people port their Qt 3 application to Qt 4. It has been dropped in Qt 5.

        The best thing to do is to port your code to use QButtonGroup.

        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 Reply Quote 0
        • Z
          zosrothko last edited by zosrothko

          Fine but this code is generated by UIC 5.7.0.. look at the head comment...

          So what did I miss?

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @zosrothko last edited by

            @zosrothko You need to port your form files and then regenerate with uic. You probably will not be able to open those form (ui) files in current QtCreator. But since these files are XML files you can change them manually and replace Q3ButtonGroup with QButtonGroup.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • JKSH
              JKSH Moderators @zosrothko last edited by

              @zosrothko said in UIC: #include "Qt3Support/Q3ButtonGroup" cannot open include file Qt3Support/Q3ButtonGroup:

              I am using Qt VS Tools 2.0.0 on VS2015. The installed Qt is the 5.7 version. Compiling the UI forms generates such code

              Hi,

              Can you please describe how you created the form?

              Is this form from an old project, or did you start a new project?

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply Reply Quote 0
              • Z
                zosrothko last edited by

                This form is from an old Qt3toQT4 project. (qfsm on sourceforge, now on GitHub)

                I changed manually all Qt3ButtonBox to QtGroupBox and it works. Thanks for the tip. It remains some more works on others Qt3 class not anymore supported.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post