How to completely put a qt3 library in qt4?

I took a few steps for this. I ran qt3to4.exe in files with compilation errors and received many conversion steps, however now I get this error: 1>c:\qt\4.7.0\src\qt3support\widgets\q3toolbar.h(64) : error C2039: 'ToolBarDock' : is not a member of 'Qt' and 55 other similar errors. This bothers me because it is in qt's own q3support library. I also saw on the QT help page (http://doc.trolltech.com/4.2/qt-qt3.html) that ToolBarDock is deprecated and Qt :: Dock should be used instead. I did not find much help with this. I use the library inside Visual Studio 2008. Are any of the QT / visual studio experts?

If this helps, here is the code that it does not execute in q3toolbar.h:

Q3ToolBar(const QString &label,
          Q3MainWindow *, Qt::ToolBarDock = Qt::DockTop,
          bool newLine = false, const char* name=0);
+3
source share
3 answers

qt34qt4 . , .., . find-replace, qt\tools\porting\q3porting.xml , . qt3to4 , Qt-. . , Qt , (http://doc.qt.nokia.com/4.5/porting4.html) . , qt3to4 , . Fortunate qt3to4 , , .

UI, -wrap uic3.

PS: : () 600TLOCs + 150 2,5 , 150 TLOC 2 ,

+2

V++. QT3_SUPPORT .

+2

. , "qt3" . , , . , Qt, , qt3. , .

http://www.qtcentre.org/wiki/index.php?title=Qt4_with_Visual_Studio

http://lists.trolltech.com/qt-interest/2006-11/thread00177-0.html

If anyone encounters this and overcomes this problem, submit your solution! Thank.

+1
source

Source: https://habr.com/ru/post/1769080/


All Articles