Announcement

Collapse
No announcement yet.

Wireshark Is Being Ported From GTK+ To Qt

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • TheBlackCat
    replied
    Originally posted by Silverthorn View Post
    I tried to look through the official page for some simple example to get me started but I just ended up on the starting page again pointing me towards Qt creator. A bit frustrating after a while. You probably get a better experience once you get to know the page better.
    I am not at all familiar with the website, in fact I have never used it before. I just did:
    http://qt-project.org/ > Documentation > Examples and Tutorials. On the right side there was a pretty clear "select version" if that is what you want.

    Originally posted by Silverthorn View Post
    This page (plus the reference manual) was enough to get me started with gtk:
    https://developer.gnome.org/gtk3/sta...g-started.html
    So in other words you had to go to a completely separate web page from the official gtk page to find the resources you need. How would someone visiting the gtk website for the first time ever guess that they need to go to a completely different website to figure out how to use it?

    Leave a comment:


  • zxy_thf
    replied
    For me the question is simple: Want portability? Try Qt. Want your program best for Linux? Use Gtk.
    Originally posted by LightBit View Post
    For those who prefer pure C there is also Tk.
    The value of pure C comes from its excellent ABI compatibility.
    You may use any modern C compiler to link a C library, but you have to build your own C++ library if you were using a different C++ compiler the one built the C++ library.

    I once tried to link my VS2008 program to a VS2005 C++ lib (it's also my own one but I was too lazy to rebuild it). I met many strange problems in debugging.
    After that, I would build Qt 4.x by myself as Qt's official buildings only (at that time) had VS 2008 version, while I was using VC 2010 Express.
    Last edited by zxy_thf; 17 October 2013, 06:18 PM.

    Leave a comment:


  • Krejzi
    replied
    Originally posted by TheBlackCat View Post
    Yes, I am sure if you search other websites you can also find simple Qt tutorials. The question was about the official homepage.
    Is this official enough?

    GTK is a free and open-source cross-platform widget toolkit for creating graphical user interfaces.


    Clicking on "GTK stable" will take you to the very same page I linked to in previous post.

    Also, if you look closely, you can find hyperlink "Documentation" that links to the very same page here

    GTK is a free and open-source cross-platform widget toolkit for creating graphical user interfaces.

    Leave a comment:


  • Delgarde
    replied
    Originally posted by TheBlackCat View Post
    Yes, I am sure if you search other websites you can also find simple Qt tutorials. The question was about the official homepage.
    That *is* the official Gtk documentation. And if by "official homepage" you mean gtk.org, then you just go the the Documentation tab, and follow any of the links at the top, which take you to the developer.gnome.org pages that Krejzi referred to.

    Leave a comment:


  • TheBlackCat
    replied
    Originally posted by Krejzi View Post
    You obviously didn't look very hard:

    https://developer.gnome.org/gtk3/stable/
    Yes, I am sure if you search other websites you can also find simple Qt tutorials. The question was about the official homepage.

    Leave a comment:


  • Krejzi
    replied
    Originally posted by TheBlackCat View Post
    You obviously didn't look very hard:


    To be fair, this is for Qt 4.8. On the other hand, there are no tutorials at all for gtk3.
    You obviously didn't look very hard:

    Leave a comment:


  • xeekei
    replied
    I use GTK environments (Cinnamon, formelly Xfce), because I think Qt apps look better in a GTK environment than GTK apps do in a Qt environment.

    Leave a comment:


  • Guest
    Guest replied
    Originally posted by droidhacker View Post
    Your brain must be plugged in backwards.
    Really? Let's see:



    if you work in KDE 4 desktop environment then a GTK-Qt engine is available, which updates GTK+ configuration files automatically so that GTK+ appearance is similar to the Qt one
    And what this gtk-qt engine is?



    it uses Qt to draw the widget into an offscreen buffer, then draws a copy of the contents of this buffer onscreen.
    It seems gtk doesn't look like shit in KDE, just because KDE developers were so nice and made gtk-qt engine which uses Qt! What about Qt in different environments now:

    if you work in other desktop environments, you can choose the QGtkStyle engine (built in Qt), which forces Qt apps to use your GTK+ 2.x theme.
    Last edited by Guest; 17 October 2013, 05:08 PM.

    Leave a comment:


  • LightBit
    replied
    For those who prefer pure C there is also Tk.

    Leave a comment:


  • Ancurio
    replied
    Originally posted by Silverthorn View Post
    "do you really want to throw all that extra complexity at a newbie?" Gtk manges just fine without said complexity so why is it not possible for Qt?
    .
    Code:
    mkdir qt-example && cd qt-example/
    cat > main.cpp
    #include <QTextStream>
    int main(int, char**)
    {
    	QTextStream out(stdout);
    	out << "Hello World\n";
    	return 0;
    }
    
    qmake -project
    qmake
    make
    Or, if you absolutely insist on not using qmake:
    Code:
    g++ main.cpp -o hello `pkg-config --libs --cflags QtCore`

    Leave a comment:

Working...
X