Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Designer + OpenFrameworks (Need help setting up)
Forum Updated to NodeBB v4.3 + New Features

Designer + OpenFrameworks (Need help setting up)

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
4 Posts 2 Posters 586 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tadz
    wrote on last edited by
    #1

    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

    Screenshot 2023-03-06 at 2.01.22 AM.png

    SGaistS 1 Reply Last reply
    0
    • T Tadz

      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

      Screenshot 2023-03-06 at 2.01.22 AM.png

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply
      0
      • SGaistS SGaist

        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 ?

        T Offline
        T Offline
        Tadz
        wrote on last edited by Tadz
        #3

        @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

        Screenshot 2023-03-06 at 11.08.04 PM.png

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          This thread on the OpenFrameworks forum might help.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved