Qt on Linux problem
-
Hi,
I'm trying to build a qt5 app on linux (mint 17.2 cinnamon) and get these compile errors:
no member named 'setTabBarAutoHide' in 'TabWidget'
no member named 'setPlaceholderText' in 'QPlainTextEdit'This occurs in the auto-generated ui_mainwindow.h file. I've deleted the build dir, cleaned all, ran qmake again (and again...) etc and still no luck.
The Qt kit selected is apparently 5.2.1, and it builds fine on the Mac and Windows.
Compiler output looks like this:
clang++ -c -pipe -O2 -std=c++11 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-clang -I../ted2 -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I. -I. -o mainwindow.o ../ted2/mainwindow.cpp In file included from ../ted2/mainwindow.cpp:7: ./ui_mainwindow.h:140:20: error: no member named 'setTabBarAutoHide' in 'TabWidget' tabWidget->setTabBarAutoHide(false); ~~~~~~~~~ ^ ./ui_mainwindow.h:306:26: error: no member named 'setPlaceholderText' in 'QPlainTextEdit' consoleTextEdit->setPlaceholderText(QApplication::translate("MainWindow", "Building...", 0));
Any ideas? I'm on the verge reinstalling linux from scratch, but I'd rather not!
Bye,
Mark -
@marksibly said:
setTabBarAutoHide
"This property was introduced in Qt 5.4"
So what version are you using on mac and windows?
So before killing mint, try to update qt ?
-
So what version are you using on mac and windows?
Qt5.5, and the setTabBarAutoHide are present in ui_mainwindow.h on mac/pc too.
So before killing mint, try to update qt ?
I've done a 'sudo apt-get upgrade' - is there more I can try?
The Qt version I installed is from the qt download center, BUT I did try and apt-get install Qt before that which I guess may have thrown things.
-
Clean install did the trick...
-
Super.
Of Qt or did mint die ? -
Of Qt or did mint die ?
Reinstalled mint from scratch, then ran the qt online installer, then a bunch of apt-gets for missing stuff.
I love qt, but it can be a bear to install/maintain!
-
@marksibly
yeah its a complex system.
I run ubuntu in a virtual machine so I can always snapshot back to a known point when
i fux it up ;)