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. ActiveQt
Qt 6.11 is out! See what's new in the release blog

ActiveQt

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 459 Views 1 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.
  • H Offline
    H Offline
    hamidarr
    wrote on last edited by
    #1

    Hi everybody.I developed an application and used ActiveQt to use it in C# as COM COMPONENT.My problem is when I compile my project with Qt 4.8.6 (that has been compiled for msvs 2012 64 bit) I got this error :Self Registration for d:......dll faild(when I add it as COM Component) but when I compile my project with Qt 4.8.6 and vs 2010 32 bit everything is ok and ther is no problem.I have to use 64 bit because I want to set my target build in C# 64 bit.
    @#ifndef OBJECTS_H
    #define OBJECTS_H

    #include <QWidget>
    #include <QColor>
    QT_BEGIN_NAMESPACE
    class QVBoxLayout;
    QT_END_NAMESPACE
    class QSubWidget;
    class CirclesGraphicsScene;
    class CirclesGraphicsView;
    //! [0]
    class Circles : public QWidget
    {
    Q_OBJECT
    Q_CLASSINFO("ClassID", "{d574a747-8016-46db-a07c-b2b4854ee75c}")
    Q_CLASSINFO("InterfaceID", "{4a30719d-d9c2-4659-9d16-67378209f822}")
    Q_CLASSINFO("EventsID", "{4a30719d-d9c2-4659-9d16-67378209f823}")
    Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
    Q_PROPERTY(int circleNumber READ circleNumber WRITE setCircleNumber)

    void createScene();
    

    public:
    Circles(QWidget *parent = 0);

    QSize sizeHint() const;
    QColor backgroundColor()const;
    int circleNumber()const{return _n;}
    

    public slots:

    //--general
    void setBackgroundColor(QColor color);
    void setCircleNumber(int n);

    //--axes
    void setAxesPen(QColor color, int w , int penStyle);

    //--circles
    void addCircles(int r, int n, int s, int e);

    .......//the rest@

    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