Find the answer to your Linux question:
Results 1 to 8 of 8
I know I was asking about bash a couple days ago, but I've been dabbling in C++ for a while now. Anyways, I'm getting to the part of my tutorial ...
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Location
    Alaska
    Posts
    55

    C++ gui?

    I know I was asking about bash a couple days ago, but I've been dabbling in C++ for a while now. Anyways, I'm getting to the part of my tutorial (from cplusplus.com) that uses classes, and I can sense some GUI fun coming up, but I don't know much about programing GUIs. I skimmed ahead in the tutorial, and I'm on the part about (de)constructors, with overloading, adding files, namespaces, and a few of the more complex ideas afterwards.

    More to the point, I was wondering if someone could help push me in the right direction on finding C++ GUI stuff. Also, I'd perfer to work straight from a text editor, but I'm not sure if that's possible or not. If not, think you could show me a program that works on Knoppix for it?

    Thanks in advance.
    Last edited by MisterDood; 05-20-2011 at 01:18 AM. Reason: used the word "anyways" about 5 times on accident.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Qt and/or GTK+
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Nov 2010
    Location
    Alaska
    Posts
    55
    Quote Originally Posted by Rubberman View Post
    Qt and/or GTK+
    Are those my only options and is there any way I can make GUIs from my already installed text editor? (KATE)

  4. #4
    Just Joined!
    Join Date
    May 2011
    Posts
    44
    Quote Originally Posted by Rubberman View Post
    Qt and/or GTK+
    Don't forget Wx Widgets. Though it is not as well documented as either Qt or GTK+, I like it. Also it is designed to be portable.

    Are those my only options and is there any way I can make GUIs from my already installed text editor?
    Qt, GTK+, Wx, are all frameworks from which you build your guis... You define the windows etc pragmatically. The way you asked your question makes me think you are looking for a GUI GUI builder... (Al la visual c++) but the kate reference confuses me.

    Can you maybe clarify what you mean?

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by three18ti View Post
    Don't forget Wx Widgets. Though it is not as well documented as either Qt or GTK+, I like it. Also it is designed to be portable.


    Qt, GTK+, Wx, are all frameworks from which you build your guis... You define the windows etc pragmatically. The way you asked your question makes me think you are looking for a GUI GUI builder... (Al la visual c++) but the kate reference confuses me.

    Can you maybe clarify what you mean?
    Wx is very capable as well. I used to use it back in the dark ages of computing, about 15 or so years ago...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #6
    Just Joined!
    Join Date
    May 2011
    Posts
    44
    Quote Originally Posted by Rubberman View Post
    Wx is very capable as well. I used to use it back in the dark ages of computing, about 15 or so years ago...
    Haha, duly noted.
    I do believe that Tcl/Tk and GTK+ are both older than Wx. (Well, I know for a fact that Tcl/Tk is older than Wx but am unsure about GTK+... I guess I could google... but what's the fun in speculating

    FYI, one of my favorite editors (PADRE for Perl) is written in with WxWidgets.

  7. #7
    Just Joined!
    Join Date
    Nov 2010
    Location
    Alaska
    Posts
    55
    Quote Originally Posted by three18ti View Post
    Can you maybe clarify what you mean?
    Sorry for the late reply, I've been busy finishing my Junior year of highschool with 3 A's and 3 B's

    Anyways, I want to know if I can make a GUI in C++ straight from a text editor (KATE is default), and not using another GUI.

  8. #8
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by MisterDood View Post
    Sorry for the late reply, I've been busy finishing my Junior year of highschool with 3 A's and 3 B's

    Anyways, I want to know if I can make a GUI in C++ straight from a text editor (KATE is default), and not using another GUI.
    2 B's eh? My folks would have had me in summer school for sure if I got more that one B in a semester! Ah well, that's what happens when you dad is a physicist!

    The answer to your question is "yes". Tool kits like Wx, Qt, GTK, et al usually let you program directly to their API's and/or class libraries. Most of them have GUI tools to layout your windows and forms, generating the basic code needed to implement them, which you can then modify, enable callbacks, etc. However, that is more as a convenience and speed-up tool. I find that such tools help me to understand some of the subtleties of the tool kit by examining the generated code.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...