Thread: QT or others for the beginning linux programmer

  1. #1
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297

    QT or others for the beginning linux programmer

    I'm an experienced Win32 guy and I know a tad bit about other windows interfaces such as MFC. I want to learn linux programming. On opening KDevelop in KDE I created and compiled the wizard generated MDI application. It looks great to me although I had to modify the code slightly to get it to run. It seems that the friend classes it declared left out the keyword "class". Strange but I'm not really concerned about the wizard right now. What is of interest is the library it used. QT. Obviously this is a C++ specific thing and is probably not the lowest level API. So, here's my questions:

    1. Is QT like MFC in that it wraps the API?
    2. What are the API's for linux/KDE/Gnome/X etc..?
    3. I'm used to VC++ commands such as "Go to definition" and "Go to reference", does something similar exist in KDevelop? I figured out global searches already, but that's not good enough really. I wanted to see the QT classes but couldn't figure out how to get to them.

    Thanks guys.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    1. Yes, QT/GTK/Athena/Motif use Xlib to draw their widgets for you.

    2. Linux is an OS, it does not havea GUI API, KDE uses QT + it's own libs, Gnome uses GTK/gtkmm. X is a loaded letter. Xlib is the lowest API you can use.

    3. Never used kdevelop. However cscope can be used to find definitions/declarations.

  3. #3
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    XLib then? I think I'd rather work at that level. I'm accustomed to working with Win32 API and I make my own wrappers. I am looking to write portable code through my wrapper classes and implement my existing wrappers for XLib. Can I work strictly in XLib and standard C++ to pretty much accomplish anything on there?

    As far as Linux being an OS, I suppose the OS line has been obscured by microsoft. I'm used to referring to the various DLLs as part of the windows OS. Perhaps that's not technically correct but it is what I meant..

    What about this "Anjuta" or whatever it is? Is that a better IDE?
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  4. #4
    Geek. Cobras2's Avatar
    Join Date
    Mar 2002
    Location
    near Westlock, and hour north of Edmonton, Alberta, Canada
    Posts
    113
    www.anjuta.org
    it's actually mainly designed for use with GNOME rather than KDE, but is fairly similar to KDevelop - i'd suggest trying it and seeing for yourself if you like it any better/worse
    James G. Flewelling
    Rgistered Linux User #327359
    Athabasca University Student (BSc. CIS)

    http://catb.org/~esr/faqs/smart-questions.html
    http://catb.org/jargon/

    http://www.ebb.org/ungeek
    ---GEEK CODE---
    Version: 3.12
    GCS/IT/M d- s+:++ a-->->>+>++>+++>? C++++>$ UL++>++++$ P++>++++ L++>++++$
    E W++ N o? K? w++(--)>--- O? M? V? PS--(---) PE Y+ PGP? t 5? !X R(*)>++
    tv-->! b++(+++)>++++ DI? D+++(---)>++++$ G e*>++$ h++>*$ r!>+++ y?
    ----/GEEK CODE----
    upd: 2005-02-11

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux for GNU/Linux is not correct?
    By password636 in forum Linux Programming
    Replies: 8
    Last Post: 03-31-2009, 08:30 PM
  2. beginning C Programmer - Need Help Compiling Program
    By fisguts in forum C Programming
    Replies: 2
    Last Post: 07-30-2008, 02:14 PM
  3. Beginning programmer
    By L_burna225 in forum C++ Programming
    Replies: 3
    Last Post: 04-22-2003, 04:55 PM
  4. beginning programmer needs help with a structures program!
    By psychadelic in forum C Programming
    Replies: 1
    Last Post: 12-03-2002, 10:27 PM
  5. Beginning C programmer...
    By Edgar in forum C Programming
    Replies: 4
    Last Post: 09-24-2001, 12:52 AM