Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. UIC: #include "Qt3Support/Q3ButtonGroup" cannot open include file Qt3Support/Q3ButtonGroup
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 4 Posters 1.6k Views 2 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.
  • Z Offline
    Z Offline
    zosrothko
    wrote on last edited by
    #1

    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?

    JKSHJ 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,

      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
      0
      • Z Offline
        Z Offline
        zosrothko
        wrote on last edited by zosrothko
        #3

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

        So what did I miss?

        jsulmJ 1 Reply Last reply
        0
        • Z zosrothko

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

          So what did I miss?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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
          0
          • Z zosrothko

            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?

            JKSHJ Online
            JKSHJ Online
            JKSH
            Moderators
            wrote on last edited by
            #5

            @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
            0
            • Z Offline
              Z Offline
              zosrothko
              wrote on last edited by
              #6

              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
              0

              • Login

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