Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    How can I use self implemented Widget in self implemented QDeclarativeItem ?

    QML and Qt Quick
    2
    3
    1765
    Loading More Posts
    • 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.
    • A
      aabc last edited by

      I know how to use Qt C++ object in Qml (Inherit QDeclarativeItem and implement). I know how to implement my own widget (Inherit QWidget and implement). I also know how to use Qt widget (like QPushButton) on my self implemented QDeclarativeItem and see it in QML.
      My problem is - I dont know how to use my own implemented QWidget in my own implemented QDeclarativeItem.

      1 Reply Last reply Reply Quote 0
      • A
        andre last edited by

        I would suggest, that that would work in the same way as using a standard Qt widget in QML... What is different, exactly?

        1 Reply Last reply Reply Quote 0
        • A
          aabc last edited by

          The showEvent isn't called and therefore my widget isn't shown.
          With Qt widget (like QPushButton) the showEvent is called and the QPushButton is shown.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post