QWidget modal, exec
-
wrote on 22 Oct 2018, 09:19 last edited by
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?
-
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.
wrote on 23 Oct 2018, 01:39 last edited byhi 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()
-
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?
wrote on 22 Oct 2018, 09:39 last edited byThere 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.
-
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.
wrote on 23 Oct 2018, 01:39 last edited byhi 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()
-
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()
wrote on 23 Oct 2018, 08:37 last edited by koahnig
2/4