Skip to content

Implementing AntSnes with Qt part 1: Creating Views

This is first post on Qt App development series on Symbian. In this series I will describe how I made a new user interface with Qt for AntSnes. The same Ui will be later be used with gpsp and psx4all.
The mobile UI should be pretty much different, than the desktop UI, so there are some challenges ahed. I’m still sure that the UI will be a lot cooler than the old AntSnes UI with Symbian Avkon layer.
The UI will made with two separate views. The emulation view, and the settings view. The are both inherited from the QMainWidget, and they both are controlled by viewcontroller-class.  The ViewController is only responsible to call hide() and show() functions to widgets, so there’s allways the correct view shown on the screen.
Here’s an example how the app is started with the viewcontroller class.

int main(int argc, char *argv[])
    QApplication a(argc, argv);
    ViewController* vc = new ViewController();
    return a.exec();

Let’s create two views at viewcontroller’s constructor

    emuView = new AntSnesQt();
    settingsView = new EmuSettings();

An example how the ViewController is changing the current view:


I decided to make the app to support only landscape orientation for 5th edition devices (for obious reasons),  so I need to forse the orientaiton to the landscape mode. Here’s a tip how it’s done on Symbian. This is first Symbian dependent part of my application. There will be few more Symbian specific implementations, but my goal is to keep the application as close to the vanilla Qt, as possible. I want to keep the door open to the Maemo platform as well 🙂


  1. iRaptor says:

    Summeli, when we will see a beta-version or something?

    • Summeli says:

      It depends how busy I am with other stuff. I already have the emulator running and rendering stuff. It’s so much easier and faster to code with Qt.
      It’s really going to be a lot better than antsnes 🙂

  2. danny 92 says:

    good work summeli !! we waiting you 😉

  3. danny 92 says:

    can we have a video?

  4. thank you so much for your work.. i look foward to this on the i8910

  5. Jordane BR says:

    thank you so much for your work!!!!!!!!!! Nice!!!!!!!!!

Leave a Reply