Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Embedded a qwt3d example into my project
Forum Updated to NodeBB v4.3 + New Features

Embedded a qwt3d example into my project

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 137 Views
  • 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.
  • M Offline
    M Offline
    Make it GREAT again
    wrote on last edited by
    #1

    Hello, guys.
    I want to embedded an example (mesh) of qwt3d into my project. The example has its own UI which should be placed somewhere onto the UI of my project. I tried moving its source files to my project and prompt the class of my project to parent level. But it seems not the correct way to go.

    My project is simply this
    #ifndef TESTGUI_H
    #define TESTGUI_H

    #include "meshmainwindow.h"
    #include <QMainWindow>

    namespace Ui {
    class TestGui;
    }

    class TestGui : public QMainWindow
    {
    Q_OBJECT

    public:
    explicit TestGui(QWidget *parent = 0);
    ~TestGui();

    private:
    Ui::TestGui *ui;
    };

    #endif // TESTGUI_H

    Mesh looks like this
    #include "ui_meshmainwindowbase.h"

    class QLabel;
    class QTimer;
    class QAction;
    class QFileDialog;
    class LightingDlg;
    class ColorMapPreview;

    class MeshMainWindow : public QMainWindow, protected Ui::MainWindow
    {
    Q_OBJECT
    public:
    MeshMainWindow( QWidget* parent = 0 );
    ~MeshMainWindow();

    Qwt3D::GridPlot* dataWidget;

    public slots:

    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