You are not logged in.

#1 2011-02-17 08:21:36

richardm198030
Member
Registered: 2011-02-10
Posts: 81

GUI App Programming using C++

This is no issue, just a question..  I looked all over the net, I can't seem to find any answers..  Can you write your own toolkits using plain C++, using Gcc, or G++ without using another TK, such as GTK, or Qt??  Or GAMBAS, I figured it would be an interesting thing to look into. I've been studying some Qt, and GTK, not sure which I like better, I've done more studying in Qt than GTK, but I figured I'd try to step it up some and write a GUI from scratch, and not use Qt/GTK, anybody have any answers for me??  smile.

Offline

#2 2011-02-17 09:04:12

yngwin
Member
Registered: 2009-05-08
Posts: 67

Re: GUI App Programming using C++

Of course you can, but why would you?

Offline

#3 2011-02-17 09:56:30

richardm198030
Member
Registered: 2011-02-10
Posts: 81

Re: GUI App Programming using C++

yngwin wrote:

Of course you can, but why would you?

LOL, that doesn't answer the question..  I guess I'll have to answer "Your" question with a question..  Because, I'd rather do it all by myself, than have to rely on somebody elses work!!  I've been watching some c++ tuts on Youtube, but so far it's only been console, that's why I'm trying to figure out what I can do to make GUI Apps without using other libs, writing my own libs, and sources. Thanks !

Offline

#4 2011-02-17 10:18:04

Zeist
Arch Linux f@h Team Member
Registered: 2008-07-04
Posts: 532

Re: GUI App Programming using C++

richardm198030 wrote:
yngwin wrote:

Of course you can, but why would you?

LOL, that doesn't answer the question..  I guess I'll have to answer "Your" question with a question..  Because, I'd rather do it all by myself, than have to rely on somebody elses work!!  I've been watching some c++ tuts on Youtube, but so far it's only been console, that's why I'm trying to figure out what I can do to make GUI Apps without using other libs, writing my own libs, and sources. Thanks !

You are at some point most likely going to use someone else's libraries somewhere for something unless you plan to write your own alternative to X.

It is just a question of at what level you want to rely on other libraries.


I haven't lost my mind; I have a tape back-up somewhere.
Twitter

Offline

#5 2011-02-17 10:32:10

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: GUI App Programming using C++

You can't get your drives to mount or get Udisks working, but you want to write your own GUI toolkit because you "rather do it all by myself, than have to rely on somebody elses work!!"? Wow, that's pretty amazing...


ᶘ ᵒᴥᵒᶅ

Offline

#6 2011-02-17 10:41:14

richardm198030
Member
Registered: 2011-02-10
Posts: 81

Re: GUI App Programming using C++

Zeist wrote:
richardm198030 wrote:
yngwin wrote:

Of course you can, but why would you?

LOL, that doesn't answer the question..  I guess I'll have to answer "Your" question with a question..  Because, I'd rather do it all by myself, than have to rely on somebody elses work!!  I've been watching some c++ tuts on Youtube, but so far it's only been console, that's why I'm trying to figure out what I can do to make GUI Apps without using other libs, writing my own libs, and sources. Thanks !

You are at some point most likely going to use someone else's libraries somewhere for something unless you plan to write your own alternative to X.

It is just a question of at what level you want to rely on other libraries.

I want to write my own libraries and files, not relying on others, such as GTK/Qt/Python/Perl, from ground up, using C++, or even C, if at all possible.

Offline

#7 2011-02-17 10:44:48

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: GUI App Programming using C++

richardm198030 wrote:

I want to write my own libraries and files, not relying on others, such as GTK/Qt/Python/Perl, from ground up, using C++, or even C, if at all possible.

GTK and QT themselves are written in C and C++, so yes it's certainly possible.


ᶘ ᵒᴥᵒᶅ

Offline

#8 2011-02-17 10:49:44

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

Re: GUI App Programming using C++

richardm198030 wrote:
Zeist wrote:
richardm198030 wrote:

LOL, that doesn't answer the question..  I guess I'll have to answer "Your" question with a question..  Because, I'd rather do it all by myself, than have to rely on somebody elses work!!  I've been watching some c++ tuts on Youtube, but so far it's only been console, that's why I'm trying to figure out what I can do to make GUI Apps without using other libs, writing my own libs, and sources. Thanks !

You are at some point most likely going to use someone else's libraries somewhere for something unless you plan to write your own alternative to X.

It is just a question of at what level you want to rely on other libraries.

I want to write my own libraries and files, not relying on others, such as GTK/Qt/Python/Perl, from ground up, using C++, or even C, if at all possible.

Yep,it is possible,but if you want to do it alone,one life is too short for it. smile

Offline

#9 2011-02-17 11:06:28

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: GUI App Programming using C++

Well, it is a formidable task. And I confirm to have been tempted to do so as well once or twice in my programming life. Somthing like a FLTK attempt (when FLTK was young). I also had my own ideas about how window manager, let alone a desktop environment should be constructed.

It is hubris as long as you strive to fulfil the task alone. But even then, if you really want, try. This means in first place - learn. Look for a programming language more suitable than C/C++. Experiment and try to understand all its inner beings. Thoroughly learn all the system interfaces and the like you need to accomplish the task. And be sure you really, really know what you want to do.

It is not impossible. But you may well put your lifetime at it. And do not try to do it all alone. You will most probably fail.


To know or not to know ...
... the questions remain forever.

Offline

#10 2011-02-17 11:06:36

richardm198030
Member
Registered: 2011-02-10
Posts: 81

Re: GUI App Programming using C++

na12 wrote:
richardm198030 wrote:
Zeist wrote:

You are at some point most likely going to use someone else's libraries somewhere for something unless you plan to write your own alternative to X.

It is just a question of at what level you want to rely on other libraries.

I want to write my own libraries and files, not relying on others, such as GTK/Qt/Python/Perl, from ground up, using C++, or even C, if at all possible.

Yep,it is possible,but if you want to do it alone,one life is too short for it. smile

Ok, any good resources to look at ??  And yes, I do want to do it alone..  I'll die writing it, big_smile.

Offline

#11 2011-02-17 11:16:11

richardm198030
Member
Registered: 2011-02-10
Posts: 81

Re: GUI App Programming using C++

bernarcher wrote:

Well, it is a formidable task. And I confirm to have been tempted to do so as well once or twice in my programming life. Somthing like a FLTK attempt (when FLTK was young). I also had my own ideas about how window manager, let alone a desktop environment should be constructed.

It is hubris as long as you strive to fulfil the task alone. But even then, if you really want, try. This means in first place - learn. Look for a programming language more suitable than C/C++. Experiment and try to understand all its inner beings. Thoroughly learn all the system interfaces and the like you need to accomplish the task. And be sure you really, really know what you want to do.

It is not impossible. But you may well put your lifetime at it. And do not try to do it all alone. You will most probably fail.

Ok, judging by what you people have been saying, I'm better off just sticking with QT then?  I'm liking Qt, just can't seem to get the LoadFile(){ return;} stuff to work properly.  I'll figure it out eventually, smile.  I wanted to make my own custom SaveFile() and LoadFile() Functions, but it appears to be a long tedious task.. Any answers for that?

Offline

#12 2011-02-17 11:42:58

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: GUI App Programming using C++

No offense, but I think you're being completely unrealistic. Given your paltry efforts to solve basic configuration tasks elsewhere in this forum, I would recommend you start with a much smaller simpler project.

Offline

#13 2011-02-17 12:25:17

richardm198030
Member
Registered: 2011-02-10
Posts: 81

Re: GUI App Programming using C++

tomk wrote:

No offense, but I think you're being completely unrealistic. Given your paltry efforts to solve basic configuration tasks elsewhere in this forum, I would recommend you start with a much smaller simpler project.

Umm, I"m using Qt fine, I understand how it works..  My first project was a success, and it saves opens, I tried something different, but it didn't work.. After I got it fully working, I deleted it to start fresh..  Now I'm into learning Qt's QTabWidget, that I'm struggling with, and Qt Docs doesn't have a good solution, I'm just going to go with my own personal ways of QTabWidget, I can get it to compile fine, I'm just having a hard time with ti's Tab Functions, that's all....

Offline

Board footer

Powered by FluxBB