Magyarok a marson - statusreport 

[ hozzászólás ] ( 1 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 247 )
Lattice ISPVM with parallel port cable under Ubuntu 11.04 

The trick is simple, but not obvious:


echo "disallow method ppdev" > /etc/ieee1284.conf

[ hozzászólás ] ( 1 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 450 )
Freescale CodeWarrior USB TAP disassembled 

Let's get started with two pictures of the Freescale Codewarrior USB-TAP's PCB:




Read more...
[ hozzászólás ] ( 100 megtekintés ) [ 0 trackbackek ] permalink ( 2.8 / 203 )
Buildroot error - fakeroot: preload library not found, aborting. 

Never ever move your buildroot directory because it does not like it.
[ hozzászólás ] ( 27 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 229 )
A few things what I setup when I create a new Qt Widget project 

1.Add the folowing to pro file:


OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
RCC_DIR=build

DESTDIR = bin

and the binaries won't mess up your sorce code directory

2. Make the following modifications in the main.cpp:


#include <QtGui/QApplication>
#include <QtCore/QTextCodec>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8";));
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8";));

QCoreApplication::setOrganizationName("MM";);
QCoreApplication::setApplicationName("Mikrotik data miner";);
QCoreApplication::setApplicationVersion("0.1";);

QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}


Why?
The QTextCodec trick is neccessary because the sourcecode is UTF-8 encoded, and if I want to put a string from the code to somewhere I would need to use QString::fromUtf8(). If you do not believe check a generated ui_*.h file.

Always give set the name to your application and the application domain. This is useful when you are using QSettings, you do not need to give constructor arguments when creating a settings object. The settings object constructed in this way always use a separate data area specified by the platform. (.config/QCodeApplication::applicationDomain/QCoreApplication:applicationName.ini on Linux and registry on Windows)


[ hozzászólás ] ( 15 megtekintés ) [ 0 trackbackek ] permalink ( 2.9 / 227 )

<< <Előző | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | Következő> >>

 
számláló