Designer + OpenFrameworks (Need help setting up)
-
Hey there,
I badly need a hand getting set up.
What I'm trying to do is to setup OpenFrameworks to work with Qt.
I installed the templates and all the necessary stuff and I'm able to create a new 'OpenFrameworks' project from Qt that loads up and everything.
The problem is I want to use the Designer to make the GUI and set the slots and signals, and I have no idea on how to do it.
If I add a new <Form Class> to the project, it fails to compile as it's not able to find any of the Q* stuff, like QMainWindow, so I really don't even know where to start.
Also, the <Form Class> generates a .cpp on top of the .h and .ui files, which seems odd (never saw that before).If anyone has an idea of how I could achieve that, I'd be super grateful.
I can use MacOS or Windows and whatevever IDE, I just want to use the OpenFrameworks library with a Designer .ui file.
I will be happy to provide any needed information, but as I said, I am at a loss as to where I should even start.Thanks for reading
-
Hi and welcome to devnet,
I haven't use Qbs but from the looks of it, you likely need to do some configuration so it uses Qt for your project.
Did you already went through the Qbs introduction ?
-
@SGaist Hi, and thanks for the greetings.
Yes, I skimmed through it before I posted, and looked at it again after you pointed out this was the way to a possible solution.
Unfortunately, I'm realizing the config stuff of qbs projects is well above my paygrade.So I went with an other approach that I think might be promising.
As I'm more familiar with QtWidget applications with QMake, I started with that, and thought I would just try to link the OF stuff to it.
So I created a basic project like that, and added the OpenFrameworks folders to the project. The .pro file seems like it was generated correctly, but it won't compile by default, since the OF classes are dependant from one another the #include "ofSomeModule.h" don't work out of the box.
I thought it might be as simple as to add to the INCLUDEPATH in the .pro file, but it doesn't seem to quite do it yet.
If you have any idea on how I could solve that, I would appreciate a lot. It's just a feeling, but I'm thinking this one is much simpler than what I was trying before?
Thanks for the help -
This thread on the OpenFrameworks forum might help.