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 to use a QWidget created or defined by some programmer?
Forum Updated to NodeBB v4.3 + New Features

How to use a QWidget created or defined by some programmer?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 851 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.
  • J Offline
    J Offline
    jesse.zwd
    wrote on last edited by
    #1

    Hi, there.

    I often see some customized QWidget written by programmer, for example :

    MyComboBox::MyComboBox( QWidget * parent ) : QComboBox(parent)
    {
    }

    MyCombobox is inherited from Qcombobox and not a standard QWidget provided By QT, I can't see it on the Design mode, how to use it graphically?

    Thanks a lot!

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      "That page":http://qt-project.org/doc/qt-5.1/qtdesigner/designer-customizing-forms.html and the subsequent as probably what you are looking for.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jesse.zwd
        wrote on last edited by
        #3

        Hi, koahnig, thanks for reply.

        There are MyComboBox.cpp and MyComboBox.h, but no MyComboBox.ui.
        I read some help documents where there are some words about "Promoting widgets" and some dialog titled "Promoted widgets".

        Where is the "Promoted widgets" dialog? I have not found it.

        Thanks again for your help!

        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