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

QWidget modal, exec

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 1.5k 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.
  • M Offline
    M Offline
    minjunkim
    wrote on 22 Oct 2018, 09:19 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 22 Oct 2018, 09:39
    0
    • K koahnig
      22 Oct 2018, 09:39

      @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 23 Oct 2018, 01:39 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 23 Oct 2018, 08:37
      0
      • M minjunkim
        22 Oct 2018, 09:19

        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 22 Oct 2018, 09:39 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 23 Oct 2018, 01:39
        2
        • K koahnig
          22 Oct 2018, 09:39

          @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 23 Oct 2018, 01:39 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 23 Oct 2018, 08:37
          0
          • M minjunkim
            23 Oct 2018, 01:39

            @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 23 Oct 2018, 08:37 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

            2/4

            22 Oct 2018, 09:39

            • Login

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