Questions tagged [qt]
Qt is a cross-platform application development framework widely used for the development of GUI programs.
118
questions
0
votes
0
answers
47
views
Setting Dependency Design
Hello I'm currently designing an GUI application who's main job is to update and display settings and some other data. For context, I'm using QT framework. I'm starting to refactor the settings ...
0
votes
1
answer
43
views
Is it a good approach to encapsulate View and Model inside a dedicated Widget?
Lets say you have a ItemView and a ItemModel.
Would it make sense to have a ItemWidget encapsulating those two, so code using ItemWidget don’t have to deal with ItemView and a ItemModel specifics?
...
0
votes
0
answers
27
views
3 QAbstractListModels versus 1 QAbstractItemModel
This is a simplified representation of the existing data structure I have in my code (The actual data structure is composed of classes), the data of which I need to display and modify via multiple ...
1
vote
0
answers
205
views
Is it preferable to embed ".qm" translation files with Qt Resource System or bundling it with PyInstaller?
I'm learning PyInstaller for deploying Python applications, more specifically, applications developed with PyQt5. As far as I understand, it's possible to bundle application data (or "resources&...
0
votes
1
answer
114
views
What information should one infer from a class header that marks its constructor explicit?
If a class is written well, you should be able to gleam all relevant information about the class simply by looking at its header.
If one sees that the constructor is marked explicit:
What should one ...
0
votes
2
answers
315
views
Accessing Hardware-based resources from multiple worker threads
I have a technical application that interacts with different hardware components: measurement devices, sensors, custom hardware. These use dedicated interfaces like USB, serial ports, TCP/IP ...
0
votes
1
answer
229
views
Plugin system design core component access: Common practice?
I wonder how to design a good plugin architecture in C++/Qt. The main concern I have is about dependency injection vs globals when it comes to the core components. Plugins should have access to ...
0
votes
0
answers
30
views
User proof network app with distant database [duplicate]
I’m currently writing a software for my company (3rd world country), and I wanted it as simple as possible to install and maintain, so I started with Qt and no server app beside the database, (MariaDB ...
0
votes
1
answer
2k
views
Using the same function in two classes? [closed]
I have two classes for making pyqt5 windows. Inside class one I have a button with a function it is connected to.
Class One:
from PyQt5 import QtGui, QtWidgets, QtCore
from PyQt5.QtWidgets import ...
0
votes
1
answer
96
views
Designing a library API to allow for interactivity
The application I'm currently working on is deeply coupled to the UI framework in use (Qt at the moment). I would like to separate the UI-specific code from the rest as much as possible, with the goal ...
1
vote
3
answers
283
views
When is Model/View/Controller Too Much?
To preface, I work at a place that I feel misunderstands and overuses MVC, but I also recognize that maybe it's me who doesn't understand it.
I'm used the model/view exclusively within the context of ...
1
vote
2
answers
2k
views
Best way to access (grand grand) parent element in gui
I'm creating a multi window gui program, in c++ with Qt Widgets. I do have many custom gui elements, which usually are c++ classes inherited from QWidget or other Qt elements. When foo is the main ...
0
votes
1
answer
4k
views
fake filesystem for unit tests
I am writing an application in c++ and Qt5.
It would be very convenient for me to create a virtual file system so I can unit test code working on files.
I have found that in Qt4 there was a ...
2
votes
2
answers
743
views
Design tips for waiting for a user input while working on another thread
I am working on an application with multiple threads (using Qt, C++). One of this threads is designed to execute a batch of operations like reading/writing from/to files as well as creating new ones. ...
2
votes
2
answers
140
views
Processing user commands and parameters
I'm writing a GUI application which needs the facility for users to interact with the system and execute tasks via a sort of command line interface.
The user will type commands in a text box, with ...