I was reorganizing the .h files and removed some #includes and it worked after that. I think it was due to either a conflict or ordering of the includes.
I'm not hoping that Qt will change the way C++ works, I'm just unfamiliar with it. It's been years since I've done C++ programming and even when I was, I hardly used anything this advanced (never got into sockets, never got into data sharing). I don't claim to be a great programmer, in fact, I think I'm pretty basic, but I do have motivation and a willingness to learn. The way I learn is by doing. I can't read a book and then go work on some simple programs, because I'll get bored and not bother with it. I learn by giving myself a task and doing what it takes to complete it. Once it's completed, I then work on making it better and more efficient and try to use the more advanced features of the language than hacking something together as a band-aid.
I'm just trying to follow what already works in a different method. I know I have a lot to learn of C++/Qt and I know that doing things just to get them to work is a poor excuse for bad coding practices and also leads to bad habits and a lack of learning, but it's what I'm used to and I'm trying to overcome it. Old habits die hard, and all that jazz. I thank you guys for your help and wouldn't have been able to get this far without this forum and IRC channel having me look at things in a different light.
Yeah, that's one challenge that I was putting off and was going to be "I'll cross that bridge when I get to it." but I realize that it would probably involve a rewrite of everything done up to that point. I know I need to do things right from the beginning and I know that the project I am undertaking is probably not one for a beginner, especially one with rusty C++ skills and no Qt knowledge. I've rarely used libraries in the past and did things in a really, really poor manner, but I always managed to get things done (college classes). I'm purely self-taught and if something worked then I'd never question it. I've never developed anything for use outside of my own personal needs or for anything major.
I realize my bad habits and poor style is causing more work for the people I'm asking for help and also realize that it will, potentially, lead to unanswered questions or the standard 'RTFM'. I may be new here but I can already tell this is a community that is about sharing knowledge and attention to detail. I plan on reading the documentation some more and start an outline of what I want to do and any roadblocks I'll run into. I'm not a coding perfectionist, as you can probably tell, but I do have an unquenchable thirst for knowledge. I must know why things work and how they work. I also hate it when people think poorly of me, even if it is over an anonymous forum.
I hope I can fix my issues and make the community proud.
<end of Mea Culpa>





Reply With Quote

Bookmarks