Archive for the ‘Uncategorized’ Category

Ubuntu 12.04 resolution fix

June 4, 2013 Leave a comment

Example for a screen with maximum resolution of 1440×900:

# cvt 1440 900 # Run this before anything else
xrandr –newmode “1440×900″ 106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
xrandr –addmode VGA1 “1440×900″
xrandr –output VGA1 –mode “1440×900″

Categories: Uncategorized

installing qt on ubuntu 12.04 LTS

January 13, 2013 Leave a comment

Qt 4.7.4 + Ubuntu 12.04 LTS

Error: Basic XLib functionality test failed!
Solution: sudo apt-get install libxext-dev


Error: /usr/bin/ld: cannot find -lXrender
Solution: sudo apt-get install libxrender-dev


Categories: Uncategorized Tags: , ,

setting Qt stylesheets

November 28, 2012 Leave a comment

For a single widget:

QFile file(":/qss/default.qss");;
QString styleSheet = QLatin1String(file.readAll());

For whole app:

QApplication app( argc, argv );

// Load an application style
QFile styleFile( ":/style.qss" ); QFile::ReadOnly );

// Apply the loaded stylesheet
QString style( styleFile.readAll() );
app.setStyleSheet( style );


Categories: Uncategorized Tags:

post number one

October 15, 2011 1 comment

Ok this is the first post of this blog. I’ll be using “3xbla” mainly for personal reference.
“3xbla” should be pronounced as “three times bla”, or “bla bla bla”. Bla is “blah”.

Categories: Uncategorized