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. QWidget modal, exec
QtWS25 Last Chance

QWidget modal, exec

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 1.5k 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.
  • M Offline
    M Offline
    minjunkim
    wrote on last edited by
    #1

    hi,

    first.. i can't use QDialog,

    i have to use QWidget

    just, i want to use MYQWidget as modal

    MYQWidget have QButton.

    First, i call QWidget by using raise() and Clicking the button calls exec.

    is there any idea for this problem?

    K 1 Reply Last reply
    0
    • K koahnig

      @minjunkim

      There are a couple of QDialog examples to show how to use QDialog. Typically this is giving a lot of hints on use of QDialog.

      In order to give you advice for your specific issue, you need to give some code snippets explaining what you try to do and where the problem might be.

      M Offline
      M Offline
      minjunkim
      wrote on last edited by
      #3

      @koahnig

      hi koahnig, thank you for your apply

      I tried to inherit qdialog as your advice. but i have to use QWidget

      so

      i try mutiple inheritance QWidget and QDialog but it has some problem(QObject, QPaintDevice).

      There was a problem creating the object.

      so

      i use Eventloop. it is perfectly work i want.

      first show QWidget, loop.exec() together then if press button call loop.exit()

      K 1 Reply Last reply
      0
      • M minjunkim

        hi,

        first.. i can't use QDialog,

        i have to use QWidget

        just, i want to use MYQWidget as modal

        MYQWidget have QButton.

        First, i call QWidget by using raise() and Clicking the button calls exec.

        is there any idea for this problem?

        K Offline
        K Offline
        koahnig
        wrote on last edited by
        #2

        @minjunkim

        There are a couple of QDialog examples to show how to use QDialog. Typically this is giving a lot of hints on use of QDialog.

        In order to give you advice for your specific issue, you need to give some code snippets explaining what you try to do and where the problem might be.

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

        M 1 Reply Last reply
        2
        • K koahnig

          @minjunkim

          There are a couple of QDialog examples to show how to use QDialog. Typically this is giving a lot of hints on use of QDialog.

          In order to give you advice for your specific issue, you need to give some code snippets explaining what you try to do and where the problem might be.

          M Offline
          M Offline
          minjunkim
          wrote on last edited by
          #3

          @koahnig

          hi koahnig, thank you for your apply

          I tried to inherit qdialog as your advice. but i have to use QWidget

          so

          i try mutiple inheritance QWidget and QDialog but it has some problem(QObject, QPaintDevice).

          There was a problem creating the object.

          so

          i use Eventloop. it is perfectly work i want.

          first show QWidget, loop.exec() together then if press button call loop.exit()

          K 1 Reply Last reply
          0
          • M minjunkim

            @koahnig

            hi koahnig, thank you for your apply

            I tried to inherit qdialog as your advice. but i have to use QWidget

            so

            i try mutiple inheritance QWidget and QDialog but it has some problem(QObject, QPaintDevice).

            There was a problem creating the object.

            so

            i use Eventloop. it is perfectly work i want.

            first show QWidget, loop.exec() together then if press button call loop.exit()

            K Offline
            K Offline
            koahnig
            wrote on last edited by koahnig
            #4

            @minjunkim

            QDialog inherits already QWidget. So no need to inherit again

            0_1540283814448_b647530a-233c-4ae7-88f6-f1b0758ea492-image.png

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

            1 Reply Last reply
            2

            • Login

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