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. Custom widget in QGroupBox
Forum Updated to NodeBB v4.3 + New Features

Custom widget in QGroupBox

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 308 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.
  • C Offline
    C Offline
    Creatorczyk
    wrote on last edited by
    #1

    Hi

    I created my own class IPComboBox which inherits from the class QComboBox. But when i tried to add to QGroupBox then the Widget while the app is running is not in the grid. In Desigher it shows me the following icon:

    5228fc78-ae25-4214-b524-906b938391b2-image.png

    How could i fix it? Casual QComboBox works well.

    JonBJ Pl45m4P 2 Replies Last reply
    0
    • C Creatorczyk

      Hi

      I created my own class IPComboBox which inherits from the class QComboBox. But when i tried to add to QGroupBox then the Widget while the app is running is not in the grid. In Desigher it shows me the following icon:

      5228fc78-ae25-4214-b524-906b938391b2-image.png

      How could i fix it? Casual QComboBox works well.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Creatorczyk said in Custom widget in QGroupBox:

      But when i tried to add to QGroupBox then the Widget while the app is running is not in the grid

      Do you mean you have runtime code to create an instance of your widget and add it somewhere? In which case show your code.

      1 Reply Last reply
      1
      • C Creatorczyk

        Hi

        I created my own class IPComboBox which inherits from the class QComboBox. But when i tried to add to QGroupBox then the Widget while the app is running is not in the grid. In Desigher it shows me the following icon:

        5228fc78-ae25-4214-b524-906b938391b2-image.png

        How could i fix it? Casual QComboBox works well.

        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on last edited by Pl45m4
        #3

        @Creatorczyk

        Just a guess from looking at the image:
        It looks like you made IpComboBox a QGroupBox. A QComboBox subclass widget wouldn't have it's own layout.
        If you want your IpComboBox in your QGroupBox, create a box, move a regular comboBox in there and promote this widget to your IpComboBox code/class


        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        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