Gokhan Bektas

Cheatsheet For Myself

Applying A Stylesheet To All Controls In An Application – QT

Add a qss file as resource.   #include "mainwindow.h" #include <QApplication> #include <QFile> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; // Load an application style QFile styleFile(":SpyBot/Spybot.qss"); styleFile.open( QFile::ReadOnly ); // Apply the loaded stylesheet QString style( styleFile.readAll() ); a.setStyleSheet( style ); }

Installing Qt Designer On Ubuntu

sudo apt-get install qttools5-dev-tools sudo apt-get install qtbase5-examples qtbase5-doc-html       This could happen for some projects that are not configured for cross compilıng: “Cannot run: No command given.” .pro file needs target path and install command. add proper targets and re-run qmake. # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android:... » read more