Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How can I use self implemented Widget in self implemented QDeclarativeItem ?

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

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 2.1k 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.
  • A Offline
    A Offline
    aabc
    wrote on last edited by
    #1

    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
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      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
      0
      • A Offline
        A Offline
        aabc
        wrote on last edited by
        #3

        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
        0

        • Login

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