Slopjong A geek discovering the World, Tech & Science
  • Latest Posts
  • Programming
  • Mac
  • Linux
  • WordPress
  • Hardware
  • Howtos
  • Nerd Trash

C++ Archive

  • In Qt the title of the main window can be set from everywhere and thankfully to the QApplication class we gain access to all created widgets by using the method [...] 0

    Qt: set the main window title from everywhere

    Posted on January 5, 2012
    In Qt the title of the main window can be set from everywhere and thankfully to the QApplication class we gain access to all created widgets by using the method [...]

    Continue Reading

  • In the following code sample a singleton is implemented with a static instance getter which can be called in any other class.


class MyClass{

public:

    static MyClass *instance(){
  [...] 0

    Qt: error message telling the copy constructor is private

    Posted on December 30, 2011
    In the following code sample a singleton is implemented with a static instance getter which can be called in any other class. class MyClass{ public: static MyClass *instance(){ [...]

    Continue Reading

  • A constant QString can be achieved by defining the macro


#CONSTSTRING "-_-"


and by creating a temporary QString instance in each place the constant is needed e.g. for a window title.


...
window.setWindowTitle(QString(CONSTSTRING));
...


A lot [...] 0

    Qt: QString constant in a class

    Posted on December 24, 2011
    A constant QString can be achieved by defining the macro #CONSTSTRING "-_-" and by creating a temporary QString instance in each place the constant is needed e.g. for a window title. ... window.setWindowTitle(QString(CONSTSTRING)); ... A lot [...]

    Continue Reading

  • I tried to compile a code looking like this:


#ifndef CONTROLLER_H_
#define CONTROLLER_H_

#include

class AbstractClass
{
public:
    virtual ~AbstractClass() {}
    virtual void update() = 0;
};

class Controller :
   [...] 11

    ‘staticMetaObject’ is not a member

    Posted on October 7, 2008
    I tried to compile a code looking like this: #ifndef CONTROLLER_H_ #define CONTROLLER_H_ #include class AbstractClass { public: virtual ~AbstractClass() {} virtual void update() = 0; }; class Controller : [...]

    Continue Reading

  • I was experimenting with virtual and pure virtual methods in C++. I introduced an inline implementation for a pure method and then I couldn’t compile my code anymore.
I turned into [...] 0

    error: stray ‘\160′ in program

    Posted on October 3, 2008
    I was experimenting with virtual and pure virtual methods in C++. I introduced an inline implementation for a pure method and then I couldn’t compile my code anymore. I turned into [...]

    Continue Reading

Next Page »

RSS Feed Twitter YouTube

Email Subscription

Don't miss any new posts

Search

You need to get something done?
LeJob Tell me!
  • Latest
  • Random
  • Comments
  • Tags
  • VirtualBox: Make your virtual machine accessible from your host system but not from the local network
    Posted 6 days ago
  • The syn2cat hackerspace needs more space
    Posted 1 week ago
  • Work locally on a remote project with any editor in combination with SSHFS
    Posted 1 week ago
  • sshfs: Transport endpoint is not connected
    Posted 3 weeks ago
  • Extremely high disk activity with Windows 8 and how to fix it?
    Posted 3 weeks ago
  • Display PHP code in a html code section
    Posted on April 9, 2013
  • Lightbox2: Limit the max image size
    Posted on April 2, 2013
  • Migrate from a physical system to a virtual machine (VM)
    Posted on March 26, 2013
  • How to find the profile picture made by Adium?
    Posted on October 11, 2009
  • The Animals House of the Rising Sun Old School Computer Remix
    Posted on June 29, 2012
  • The syn2cat hackerspace needs more space
    Posted 1 week ago
  • Facebook Lite
    Posted on February 13, 2010
  • How does channel coding work using hamming codes?
    Posted on June 20, 2011
  • SMBus base address unitialized
    Posted on March 23, 2013
  • svn2web
    Posted on March 2, 2010
  • Painting while working
    Posted on March 24, 2010
  • Gregory Mace
    How to install the latest node.js on Ubuntu?
  • slopjong
    Let SVN accept revision propchanges
  • william
    Let SVN accept revision propchanges
  • contenidoneto
    Houston, I can’t write to file
  • slopjong
    How to install the latest node.js on Ubuntu?
  • Justin
    How to install the latest node.js on Ubuntu?
  • slopjong
    Extremely high disk activity with Windows 8 and how to fix it?
  • slopjong
    Arch Linux: failed to load module `zsh/computil’
Add-on Arch Linux bash C++ Cake commands conversion cURL eclipse Firefox flash Google hacker hardware Java javascript jQuery Linux Mac matlab OpenWrt party php PI PI Day plugin Programming Qt router Scripting shell Software Subversion terminal Tutorial twitter video VirtualBox Web Web server Windows Wordpress wordpress plugin youtube ZSH

Twitter Feed (@slopjong)

  • @macfreak109 :-)4 days ago
  • @macfreak109 looks good. With blinkenlights even better ;-)5 days ago
  • @JanGuth @Piratepartei @svnee @trollchen @virii Dat soen ausgerechnet déi, déi a Wierklechkeet roud sin. http://t.co/HweCBorVLN9 days ago
  • This made my day. Internet user says: "Ok, i just tried to install python on my mac. It still does not work. Going back to use powerpoint…"10 days ago
  • And if your transport endpoint is not connected check this article: http://t.co/vkxbySNgAJ12 days ago
  • █▀▀▄  ▄▀▀▄  ▄▀▀▄  █ ▄▀       ▀█▀  ▄▀▀▄       ▀█▀  ▄▀▀▄  █▀▀▄
    █▀▀▄  █▄▄█  █     █▀          █   █  █        █   █  █  █▀▀
    █▄▄▀  █  █  ▀▄▄▀  █ ▀▄        █   ▀▄▄▀        █   ▀▄▄▀  █
    
  • Impress
  • —
  • Contact
  • —
  • About
  • All Rights Reserved
  • —
  • © 2012 slopjong.de