Share OpenGL context with C code
Hey peeps, I've been developing a drawing program in C, with Qt Widgets for GUI in C++. I'm currently using a QOpenGLWidget who initializes glad, then calls my C code which also relies on opengl / glad.
This works but does feel kinda dirty as Qt is already initializes OpenGL by itself and am curious if there's a cleaner way of doing this.
https://redd.it/1txdb7j
@qt_reddit
Hey peeps, I've been developing a drawing program in C, with Qt Widgets for GUI in C++. I'm currently using a QOpenGLWidget who initializes glad, then calls my C code which also relies on opengl / glad.
This works but does feel kinda dirty as Qt is already initializes OpenGL by itself and am curious if there's a cleaner way of doing this.
https://redd.it/1txdb7j
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Accelerated 2D Canvas Benchmarks(Qt Canvas Painter benchmark) running on HarmonyOS device
/r/HuaweiDevelopers/comments/1txezya/accelerated_2d_canvas_benchmarksqt_canvas_painter/
https://redd.it/1txf0ee
@qt_reddit
/r/HuaweiDevelopers/comments/1txezya/accelerated_2d_canvas_benchmarksqt_canvas_painter/
https://redd.it/1txf0ee
@qt_reddit
Reddit
From the QtFramework community on Reddit: Accelerated 2D Canvas Benchmarks(Qt Canvas Painter benchmark) running on HarmonyOS device
Posted by cavendishqi - 2 votes and 0 comments
Qt Creator IDE how to open multiple KDE projects tutorial
https://www.youtube.com/watch?v=FaVOZ6-Lukg
https://redd.it/1tyjpoy
@qt_reddit
https://www.youtube.com/watch?v=FaVOZ6-Lukg
https://redd.it/1tyjpoy
@qt_reddit
YouTube
Qt Creator IDE how to open multiple KDE projects tutorial - June 2026 - 7392b1e6
The debugger can step into cpp files which are not part of the project that is opened in Qt Creator. By opening more KDE projects in Qt Creator more features will work correctly such as Ctrl+click navigate to symbol implementation and definition. And switch…
If somebody use The CQtDeployer tool to deploy Qt, I made simple install-github-action for yours.
Using
- name: Install CQtDeployer
uses: QuasarApp/cqtdeployer-install-action@v1.0.0
https://github.com/marketplace/actions/setup-cqtdeployer
https://redd.it/1tzeib9
@qt_reddit
Using
- name: Install CQtDeployer
uses: QuasarApp/cqtdeployer-install-action@v1.0.0
https://github.com/marketplace/actions/setup-cqtdeployer
https://redd.it/1tzeib9
@qt_reddit
GitHub
Setup CQtDeployer - GitHub Marketplace
Downloads, extracts, and installs CQtDeployer for Linux (x64/ARM) and Windows
Developers who went from Python -> QML / Javascript, what was the hardest thing for you to learn?
Long story short, I'll be doing a "bootcamp" on a few interns who know Python but zero javascript or QML. Yes, technically there is "Qt for Python" but the codebase is mostly QML.
So my questions for anyone that learned QML and Javascript after learning Python are:
* What were the most difficult concepts / subjects in learning?
* What didn't make sense when you were taking the tutorials?
* What was something that you wished somebody took time to teach you step by step?
Thanks.
https://redd.it/1tzpqet
@qt_reddit
Long story short, I'll be doing a "bootcamp" on a few interns who know Python but zero javascript or QML. Yes, technically there is "Qt for Python" but the codebase is mostly QML.
So my questions for anyone that learned QML and Javascript after learning Python are:
* What were the most difficult concepts / subjects in learning?
* What didn't make sense when you were taking the tutorials?
* What was something that you wished somebody took time to teach you step by step?
Thanks.
https://redd.it/1tzpqet
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
How do I get the button to show the toggle effect
When I just have the button and press enter, the button shows a toggle animation. it looks like it is being pressed and released but when I added the Qshortcut it does not show. The button works, it just doesn't show the animation of it.
How do I get it to show toggle animation when key is pressed?
from PyQt6.QtCore import Qt, QTimer
from PyQt6.QtGui import QKeySequence, QShortcut
from PyQt6.QtWidgets import QMainWindow, QApplication, QPushButton
class MainWindow(QMainWindow):
def init(self):
super().init()
self.setWindowTitle("Key Events")
self.setFixedSize(500, 300)
self.setStyleSheet("background-color: #914ead;")
def Button(self):
# Draw Button
button = QPushButton("Press Me")
button.setFixedSize(100, 50)
button.setCursor(Qt.CursorShape.PointingHandCursor)
button.clicked.connect(lambda: print("Button clicked"))
keyConnect = QShortcut(QKeySequence("a"), self)
keyConnect.activated.connect(button.click)
#button.setCheckable(True)
#button.setCheckable(False)
self.setCentralWidget(button)
https://redd.it/1u0gmxe
@qt_reddit
When I just have the button and press enter, the button shows a toggle animation. it looks like it is being pressed and released but when I added the Qshortcut it does not show. The button works, it just doesn't show the animation of it.
How do I get it to show toggle animation when key is pressed?
from PyQt6.QtCore import Qt, QTimer
from PyQt6.QtGui import QKeySequence, QShortcut
from PyQt6.QtWidgets import QMainWindow, QApplication, QPushButton
class MainWindow(QMainWindow):
def init(self):
super().init()
self.setWindowTitle("Key Events")
self.setFixedSize(500, 300)
self.setStyleSheet("background-color: #914ead;")
def Button(self):
# Draw Button
button = QPushButton("Press Me")
button.setFixedSize(100, 50)
button.setCursor(Qt.CursorShape.PointingHandCursor)
button.clicked.connect(lambda: print("Button clicked"))
keyConnect = QShortcut(QKeySequence("a"), self)
keyConnect.activated.connect(button.click)
#button.setCheckable(True)
#button.setCheckable(False)
self.setCentralWidget(button)
https://redd.it/1u0gmxe
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Introducing Jauxa
https://www.youtube.com/watch?v=9m8ERAbTeu4&t=3s&pp=ygUFamF1eGE%3D
https://redd.it/1u0irpr
@qt_reddit
https://www.youtube.com/watch?v=9m8ERAbTeu4&t=3s&pp=ygUFamF1eGE%3D
https://redd.it/1u0irpr
@qt_reddit
YouTube
Introducing Jauxa
Introductory video of Jauxa SDK s Qt6/QML framework that takes Material Design 3 seriously — live HCT theme engine, image-to-palette extraction, 60+ curated themes, production-ready components, and a reactive modeling layer.
Qt #QML #Qt6 #MaterialDesign3…
Qt #QML #Qt6 #MaterialDesign3…
veles-ng: a pretty-looking binary data visualization tool
Hi. Here's my continuation of veles, a pretty-looking binary data visualization tool: https://github.com/clin1234/veles
Stack: Qt 5 for UI, GTest for testing, Python and OpenSSL for (eventually) remote storage of binary data visualizations, Kaitai Structs for parsing binary files.
Prebuild binaries available for Linux and Windows x64. Video demonstration: https://c.gmx.com/@1257782489229825088/nuDt9dWAyFWTvuqXMcEHfA
Definitely needs some additional eyes to go over what I missed, even with Claude Code assistance...
https://redd.it/1u15ihc
@qt_reddit
Hi. Here's my continuation of veles, a pretty-looking binary data visualization tool: https://github.com/clin1234/veles
Stack: Qt 5 for UI, GTest for testing, Python and OpenSSL for (eventually) remote storage of binary data visualizations, Kaitai Structs for parsing binary files.
Prebuild binaries available for Linux and Windows x64. Video demonstration: https://c.gmx.com/@1257782489229825088/nuDt9dWAyFWTvuqXMcEHfA
Definitely needs some additional eyes to go over what I missed, even with Claude Code assistance...
https://redd.it/1u15ihc
@qt_reddit
GitHub
GitHub - clin1234/veles: Fork of https://github.com/codilime/veles with modernizing fixes
Fork of https://github.com/codilime/veles with modernizing fixes - clin1234/veles
Rad-UI released! A new reactive, cross-platform C++20 UI framework
https://github.com/just-language/Rad-UI
https://redd.it/1u1azn1
@qt_reddit
https://github.com/just-language/Rad-UI
https://redd.it/1u1azn1
@qt_reddit
GitHub
GitHub - just-language/Rad-UI: Rad-UI: A modern, cross-platform C++20 UI library with reactive state management, GPU rendering…
Rad-UI: A modern, cross-platform C++20 UI library with reactive state management, GPU rendering, and native async/coroutine support. - just-language/Rad-UI
I hate pyQt
I am just venting here but I started using pyQt about 3 days ago to build a similar alarm and I do not like it. I do not like the documentation and having to use AI to just to get what I want. it driving me nuts but I want to learn it because I am tired of using pygame and I do not feel like make this is HTML, CSS and JS.
I wanted to try something new
https://redd.it/1u1ehi3
@qt_reddit
I am just venting here but I started using pyQt about 3 days ago to build a similar alarm and I do not like it. I do not like the documentation and having to use AI to just to get what I want. it driving me nuts but I want to learn it because I am tired of using pygame and I do not feel like make this is HTML, CSS and JS.
I wanted to try something new
https://redd.it/1u1ehi3
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Performance testing Qt
I know so I'm e of my implementations are far from perfect, but it's be helpful when I run my program to identify exactly which function calls are happening the most or taking the most time, especially around Qt.
​
Does Qt ship anything to help with this pr are there any libraries which can help? I'm running C++
https://redd.it/1u1llyc
@qt_reddit
I know so I'm e of my implementations are far from perfect, but it's be helpful when I run my program to identify exactly which function calls are happening the most or taking the most time, especially around Qt.
​
Does Qt ship anything to help with this pr are there any libraries which can help? I'm running C++
https://redd.it/1u1llyc
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
This media is not supported in your browser
VIEW IN TELEGRAM
Qt 6.12 continues to delight, this time with a new material responsible for the living sky.
https://redd.it/1u30i58
@qt_reddit
https://redd.it/1u30i58
@qt_reddit
How to create a QOpenGLContext from a GLFW EGL window?
I wanted to embed a QML scene into a GLFW window using QQuickRenderControl. From what I can see, one of the first steps is to get the OpenGL context from GLFW, and this is where I run into an issue. My code crashes on the line: QOpenGLContext \*glfwQtContext = QNativeInterface::QEGLContext::fromNative(eglContext, eGLDisplay);. Am I doing something wrong? Configuration: Qt 6.9, Ubuntu 24.04 Wayland, GLFW 3.4.
#include <QGuiApplication>
#include <QCoreApplication>
#include <QOpenGLContext>
#include <QOffscreenSurface>
//#define GLFW_EXPOSE_NATIVE_WAYLAND
#define GLFW_EXPOSE_NATIVE_EGL
#include <GLFW/glfw3.h>
#include <GLFW/glfw3native.h>
#include <iostream>
int main(int argc, char *argv[])
{
//qputenv("QT_QPA_PLATFORM","eglfs");
qputenv("QT_QPA_PLATFORM","wayland");
QGuiApplication app(argc, argv);
if(!glfwInit()){
std::cerr << "Failed initialize glfw";
exit(1);
}
glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_NATIVE_CONTEXT_API);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_ANY_PROFILE, GLFW_OPENGL_CORE_PROFILE);
GLFWwindow* window = glfwCreateWindow(800, 600, "Qml in GLFW window", nullptr, nullptr);
if(!window){
std::cout << "Wndow creation failed!";
exit(EXIT_FAILURE);
}else{
std::cout << "Sucessful window creation!" << std::endl;
}
glfwMakeContextCurrent(window);
EGLContext eglContext = glfwGetEGLContext(window);
EGLDisplay eGLDisplay = glfwGetEGLDisplay();
QOpenGLContext *glfwQtContext = QNativeInterface::QEGLContext::fromNative(eglContext, eGLDisplay);
glfwQtContext->create();
if(!glfwQtContext){
std::cout << "[ERROR] Failded to create QOpenGLContext from glfw context !!" << std::endl;
exit(EXIT_FAILURE);
}else{
std::cout << "[SUCCESS] Successfull create QOpenGLContext from glfw context !!" << std::endl;
}
return 0;
}
Additionally, I tried doing something similar with GLX, and it seems that the context is created successfully—the program doesn't crash, though I haven't tried rendering yet, as I am much more interested in the EGL version.
#include <QGuiApplication>
#include <QCoreApplication>
#include <QOpenGLContext>
#include <QOffscreenSurface>
#define GLFW_EXPOSE_NATIVE_GLX
#include <GLFW/glfw3.h>
#include <GLFW/glfw3native.h>
#include <iostream>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
if(!glfwInit()){
std::cerr << "Failed initialize glfw";
exit(1);
}
glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_NATIVE_CONTEXT_API);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_ANY_PROFILE, GLFW_OPENGL_CORE_PROFILE);
GLFWwindow* window = glfwCreateWindow(800, 600, "Qml in GLFW window", nullptr, nullptr);
if(!window){
std::cout << "Wndow creation failed!";
exit(EXIT_FAILURE);
}else{
std::cout << "Sucessful window creation!" << std::endl;
}
glfwMakeContextCurrent(window);
GLXContext glxContext = glfwGetGLXContext(window);
QOpenGLContext *glfwQtContext = QNativeInterface::QGLXContext::fromNative(glxContext);
glfwQtContext->create();
if(!glfwQtContext){
std::cout << "[ERROR] Failded to create QOpenGLContext from glfw context !!" << std::endl;
exit(EXIT_FAILURE);
}else{
std::cout << "[SUCCESS] Successfull create QOpenGLContext from glfw context !!" << std::endl;
}
QOffscreenSurface surface;
glfwQtContext->makeCurrent(&surface);
return 0;
}
https://redd.it/1u38baj
@qt_reddit
I wanted to embed a QML scene into a GLFW window using QQuickRenderControl. From what I can see, one of the first steps is to get the OpenGL context from GLFW, and this is where I run into an issue. My code crashes on the line: QOpenGLContext \*glfwQtContext = QNativeInterface::QEGLContext::fromNative(eglContext, eGLDisplay);. Am I doing something wrong? Configuration: Qt 6.9, Ubuntu 24.04 Wayland, GLFW 3.4.
#include <QGuiApplication>
#include <QCoreApplication>
#include <QOpenGLContext>
#include <QOffscreenSurface>
//#define GLFW_EXPOSE_NATIVE_WAYLAND
#define GLFW_EXPOSE_NATIVE_EGL
#include <GLFW/glfw3.h>
#include <GLFW/glfw3native.h>
#include <iostream>
int main(int argc, char *argv[])
{
//qputenv("QT_QPA_PLATFORM","eglfs");
qputenv("QT_QPA_PLATFORM","wayland");
QGuiApplication app(argc, argv);
if(!glfwInit()){
std::cerr << "Failed initialize glfw";
exit(1);
}
glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_NATIVE_CONTEXT_API);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_ANY_PROFILE, GLFW_OPENGL_CORE_PROFILE);
GLFWwindow* window = glfwCreateWindow(800, 600, "Qml in GLFW window", nullptr, nullptr);
if(!window){
std::cout << "Wndow creation failed!";
exit(EXIT_FAILURE);
}else{
std::cout << "Sucessful window creation!" << std::endl;
}
glfwMakeContextCurrent(window);
EGLContext eglContext = glfwGetEGLContext(window);
EGLDisplay eGLDisplay = glfwGetEGLDisplay();
QOpenGLContext *glfwQtContext = QNativeInterface::QEGLContext::fromNative(eglContext, eGLDisplay);
glfwQtContext->create();
if(!glfwQtContext){
std::cout << "[ERROR] Failded to create QOpenGLContext from glfw context !!" << std::endl;
exit(EXIT_FAILURE);
}else{
std::cout << "[SUCCESS] Successfull create QOpenGLContext from glfw context !!" << std::endl;
}
return 0;
}
Additionally, I tried doing something similar with GLX, and it seems that the context is created successfully—the program doesn't crash, though I haven't tried rendering yet, as I am much more interested in the EGL version.
#include <QGuiApplication>
#include <QCoreApplication>
#include <QOpenGLContext>
#include <QOffscreenSurface>
#define GLFW_EXPOSE_NATIVE_GLX
#include <GLFW/glfw3.h>
#include <GLFW/glfw3native.h>
#include <iostream>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
if(!glfwInit()){
std::cerr << "Failed initialize glfw";
exit(1);
}
glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_NATIVE_CONTEXT_API);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_ANY_PROFILE, GLFW_OPENGL_CORE_PROFILE);
GLFWwindow* window = glfwCreateWindow(800, 600, "Qml in GLFW window", nullptr, nullptr);
if(!window){
std::cout << "Wndow creation failed!";
exit(EXIT_FAILURE);
}else{
std::cout << "Sucessful window creation!" << std::endl;
}
glfwMakeContextCurrent(window);
GLXContext glxContext = glfwGetGLXContext(window);
QOpenGLContext *glfwQtContext = QNativeInterface::QGLXContext::fromNative(glxContext);
glfwQtContext->create();
if(!glfwQtContext){
std::cout << "[ERROR] Failded to create QOpenGLContext from glfw context !!" << std::endl;
exit(EXIT_FAILURE);
}else{
std::cout << "[SUCCESS] Successfull create QOpenGLContext from glfw context !!" << std::endl;
}
QOffscreenSurface surface;
glfwQtContext->makeCurrent(&surface);
return 0;
}
https://redd.it/1u38baj
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Projects With Great Plugin Architecture
Hello,
I have some decent experience with widgets but have been opening up to the idea of a large project with a qml front end and c++ handling most of the functionality.
One of the ideas I would like to explore while still deciding on the overall structure is plugin support, either giving users a python interface (similar to blender) or entirely in c++ using plugin interfaces.
Are there any projects that do either or both of these things well in your opinion? I would love to take a look and observe what’s been tried, if users like it (or if there are tons of issues entries for them lol), and what might work best for my target application.
I’m curious to see how these interfaces split up responsibilities, what needs to be done for qml (say if a user wants their plugin to have a menu/action), and how to interact with the application’s data manager (this in particular seems straightforward to me, so that must mean it’s probably not).
https://redd.it/1u3axlz
@qt_reddit
Hello,
I have some decent experience with widgets but have been opening up to the idea of a large project with a qml front end and c++ handling most of the functionality.
One of the ideas I would like to explore while still deciding on the overall structure is plugin support, either giving users a python interface (similar to blender) or entirely in c++ using plugin interfaces.
Are there any projects that do either or both of these things well in your opinion? I would love to take a look and observe what’s been tried, if users like it (or if there are tons of issues entries for them lol), and what might work best for my target application.
I’m curious to see how these interfaces split up responsibilities, what needs to be done for qml (say if a user wants their plugin to have a menu/action), and how to interact with the application’s data manager (this in particular seems straightforward to me, so that must mean it’s probably not).
https://redd.it/1u3axlz
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Making QT work in my docker container
Heyaa, im working on a small project. Which uses the Pygame library and utilizes QT to basically have a transparent background. Point is when I tried the project on my other laptop which is more higher end(Nvidia GPU there) I got AVX2 error. Tinkered around and didnt really got far, so I thought hey I have a "It works on my machine" moment so I thought how about I utilize docker. Im using the Pyside6 library for QT. From what I know its a cli program so no graphical passthrough so I thought oke how about I somehow passthrough the screen info which is all I really needed, but that is a GUI app so yeaah. As you see im quite the noob here. Maybe its more of a Docker problem? But since I am using QT I thought it would be nice asking here first.
in the Dockerfile I wrote this:
```Docker
FROM python:3.13-slim
WORKDIR /src
RUN apt-get update && \\
apt-get install -y -qq \\
libsdl2-dev \\
python3-xlib \\
libx11-dev \\
libxrandr-dev \\
libxkbcommon-x11-0 \\
libxcb-cursor0 \\
libxcb-xinerama0 \\
libxcb-icccm4 \\
libxcb-image0 \\
libxcb-keysyms1 \\
libxcb-randr0 \\
libxcb-render-util0 \\
libxcb-util1 \\
libxcb-xfixes0 \\
libxcb-shape0 \\
libfontconfig1 \\
&& rm -rf /var/lib/apt/lists/*
ENV QT_QPA_PLATFORM=xcb
COPY requirements.txt .
RUN python -m venv .venv && \\
.venv/bin/pip install --upgrade pip && \\
.venv/bin/pip install -r requirements.txt
COPY src .
CMD [".venv/bin/python", "main.py"\]
```
running this didnt really do it so I thought writing a docker compose might do the job?
```yml
services:
deskmate:
image: deskmate:latest
build:
context: src
dockerfile: Dockerfile
environment:
\- PYGAME_DETECT_AVX2=1
\- DISPLAY=${DISPLAY:-:0}
\- QT_QPA_PLATFORM=xcb
\- QT_X11_NO_MITSHM=1
\- QT_DEBUG_PLUGINS=1
\- XDG_RUNTIME_DIR=/tmp/runtime-root
volumes:
\- /tmp/.X11-unix:/tmp/.X11-unix:rw
cap_add:
\- SYS_ADMIN
devices:
\- /dev/dri:/dev/dri
```
Im on OpenSUSE Tumbleweed where I work on this but the python container utilizes debian as you might see
https://redd.it/1u3lp06
@qt_reddit
Heyaa, im working on a small project. Which uses the Pygame library and utilizes QT to basically have a transparent background. Point is when I tried the project on my other laptop which is more higher end(Nvidia GPU there) I got AVX2 error. Tinkered around and didnt really got far, so I thought hey I have a "It works on my machine" moment so I thought how about I utilize docker. Im using the Pyside6 library for QT. From what I know its a cli program so no graphical passthrough so I thought oke how about I somehow passthrough the screen info which is all I really needed, but that is a GUI app so yeaah. As you see im quite the noob here. Maybe its more of a Docker problem? But since I am using QT I thought it would be nice asking here first.
in the Dockerfile I wrote this:
```Docker
FROM python:3.13-slim
WORKDIR /src
RUN apt-get update && \\
apt-get install -y -qq \\
libsdl2-dev \\
python3-xlib \\
libx11-dev \\
libxrandr-dev \\
libxkbcommon-x11-0 \\
libxcb-cursor0 \\
libxcb-xinerama0 \\
libxcb-icccm4 \\
libxcb-image0 \\
libxcb-keysyms1 \\
libxcb-randr0 \\
libxcb-render-util0 \\
libxcb-util1 \\
libxcb-xfixes0 \\
libxcb-shape0 \\
libfontconfig1 \\
&& rm -rf /var/lib/apt/lists/*
ENV QT_QPA_PLATFORM=xcb
COPY requirements.txt .
RUN python -m venv .venv && \\
.venv/bin/pip install --upgrade pip && \\
.venv/bin/pip install -r requirements.txt
COPY src .
CMD [".venv/bin/python", "main.py"\]
```
running this didnt really do it so I thought writing a docker compose might do the job?
```yml
services:
deskmate:
image: deskmate:latest
build:
context: src
dockerfile: Dockerfile
environment:
\- PYGAME_DETECT_AVX2=1
\- DISPLAY=${DISPLAY:-:0}
\- QT_QPA_PLATFORM=xcb
\- QT_X11_NO_MITSHM=1
\- QT_DEBUG_PLUGINS=1
\- XDG_RUNTIME_DIR=/tmp/runtime-root
volumes:
\- /tmp/.X11-unix:/tmp/.X11-unix:rw
cap_add:
\- SYS_ADMIN
devices:
\- /dev/dri:/dev/dri
```
Im on OpenSUSE Tumbleweed where I work on this but the python container utilizes debian as you might see
https://redd.it/1u3lp06
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Why is it not removing the appropriate time from the list
i am using PyQt and I have a list that sorts the time according to the 24 hour time
I do not know why it stops removing at a certain point. I believe it has to do with my remove_time(self) method but I am unsure
can someone give me advice based on this issue on what I can do
I have attached the source code link so you can get an idea of what the code looks like
source code
Honestly I am aware the code looks sloppy but I am just going with it.
Look at problem here
https://redd.it/1u7vmi5
@qt_reddit
i am using PyQt and I have a list that sorts the time according to the 24 hour time
I do not know why it stops removing at a certain point. I believe it has to do with my remove_time(self) method but I am unsure
can someone give me advice based on this issue on what I can do
I have attached the source code link so you can get an idea of what the code looks like
source code
Honestly I am aware the code looks sloppy but I am just going with it.
Look at problem here
https://redd.it/1u7vmi5
@qt_reddit
GitHub
30-Day-Challenge/Alarm/main.py at main · mikkimat81539/30-Day-Challenge
This repo consist of projects I did over 30 days. Contribute to mikkimat81539/30-Day-Challenge development by creating an account on GitHub.
Zenkai: a fast and customizable app launcher written in Zig + Qt
/r/Zig/comments/1u838md/zenkai_a_fast_and_customizable_app_launcher/
https://redd.it/1u84s75
@qt_reddit
/r/Zig/comments/1u838md/zenkai_a_fast_and_customizable_app_launcher/
https://redd.it/1u84s75
@qt_reddit
Reddit
From the QtFramework community on Reddit: Zenkai: a fast and customizable app launcher written in Zig + Qt
Posted by WatcherOfHosts - 1 vote and 0 comments
Two years
Hello!
For the past two years, I've been interested in Linux desktop environments and desktop shell development. I really enjoyed experimenting with Hyprland, customizing my setup, exploring source code, writing small plugins, and learning how everything works under the hood.
Then QuickShell came along. Since it seemed to be used in almost every modern desktop setup I saw, I initially thought that Material You 3 was somehow built directly into QuickShell itself. However, after looking into it more closely, I realized that wasn't the case.
I started exploring the source code of projects like End4 and Caelestia, and that led me to a question: how did they manage to customize and style Qt Quick Controls so extensively?
My experience with Qt is fairly limited. Most of my previous work was with Qt Widgets, so the Qt Quick ecosystem is still quite new to me.
I'd really like to understand how these custom styles and themes are created for Qt Quick Controls. In particular, I'm interested in learning how to implement or port Material You 3 components and design principles to Qt Quick.
I'd greatly appreciate any explanations, advice, or resources on this topic.
Thank you very much!
https://redd.it/1u8kofs
@qt_reddit
Hello!
For the past two years, I've been interested in Linux desktop environments and desktop shell development. I really enjoyed experimenting with Hyprland, customizing my setup, exploring source code, writing small plugins, and learning how everything works under the hood.
Then QuickShell came along. Since it seemed to be used in almost every modern desktop setup I saw, I initially thought that Material You 3 was somehow built directly into QuickShell itself. However, after looking into it more closely, I realized that wasn't the case.
I started exploring the source code of projects like End4 and Caelestia, and that led me to a question: how did they manage to customize and style Qt Quick Controls so extensively?
My experience with Qt is fairly limited. Most of my previous work was with Qt Widgets, so the Qt Quick ecosystem is still quite new to me.
I'd really like to understand how these custom styles and themes are created for Qt Quick Controls. In particular, I'm interested in learning how to implement or port Material You 3 components and design principles to Qt Quick.
I'd greatly appreciate any explanations, advice, or resources on this topic.
Thank you very much!
https://redd.it/1u8kofs
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Can viMarkdown be built on Linux?
Recently, I've been developing viMarkdown, which is a Markdown editor powered by Qt6.
viMarkdown screnn shot
Unfortunately, I don't currently have access to a Linux environment. Could someone try building viMarkdown with CMake and QtCreator and let me know whether it builds successfully?
viMarkdown: https://github.com/vivisuke/viMarkdown
https://redd.it/1u8qb3o
@qt_reddit
Recently, I've been developing viMarkdown, which is a Markdown editor powered by Qt6.
viMarkdown screnn shot
Unfortunately, I don't currently have access to a Linux environment. Could someone try building viMarkdown with CMake and QtCreator and let me know whether it builds successfully?
viMarkdown: https://github.com/vivisuke/viMarkdown
https://redd.it/1u8qb3o
@qt_reddit