Skip to main content

Questions tagged [qt]

Qt is a cross-platform application development framework widely used for the development of GUI programs.

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 ...
mcmatt90's user avatar
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? ...
Narann's user avatar
  • 101
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 ...
19172281's user avatar
  • 133
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&...
Giovanni L's user avatar
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 ...
Anon's user avatar
  • 3,613
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 ...
FourtyTwo's user avatar
  • 119
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 ...
ManuelSchneid3r's user avatar
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 ...
Max13's user avatar
  • 159
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 ...
Have a nice day's user avatar
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 ...
Higor E.'s user avatar
  • 121
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 ...
stowaway's user avatar
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 ...
Turtle10000's user avatar
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 ...
Michał Walenciak's user avatar
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. ...
ArenaLor's user avatar
  • 129
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 ...
19172281's user avatar
  • 133

15 30 50 per page
1
2 3 4 5
8