Flexible GUI

More
1 year 8 months ago #322280 by JT
Replied by JT on topic Flexible GUI
I don't see a .qss file in there so can't tell what's wrong. Oh I see you used the mainwindow stylesheet which I never do. It's probably a typo somewhere in your stylesheet.

I se a .qss file and add it to the ini file as per the manual. Take a look at some of the example stylesheets. I use the Flex QSS program to generate stylesheets.

For some reason unknown to me I can't view your files.

JT
The following user(s) said Thank You: Nserega.90

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #322281 by JT
Replied by JT on topic Flexible GUI
Ok the files just opened for me, I see you have a resource defined in the mainwindow, not sure if that interferes with Flex resource or not I don't use that.

I use the Flex Resource builder to create my resource files.

JT
The following user(s) said Thank You: Nserega.90

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #322284 by JT
Replied by JT on topic Flexible GUI
Just did a test and if you have an image as the background image then color does nothing. Background color does change when you apply different colors to different states.
Code:
QPushButton { min-height: 80px; min-width: 80px; margin: 2px; background-position: center; background-origin: content; background-clip: padding; background-repeat: no-repeat; background-image: url(:up_arrow.png); background-color: #0000ff; } QPushButton:hover { background-color: #aaff7f; } QPushButton:pressed { background-color: #ff0000; } QPushButton:disabled { background-color: #2c2c2c; }

JT
The following user(s) said Thank You: Nserega.90

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #322285 by JT
Replied by JT on topic Flexible GUI
In the image I'm pressing the button with the mouse, note mouse states don't work on a touch screen.
Code:
QPushButton {     min-height: 100px;     min-width: 100px;     margin: 2px;     background-position: center;     background-origin: content;     background-clip: padding;     background-repeat: no-repeat;     background-color: #0000ff; } QPushButton#up_button {     background-image: url(:up_arrow.png); } QPushButton#down_button {     background-image: url(:down_arrow.png); } QPushButton:hover {     background-color: #aaff7f; } QPushButton:pressed {     background-color: #ff0000; } QPushButton:disabled {     background-color: #2c2c2c; }

 

JT
The following user(s) said Thank You: Nserega.90

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #322310 by 109jb
Replied by 109jb on topic Flexible GUI
I cannot thank you enough for doing all of this work for the FLexible GUI. I have been playing with it for a few days and it is very simple to create what you want visually.

That said, I have a question. I am setting up a Jog screen for use with a touchscreen monitor and cannot figure out how to make it so you can hold the on-screen jog button in a pressed state for continuous jogging. You can do it with a mouse, holding the mouse button down, but just holding your finger on the screen doesn't have the same effect.

I will say that I am experimenting with this in a virtual machine on my Windows PC using a simulated CNC machine. I don't currently have a touchsceen for the RPi I'll be using for LinuxCNC. Maybe that has something to do with it.

If anyone can help it would be appreciated.
The following user(s) said Thank You: tommylight, JT

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #322319 by JT
Replied by JT on topic Flexible GUI
The jog buttons work as expected and the axis jogs as long as I'm touching the button on my touch screen on my BP and they work in Debian with a simulator. I'm assuming you're using jog plus minus joint buttons such as jog_plus_pb_0 for the X axis and Continuous is selected.

gnipsel.com/linuxcnc/flexgui/controls.html#jog-controls

Feedback is what keeps me going!

JT

Please Log in or Create an account to join the conversation.

Moderators: JT
Time to create page: 0.283 seconds
Powered by Kunena Forum