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. QState Transition in c++/clr environment
Forum Updated to NodeBB v4.3 + New Features

QState Transition in c++/clr environment

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 795 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.
  • Q Offline
    Q Offline
    quangabcd
    wrote on last edited by
    #1

    Because of using dll, I changed Common Language Runtime Support in my QT project into Common Language Runtime Support (/clr).

    i used: stateExploring->addTransition(ui.startExperiment, &QPushButton::clicked, stateRunning); to change from state "stateExploring" into "stateRunning" when button clicked, it seems that this function doesn't work

    for debugging, I changed into No Common language support, this function worked well.

    it is clear to there is problem in "addtransition" function when using runtime common language clr.

    any one please help me an opinion to run this function in clr support environment
    Last edited by quangabcd; Today at 09:42.

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      Qt always had problems with clr, you should report your issue to https://bugreports.qt.io but as a general rule I always separate the C++/CLI functionality in a separate class and call it as a member (pointer) of the main class so that you can compile the C++/CLI source with /clr and the rest without (this is not possible with qmake afaik, but works with VS and CMake)

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      3
      • Q Offline
        Q Offline
        quangabcd
        wrote on last edited by
        #3

        HI,
        It seems that my account doesn't have privilege for reporting a issue

        1 Reply Last reply
        0
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          All logged in users can report bugs... try this link: https://bugreports.qt.io/secure/CreateIssue!default.jspa

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          1

          • Login

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