Generating a own Popup
- DemonClaW
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 1
13 Jan 2026 05:31 #341339
by DemonClaW
Generating a own Popup was created by DemonClaW
Hey there,
im trying to get a popup done by myself, if i press a GUI Button i would like to get a Popup where i could have some checkboxes and monitoring some pressure inputs. I tryed to find something about the topic here but i didnt really found anything, is there a topic that already deals with this topic? Or is there someone who tryed something like that? Ive created my own .ui File, and tryed to implement it once by the main handler what just leaded a lot of crashes, then i tryed a own handler for the ui what in my opinion is the cleaner way, but sadly same result. i didnt touch any old code in the handler but it still crashes on a buttons i never touched or created myself.
Thx for any help
im trying to get a popup done by myself, if i press a GUI Button i would like to get a Popup where i could have some checkboxes and monitoring some pressure inputs. I tryed to find something about the topic here but i didnt really found anything, is there a topic that already deals with this topic? Or is there someone who tryed something like that? Ive created my own .ui File, and tryed to implement it once by the main handler what just leaded a lot of crashes, then i tryed a own handler for the ui what in my opinion is the cleaner way, but sadly same result. i didnt touch any old code in the handler but it still crashes on a buttons i never touched or created myself.
Thx for any help
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7274
- Thank you received: 2117
13 Jan 2026 13:32 #341343
by cmorley
Replied by cmorley on topic Generating a own Popup
can you post the ui file that defines your popup dialog?
Please Log in or Create an account to join the conversation.
- DemonClaW
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 1
13 Jan 2026 15:06 #341345
by DemonClaW
Replied by DemonClaW on topic Generating a own Popup
This would be the handler.py for the popup, the ui is currently a blank QDialog Window from QTDesigner nothing on it, i would add that after i got the window working like i want it to work. The problem is that it is something self created and nothing really proofed. I ocouldnt find a post here in the forum and the LinuxWiki side about Qtvcp and QtDragon isnt helping much ,too. Ive really no idea if im even on the right way.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7274
- Thank you received: 2117
15 Jan 2026 07:08 #341418
by cmorley
Replied by cmorley on topic Generating a own Popup
I'm sorry i will try to look at this on the weekend.
To be clear:
you want a customizable popup dialog/window that is show on HAL pin change.
You are otherwise using Qtdragon?
To be clear:
you want a customizable popup dialog/window that is show on HAL pin change.
You are otherwise using Qtdragon?
Please Log in or Create an account to join the conversation.
- DemonClaW
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 1
15 Jan 2026 09:08 #341420
by DemonClaW
Replied by DemonClaW on topic Generating a own Popup
I want to use a Button in the Main Ui to Open the Pop-up ui. The Pop-up ui will get some pressure Displays and checkboxes. But i dont See a Problem by implementing this. The Problem is that i didnt found anything about creating a Pop-up Like that. Im Sure If i Get that to Work, the Buttons etc. I can get it done by myself
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7274
- Thank you received: 2117
17 Jan 2026 15:11 #341485
by cmorley
Replied by cmorley on topic Generating a own Popup
I forgot to ask if you are using 2.9 or master version? I have this working in principal in master branch.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7274
- Thank you received: 2117
17 Jan 2026 15:39 #341487
by cmorley
Replied by cmorley on topic Generating a own Popup
Ok it doesn't matter, this works in master or 2.9
Add the file to qtvcp/screens/qtdragon/ it will be in your configuration folder.
name the file qtdragon_handler.py
Then in your ini add this under the [DISPLAY] heading (this is an example):
# optional tab showing an external qtvcp panel
EMBED_TAB_NAME=Vismach demo
EMBED_TAB_COMMAND=qtvcp vismach_mill_xyz
EMBED_TAB_LOCATION=DIALOG
The key thing is the location: DIALOG will make the panel be a popup dialog.
You will see an arrow button show on the top right of qtdragon.
pushing it will toggle the dialog. There is also a HAL pin you could use to do the same.
Add the file to qtvcp/screens/qtdragon/ it will be in your configuration folder.
name the file qtdragon_handler.py
Then in your ini add this under the [DISPLAY] heading (this is an example):
# optional tab showing an external qtvcp panel
EMBED_TAB_NAME=Vismach demo
EMBED_TAB_COMMAND=qtvcp vismach_mill_xyz
EMBED_TAB_LOCATION=DIALOG
The key thing is the location: DIALOG will make the panel be a popup dialog.
You will see an arrow button show on the top right of qtdragon.
pushing it will toggle the dialog. There is also a HAL pin you could use to do the same.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7274
- Thank you received: 2117
17 Jan 2026 16:34 #341488
by cmorley
Replied by cmorley on topic Generating a own Popup
So to use a custom panel you have made in Qt designer.
Say the panel name will be 'test.ui'
save the panel in your configuration folder in qtvcp/panels/test/ as test.ui
then in the ini under [DISPLAY]
EMBED_TAB_NAME=demo
EMBED_TAB_COMMAND=qtvcp test
EMBED_TAB_LOCATION=DIALOG
please give feedback on any problems or needs.
Chris
Say the panel name will be 'test.ui'
save the panel in your configuration folder in qtvcp/panels/test/ as test.ui
then in the ini under [DISPLAY]
EMBED_TAB_NAME=demo
EMBED_TAB_COMMAND=qtvcp test
EMBED_TAB_LOCATION=DIALOG
please give feedback on any problems or needs.
Chris
Please Log in or Create an account to join the conversation.
- DemonClaW
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 1
18 Jan 2026 21:23 #341551
by DemonClaW
Replied by DemonClaW on topic Generating a own Popup
Dear Chris,
i wanna thank you for your help at first.Ive put your file in the given path under the name vacuum_popup_handler.py as i thought its a own handler data for the popup, qtdragon_hd_handler.py is already the main handler data for the whole programm or did you mean to add it in the main code? Then i did the EMBED Part like
DISPLAY = qtvcp -d qtdragon_hd
EMBED_TAB_NAME = vacuum_popup
EMBED_TAB_COMMAND = qtvcp vacuum_popup
EMBED_TAB_LOCATION = DIALOG
I think this is the way u meant it. Ive also safed the vacuum_popup.ui under qtvcp/panels/vacuum_popup/vacuum_popup.ui.Ive posted the crash code. It tells me a TypeError "Wrong base class"
i wanna thank you for your help at first.Ive put your file in the given path under the name vacuum_popup_handler.py as i thought its a own handler data for the popup, qtdragon_hd_handler.py is already the main handler data for the whole programm or did you mean to add it in the main code? Then i did the EMBED Part like
DISPLAY = qtvcp -d qtdragon_hd
EMBED_TAB_NAME = vacuum_popup
EMBED_TAB_COMMAND = qtvcp vacuum_popup
EMBED_TAB_LOCATION = DIALOG
I think this is the way u meant it. Ive also safed the vacuum_popup.ui under qtvcp/panels/vacuum_popup/vacuum_popup.ui.Ive posted the crash code. It tells me a TypeError "Wrong base class"
Attachments:
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7274
- Thank you received: 2117
19 Jan 2026 15:25 #341579
by cmorley
Replied by cmorley on topic Generating a own Popup
No, we are customizing qtdragon to load a panel as a pop up and add a button to launch/hide it.
So to add a custom panel you need to add both files to the appropriate folders as I described.
I would suggest you add the qtdragon_handler changes then change the INI to this:
EMBED_TAB_NAME=Vismach demo
EMBED_TAB_COMMAND=qtvcp vismach_mill_xyz
EMBED_TAB_LOCATION=DIALOG
and test.
start qttdragon, on the top left you should see a arrow button - pressing it should show/hide the window that has a 3d milling machine graphic.
if that works then move on to adding the ui and handler of your custom panel (in the described different location) and changing the INI to load it instead.
if there are error messages please quote them exactly.
If you post your vacuum_pimp ui and handler files, I could test them on my end too.
So to add a custom panel you need to add both files to the appropriate folders as I described.
I would suggest you add the qtdragon_handler changes then change the INI to this:
EMBED_TAB_NAME=Vismach demo
EMBED_TAB_COMMAND=qtvcp vismach_mill_xyz
EMBED_TAB_LOCATION=DIALOG
and test.
start qttdragon, on the top left you should see a arrow button - pressing it should show/hide the window that has a 3d milling machine graphic.
if that works then move on to adding the ui and handler of your custom panel (in the described different location) and changing the INI to load it instead.
if there are error messages please quote them exactly.
If you post your vacuum_pimp ui and handler files, I could test them on my end too.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.134 seconds