Gokhan Bektas

Cheatsheet For Myself

Compiling Qt Programs On Ubuntu (Desktop x84_64) For Raspberry Pi (ARM) (Cross-Compiling)

Setup Raspberry Pi Setup Raspberry Pi Setup Host PC (Ubuntu) Setup Host PC (Ubuntu) Offıcial Raspian image is installed Offıcial Raspian image is installed SSH is enabled SSH is enabled Network (Wired or Wireless) Is Set Network (Wired or Wireless) Is Set Prerequisities Prerequisities GIT is installed GIT is installed Python 2.7 is installed Python... » read more

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