maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Say NO! to Qt-based Maemo! (https://talk.maemo.org/showthread.php?t=50557)

w00t 2010-04-20 16:57

Re: Say NO! to Qt-based Maemo!
 
Quote:

Originally Posted by javispedro (Post 619656)
Aha, a holy war!

Btw, which side do those who like C++ but dislike Qt fall on?

In the middle.

(i.e. you get hated by everyone)

Texrat 2010-04-20 16:58

Re: Say NO! to Qt-based Maemo!
 
My language is better than your language.

My IDE is better than your IDE.

My release license is better than your release license.

w00t 2010-04-20 17:01

Re: Say NO! to Qt-based Maemo!
 
Quote:

Originally Posted by Texrat (Post 619673)
My language is better than your language.

My IDE is better than your IDE.

My release license is better than your release license.

My laptop is better than your laptop.

My black editor colour scheme is better than your white editor color scheme.

My mom is better than your mom.

Texrat 2010-04-20 17:01

Re: Say NO! to Qt-based Maemo!
 
Quote:

Originally Posted by w00t (Post 619675)
My laptop is better than your laptop.

My black editor colour scheme is better than your white editor color scheme.

My mom is better than your mom.

Maybe, but my code is prettier!

uvatbc 2010-04-20 17:05

Re: Say NO! to Qt-based Maemo!
 
Quote:

Originally Posted by Texrat (Post 619678)
Maybe, but my code is prettier!

... than his mom?
Thats just low(er case).

casper27 2010-04-20 17:06

Re: Say NO! to Qt-based Maemo!
 
Quote:

Originally Posted by Texrat (Post 619678)
Maybe, but my code is prettier!

But my code is longer and thicker :p

attila77 2010-04-20 17:09

Re: Say NO! to Qt-based Maemo!
 
It's not about how big it is, but how you use it.

Wait, that actually makes sense in this context. Scratch it.

uvatbc 2010-04-20 17:12

Re: Say NO! to Qt-based Maemo!
 
Lets try to keep it on topic people - This is a holy flame war!
GTK is better because its first letter appears earlier in the alphabet.
QT is better because it has lesser characters and actually can be pronounced to form a known English word.

nicola.mfb 2010-04-20 17:13

Re: Say NO! to Qt-based Maemo!
 
Just for those that thinks qt is not easy, this is little tool that shows how to create a button that when clicked emit a signal on the session bus.

mywidget.h
Code:

#include <QWidget>
#include <QPushButton>
#include <QVBoxLayout>
#include <QDBusConnection>

class MyWidget : public QWidget
{
  Q_OBJECT
  public:
  MyWidget() : QWidget() {
    QDBusConnection::sessionBus().registerObject("/",this,QDBusConnection::ExportAllContents);
    new QVBoxLayout(this);
    QPushButton *b = new QPushButton("emit signal",this);
    layout()->addWidget(b);
    connect(b,SIGNAL(clicked()),SIGNAL(clicked()));
    show();
  }
  signals:
    void clicked();
};

main.cpp
Code:

#include <QApplication>
#include "mywidget.h"

int main(int argc, char **argv)
{
  QApplication app(argc, argv);
  new MyWidget();
  return app.exec();
}

gui_dbus.pro
Code:

SOURCES += main.cpp
QT += gui dbus
HEADERS += mywidget.h

That's was done in 2 minutes using vi, 20 seconds of that was spent to launch "assistant", type in the search bar "registerObject", click on RegisterOptions and retrieve QDBusConnection::ExportAllContents define that I always do not remember.

Further some seconds to build and launch:

qmake; make; ./gui_dbus

tested with dbus-monitor:

signal sender=:1.223 -> dest=(null destination) serial=6 path=/; interface=local.MyWidget; member=clicked

Now convince me that is easy and fast to use gtk, dbus lib, autoscan, autoreconf, configure, pkgconfig, and so on....

Khertan 2010-04-20 17:13

Re: Say NO! to Qt-based Maemo!
 
Quote:

Hi Khertan,
may you motivate?
Yep ... i ... just a matter of preferences, i didn't like how qtdesigner works and how qwidget are made, i found that many widget in the qt frameworks are really too more complicated that what they should be. Also because it s tends to do some things automatically for you, but sometime you didn't want that, but you can't prevent it without using many turn around.

Quote:

Both are supported under Nokia.
Qt is ... gtk noone know.


All times are GMT. The time now is 12:37.

vBulletin® Version 3.8.8