Archive

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:

#!/bin/bash
# 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″

Advertisements
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

Source

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

Source

Categories: Uncategorized Tags: , ,

setting Qt stylesheets

November 28, 2012 Leave a comment

For a single widget:

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

For whole app:

QApplication app( argc, argv );

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

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

Source

Categories: Uncategorized Tags:

post number one

October 15, 2011 Leave a 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