UIC: #include "Qt3Support/Q3ButtonGroup" cannot open include file Qt3Support/Q3ButtonGroup
-
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?
-
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.
-
Fine but this code is generated by UIC 5.7.0.. look at the head comment...
So what did I miss?
-
@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.
-
@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?
-
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.