Flexible GUI
- blazini36
- Away
- Platinum Member
Less
More
- Posts: 937
- Thank you received: 150
07 Jan 2025 15:40 #318305
by blazini36
This is what I actually have.
I see what you're doing there, I got it from the first video.....I just can't do it because it doesn't exist. So I'm asking where dynamic properties for the QPushButton came from
I installed the 1.1 deb from git using apt yesterday
Replied by blazini36 on topic Flexible GUI
Sorry I mean, Dynamic Properties. I couldn't remember the name because it does not appear. This is from your video
I installed the new deb from releases but it doesn't seem to be adding anything new. I don't have qabstractproperties on the pushbutton whether I set it inside the stacked widget or not. Do I have to do anything special when upgrading flexgui?
I'm not sure what qabstractproperties is, what are you trying to do with that?
If you download the deb from the latest release and install it with gdebi or your favorite way you have the latest.
I'll add a screenshot to the docs.
JT
This is what I actually have.
I see what you're doing there, I got it from the first video.....I just can't do it because it doesn't exist. So I'm asking where dynamic properties for the QPushButton came from
I installed the 1.1 deb from git using apt yesterday
Attachments:
Please Log in or Create an account to join the conversation.
- JT
- Topic Author
- Away
- Administrator
Less
More
- Posts: 875
- Thank you received: 456
07 Jan 2025 16:35 #318308
by JT
Replied by JT on topic Flexible GUI
That section only shows up after you select the button then press the green plus symbol and add a dynamic property.
JT
JT
Please Log in or Create an account to join the conversation.
- blazini36
- Away
- Platinum Member
Less
More
- Posts: 937
- Thank you received: 150
07 Jan 2025 17:24 - 07 Jan 2025 17:26 #318311
by blazini36
Replied by blazini36 on topic Flexible GUI
OK yeah, that's the part that was missing from the first video. Youtube embeds don't work well on my end so I missed it in the 2nd
I see some of the other controls items have dynamic properties so it might be mentioned elsewhere in the docs but I didn't see any mention of it while just progressing through.
Edit: I see it in "Step by Step" gnipsel.com/linuxcnc/flexgui/hal.html#step-by-step
I see some of the other controls items have dynamic properties so it might be mentioned elsewhere in the docs but I didn't see any mention of it while just progressing through.
Edit: I see it in "Step by Step" gnipsel.com/linuxcnc/flexgui/hal.html#step-by-step
Last edit: 07 Jan 2025 17:26 by blazini36.
Please Log in or Create an account to join the conversation.
- JT
- Topic Author
- Away
- Administrator
Less
More
- Posts: 875
- Thank you received: 456
07 Jan 2025 18:09 - 07 Jan 2025 18:09 #318318
by JT
Replied by JT on topic Flexible GUI
I just added the dynamic properties section to the docs and put links to it where dynamic properties are mentioned
gnipsel.com/linuxcnc/flexgui/property.html
JT
gnipsel.com/linuxcnc/flexgui/property.html
JT
Last edit: 07 Jan 2025 18:09 by JT.
Please Log in or Create an account to join the conversation.
- blazini36
- Away
- Platinum Member
Less
More
- Posts: 937
- Thank you received: 150
07 Jan 2025 18:44 #318325
by blazini36
Replied by blazini36 on topic Flexible GUI
Yeah that looks much nicer than the tabwidget when it's run....
The frames on the list and plain text editor aren't visible in the dark-touch theme. For now I'm just sticking them on frame widgets because they blend in with the background otherwise.
The frames on the list and plain text editor aren't visible in the dark-touch theme. For now I'm just sticking them on frame widgets because they blend in with the background otherwise.
The following user(s) said Thank You: JT
Please Log in or Create an account to join the conversation.
- JT
- Topic Author
- Away
- Administrator
Less
More
- Posts: 875
- Thank you received: 456
07 Jan 2025 19:37 #318336
by JT
JT
Replied by JT on topic Flexible GUI
I'll look into the dark-touch theme to see what I need to fix that.Yeah that looks much nicer than the tabwidget when it's run....
The frames on the list and plain text editor aren't visible in the dark-touch theme. For now I'm just sticking them on frame widgets because they blend in with the background otherwise.
JT
Please Log in or Create an account to join the conversation.
- blazini36
- Away
- Platinum Member
Less
More
- Posts: 937
- Thank you received: 150
07 Jan 2025 19:43 - 07 Jan 2025 19:45 #318338
by blazini36
Replied by blazini36 on topic Flexible GUI
One more question......
On the stacked widget, designer seems to save the "current index" as the default, so if you happen to be editing a page and save it, running it from LinuxCNC will always start on that page. Is there any way to create a "default index"?
I have like 3 stacked widgets on top of each other so I have to make sure I set them all to the desired first page before I save it
On the stacked widget, designer seems to save the "current index" as the default, so if you happen to be editing a page and save it, running it from LinuxCNC will always start on that page. Is there any way to create a "default index"?
I have like 3 stacked widgets on top of each other so I have to make sure I set them all to the desired first page before I save it
Last edit: 07 Jan 2025 19:45 by blazini36.
Please Log in or Create an account to join the conversation.
- JT
- Topic Author
- Away
- Administrator
Less
More
- Posts: 875
- Thank you received: 456
07 Jan 2025 20:01 - 07 Jan 2025 20:03 #318341
by JT
Yup I just make sure that all tab widgets are set to the default page. You could add some Python code to set them.
gnipsel.com/linuxcnc/flexgui/python.html
The syntax would be something like this:
JT
Replied by JT on topic Flexible GUI
One more question......
On the stacked widget, designer seems to save the "current index" as the default, so if you happen to be editing a page and save it, running it from LinuxCNC will always start on that page. Is there any way to create a "default index"?
I have like 3 stacked widgets on top of each other so I have to make sure I set them all to the desired first page before I save it
Yup I just make sure that all tab widgets are set to the default page. You could add some Python code to set them.
gnipsel.com/linuxcnc/flexgui/python.html
The syntax would be something like this:
parent.stacked_widget_name.setCurrentIndex(0)
JT
Last edit: 07 Jan 2025 20:03 by JT.
Please Log in or Create an account to join the conversation.
- blazini36
- Away
- Platinum Member
Less
More
- Posts: 937
- Thank you received: 150
08 Jan 2025 01:59 #318371
by blazini36
Replied by blazini36 on topic Flexible GUI
I suppose I hit some different circumstances since I'm trying to do something with a touchscreen rather than something like Axis, couple of things I ran across.....
I don't even bother adding a MenuBar, but I would like to use a pushbutton to open halshow, etc....Any way to do that?
I also noticed there's no good binary indicators in qt5's standard set of widgets, like LEDs or even a button that changes appearance on input. The only thing I've found is hal labels, but even then I think they are only actually good for displaying numeric values. If set to "bit" type input, they just display true or false. I don't see any way to make a text string appear or disappear at least. Looking for something that can just indicate a fault.
If something like this is already there just point it out, I'm good at missing things.
I don't even bother adding a MenuBar, but I would like to use a pushbutton to open halshow, etc....Any way to do that?
I also noticed there's no good binary indicators in qt5's standard set of widgets, like LEDs or even a button that changes appearance on input. The only thing I've found is hal labels, but even then I think they are only actually good for displaying numeric values. If set to "bit" type input, they just display true or false. I don't see any way to make a text string appear or disappear at least. Looking for something that can just indicate a fault.
If something like this is already there just point it out, I'm good at missing things.
Please Log in or Create an account to join the conversation.
- JT
- Topic Author
- Away
- Administrator
Less
More
- Posts: 875
- Thank you received: 456
08 Jan 2025 10:33 #318390
by JT
Replied by JT on topic Flexible GUI
All the menu items have push buttons as well.
gnipsel.com/linuxcnc/flexgui/controls.html#push-buttons
Let me look into adding user text to a bit type hal label.
JT
gnipsel.com/linuxcnc/flexgui/controls.html#push-buttons
Let me look into adding user text to a bit type hal label.
JT
Please Log in or Create an account to join the conversation.
Time to create page: 0.109 seconds