QT UI Design Responsive without empty when we change the display resolution
Not able to auto adjust screen on different size screen resolution . Is there any way to achieve the responsive UI contents ??
Right side and bottom side space is keep on increasing when we change the resolution but UI have to resize and fit it into different screen resolution
https://redd.it/18y4igs
@qt_reddit
Not able to auto adjust screen on different size screen resolution . Is there any way to achieve the responsive UI contents ??
Right side and bottom side space is keep on increasing when we change the resolution but UI have to resize and fit it into different screen resolution
https://redd.it/18y4igs
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
how to compile an old qt4 project with GitHub actions using windows?
I'm extremely sorry if the question sounds dumb, but i really need help with this and there is no answer online about that i can find, i've barely managed to compile my project on ubuntu
https://redd.it/1acxxv8
@qt_reddit
I'm extremely sorry if the question sounds dumb, but i really need help with this and there is no answer online about that i can find, i've barely managed to compile my project on ubuntu
https://redd.it/1acxxv8
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Google API in QML
How do I integrate Google map api into QML, I am having hard time getting the api key to give out the map inside my rectangle. It doesn't even show up. There will be different errors when I try diffferent methods. Can somebody help with this.
My intention is to simply, show the google map inside a rectangle with my current location and nothing more.
https://redd.it/1ac6e3t
@qt_reddit
How do I integrate Google map api into QML, I am having hard time getting the api key to give out the map inside my rectangle. It doesn't even show up. There will be different errors when I try diffferent methods. Can somebody help with this.
My intention is to simply, show the google map inside a rectangle with my current location and nothing more.
https://redd.it/1ac6e3t
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Qt Creator "can't find any valid Kit".. except, there is a kit?
I was just about to get started with my first project on Qt Creator when I got the error stated in the title.
I installed Qt Creator 12.0.1 from the online installer/open source installer. I'm on Qt 6.6.1, PySide6 and Windows 11. I created the project using the Qt Quick project with Python option.
I checked and there is actually a kit getting auto detected. The correct version of Qt is also selected.
I honestly don't know what to do anymore. I uninstalled and reinstalled Qt Creator but that didn't do it either. I can provide screenshots and more information if needed.
https://redd.it/1abfsq6
@qt_reddit
I was just about to get started with my first project on Qt Creator when I got the error stated in the title.
I installed Qt Creator 12.0.1 from the online installer/open source installer. I'm on Qt 6.6.1, PySide6 and Windows 11. I created the project using the Qt Quick project with Python option.
I checked and there is actually a kit getting auto detected. The correct version of Qt is also selected.
I honestly don't know what to do anymore. I uninstalled and reinstalled Qt Creator but that didn't do it either. I can provide screenshots and more information if needed.
https://redd.it/1abfsq6
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
I made a simple tetris clone using the QT Framework
Much of the design was inspired by FamTrinli on YouTube.
​
https://github.com/3r1cTEA/QT-Tetris/tree/main
​
https://redd.it/19fi1jc
@qt_reddit
Much of the design was inspired by FamTrinli on YouTube.
​
https://github.com/3r1cTEA/QT-Tetris/tree/main
​
https://redd.it/19fi1jc
@qt_reddit
GitHub
GitHub - 3r1cTEA/QT-Tetris
Contribute to 3r1cTEA/QT-Tetris development by creating an account on GitHub.
Using custom fonts
Is it possible to change the QLabel font using the style sheet, but without installing the font on the computer, but using Res.qrc? C++/CMake
https://redd.it/19ern53
@qt_reddit
Is it possible to change the QLabel font using the style sheet, but without installing the font on the computer, but using Res.qrc? C++/CMake
https://redd.it/19ern53
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
How to set value to model property in Qt Quick QComboBox in C++ during run-time from HTTP response
I want to populate the list of Dropdown box (QComboBox) from the Http response during run-time. Most of the internet resources suggests to use setInitialProperties() method in main() method.
This is my attempt: I have created my own model by sub-classing QAbstractListModel and I believe I've implemented all the required methods correctly. And then I set the model to the QComboBox QObject using setProperty() method.
class DataObject
{
private:
QString mtext, mvalue;
public:
DataObject(QString text, QString value);
const QString& getText() const;
const QString& getValue() const;
};
​
class DataObjectModel : public QAbstractListModel
{
QOBJECT
public:
explicit DataObjectModel(QObject *parent = nullptr);
// Basic functionality:
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
QHash<int, QByteArray> roleNames() const;
enum DataObjectRoles {
TextRole = Qt::UserRole + 1,
ValueRole
};
QINVOKABLE void push(const QString &text, const QString &value);
QINVOKABLE void print();
private:
QList<DataObject> mdataObjects;
};
During run-time, a slot is invoked after Http response is received and data is parsed and added to User-defined model. Then I'm trying to set that user-defined model to QComboBox like this :
DataObjectModel model;
foreach(...){
...
model.push(text,value);
}
QObject snapshotsDropdown = screen01RootQObject->findChild<QObject>("snapshotDropdown",Qt::FindChildrenRecursively);
if(snapshotsDropdown != nullptr){
snapshotsDropdown->setProperty("model", QVariant::fromValue(&model));
}
Problem : But the QComboBox shows empty list to select from. The drop-down list is not updated.
https://redd.it/19eo49s
@qt_reddit
I want to populate the list of Dropdown box (QComboBox) from the Http response during run-time. Most of the internet resources suggests to use setInitialProperties() method in main() method.
This is my attempt: I have created my own model by sub-classing QAbstractListModel and I believe I've implemented all the required methods correctly. And then I set the model to the QComboBox QObject using setProperty() method.
class DataObject
{
private:
QString mtext, mvalue;
public:
DataObject(QString text, QString value);
const QString& getText() const;
const QString& getValue() const;
};
​
class DataObjectModel : public QAbstractListModel
{
QOBJECT
public:
explicit DataObjectModel(QObject *parent = nullptr);
// Basic functionality:
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
QHash<int, QByteArray> roleNames() const;
enum DataObjectRoles {
TextRole = Qt::UserRole + 1,
ValueRole
};
QINVOKABLE void push(const QString &text, const QString &value);
QINVOKABLE void print();
private:
QList<DataObject> mdataObjects;
};
During run-time, a slot is invoked after Http response is received and data is parsed and added to User-defined model. Then I'm trying to set that user-defined model to QComboBox like this :
DataObjectModel model;
foreach(...){
...
model.push(text,value);
}
QObject snapshotsDropdown = screen01RootQObject->findChild<QObject>("snapshotDropdown",Qt::FindChildrenRecursively);
if(snapshotsDropdown != nullptr){
snapshotsDropdown->setProperty("model", QVariant::fromValue(&model));
}
Problem : But the QComboBox shows empty list to select from. The drop-down list is not updated.
https://redd.it/19eo49s
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Looking at CMakeLists for BasicDrawing Example
Folks:
I see the followinig in the CMakeLists.txt for the BasicDrawing Example:
settargetproperties(basicdrawing PROPERTIES WIN32EXECUTABLE TRUE MACOSXBUNDLE TRUE )
Does this mean that I cannot use this example on Linux?
Thank You
Mark Allyn
https://redd.it/19enbxa
@qt_reddit
Folks:
I see the followinig in the CMakeLists.txt for the BasicDrawing Example:
settargetproperties(basicdrawing PROPERTIES WIN32EXECUTABLE TRUE MACOSXBUNDLE TRUE )
Does this mean that I cannot use this example on Linux?
Thank You
Mark Allyn
https://redd.it/19enbxa
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Are these error messages when running qtcreator and qtdesignstudio normal for linux?
I performed qt web installer on Linux; started both creator and designstudio and I am getting these warnings/errors although tools appear to be running. Can I ignore these
===========================================================
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
​
Please note that I am running wayland.
​
Environment variables set up prior to running creator and designstudio:
​
PATH="$PATH:/opt/Qt/6.6.1/gcc_64/bin:/opt/Qt/Tools/QtDesignStudio/bin:/opt/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/bin:/opt/Qt/Tools/QtCreator/lib/Qt/bin:/opt/Qt/Tools/QtCreator/bin:/opt/Qt/Tools/QtCreator/libexec/qtcreator/clang/bin:/opt/Qt/Tools/CMake/bin"
​
export QT_QPA_PLATFORM=wayland
​
​
Running qtcreator error messages:
​
aallyn@maallyn-geekcom:\~/scope-attempt/qt$ qtcreator
qt.core.qobject.connect: QObject::connect: Cannot connect (nullptr)::usageStatisticsNotifier(QString) to UsageStatistic::Internal::QmlDesignerUsageEventSource::handleUsageStatisticsNotifier(QString)
qt.core.qobject.connect: QObject::connect: Cannot connect (nullptr)::usageStatisticsUsageTimer(QString,int) to UsageStatistic::Internal::QmlDesignerUsageEventSource::handleUsageStatisticsUsageTimer(QString,int)
kf.syntaxhighlighting: Unable to resolve external include rule for definition "reStructuredText" in "CMake"
​
​
Running qtdesignstudio error messages:
​
qt.qml.typeregistration: Invalid QML element name "DataType"; value type names should begin with a lowercase letter
SOFT ASSERT [08:19:58.574\]: "KitManager::isLoaded()" in /home/qt/work/build/qt-creator/src/plugins/projectexplorer/kitmanager.cpp:578
SOFT ASSERT [08:20:04.944\]: "false && "__cplusplus is not predefined, assuming latest C++ we support."" in /home/qt/work/build/qt-creator/src/plugins/projectexplorer/toolchain.cpp:451
kf.syntaxhighlighting: Unable to resolve external include rule for definition "reStructuredText" in "CMake"
PropertyEditor: invalid node for setup
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
"images/resourceLoader16.png" does not exist
"images/resourceLoader.png" does not exist
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
qtc.imagecontainer.debug: void QmlDesigner::readSharedMemory(qint32, QmlDesigner::ImageContainer&) Not able to create image: 0 0 0
qtc.imagecontainer.debug: void QmlDesigner::readSharedMemory(qint32, QmlDesigner::ImageContainer&) Not able to create image: 0 0 0
qtc.imagecontainer.debug: void QmlDesigner::readSharedMemory(qint32, QmlDesigner::ImageContainer&) Not able to create image: 0 0 0
qtc.imagecontainer.debug: void QmlDesigner::readSharedMemory(qint32, QmlDesigner::ImageContainer&) Not able to create image: 0 0 0
qtc.imagecontainer.debug: void QmlDesigner::readSharedMemory(qint32, QmlDesigner::ImageContainer&) Not able to create image: 0 0 0
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
QFileSystemWatcher::removePaths: list is empty
QBasicTimer::start: QBasicTimer can only be used with threads started with QThread
QBasicTimer::start: QBasicTimer can only be used with threads started with QThread
QBasicTimer::start: QBasicTimer can only be used with threads started with QThread
QBasicTimer::start: QBasicTimer can only be used with threads started with QThread
QBasicTimer::start: QBasicTimer can only be used with threads started with QThread
​
=========================================================
Thank you
Mark Allyn
https://redd.it/19elw9x
@qt_reddit
I performed qt web installer on Linux; started both creator and designstudio and I am getting these warnings/errors although tools appear to be running. Can I ignore these
===========================================================
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
​
Please note that I am running wayland.
​
Environment variables set up prior to running creator and designstudio:
​
PATH="$PATH:/opt/Qt/6.6.1/gcc_64/bin:/opt/Qt/Tools/QtDesignStudio/bin:/opt/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/bin:/opt/Qt/Tools/QtCreator/lib/Qt/bin:/opt/Qt/Tools/QtCreator/bin:/opt/Qt/Tools/QtCreator/libexec/qtcreator/clang/bin:/opt/Qt/Tools/CMake/bin"
​
export QT_QPA_PLATFORM=wayland
​
​
Running qtcreator error messages:
​
aallyn@maallyn-geekcom:\~/scope-attempt/qt$ qtcreator
qt.core.qobject.connect: QObject::connect: Cannot connect (nullptr)::usageStatisticsNotifier(QString) to UsageStatistic::Internal::QmlDesignerUsageEventSource::handleUsageStatisticsNotifier(QString)
qt.core.qobject.connect: QObject::connect: Cannot connect (nullptr)::usageStatisticsUsageTimer(QString,int) to UsageStatistic::Internal::QmlDesignerUsageEventSource::handleUsageStatisticsUsageTimer(QString,int)
kf.syntaxhighlighting: Unable to resolve external include rule for definition "reStructuredText" in "CMake"
​
​
Running qtdesignstudio error messages:
​
qt.qml.typeregistration: Invalid QML element name "DataType"; value type names should begin with a lowercase letter
SOFT ASSERT [08:19:58.574\]: "KitManager::isLoaded()" in /home/qt/work/build/qt-creator/src/plugins/projectexplorer/kitmanager.cpp:578
SOFT ASSERT [08:20:04.944\]: "false && "__cplusplus is not predefined, assuming latest C++ we support."" in /home/qt/work/build/qt-creator/src/plugins/projectexplorer/toolchain.cpp:451
kf.syntaxhighlighting: Unable to resolve external include rule for definition "reStructuredText" in "CMake"
PropertyEditor: invalid node for setup
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
"images/resourceLoader16.png" does not exist
"images/resourceLoader.png" does not exist
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
qtc.imagecontainer.debug: void QmlDesigner::readSharedMemory(qint32, QmlDesigner::ImageContainer&) Not able to create image: 0 0 0
qtc.imagecontainer.debug: void QmlDesigner::readSharedMemory(qint32, QmlDesigner::ImageContainer&) Not able to create image: 0 0 0
qtc.imagecontainer.debug: void QmlDesigner::readSharedMemory(qint32, QmlDesigner::ImageContainer&) Not able to create image: 0 0 0
qtc.imagecontainer.debug: void QmlDesigner::readSharedMemory(qint32, QmlDesigner::ImageContainer&) Not able to create image: 0 0 0
qtc.imagecontainer.debug: void QmlDesigner::readSharedMemory(qint32, QmlDesigner::ImageContainer&) Not able to create image: 0 0 0
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
QFileSystemWatcher::removePaths: list is empty
QBasicTimer::start: QBasicTimer can only be used with threads started with QThread
QBasicTimer::start: QBasicTimer can only be used with threads started with QThread
QBasicTimer::start: QBasicTimer can only be used with threads started with QThread
QBasicTimer::start: QBasicTimer can only be used with threads started with QThread
QBasicTimer::start: QBasicTimer can only be used with threads started with QThread
​
=========================================================
Thank you
Mark Allyn
https://redd.it/19elw9x
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Creator + Docker + Resources = ๐ฃ
Has anyone tried to use a (working) CI docker container as build device for .pro projects?
As of QtCreator 12 it mostly works, but royally screws up file and resource paths, thus making development almost impossible, since cross-references and assets are not readily available as they do on a native environment.
Whatโs weird is that compiling works flawlessly through creator.
Any help?
https://redd.it/19egrpr
@qt_reddit
Has anyone tried to use a (working) CI docker container as build device for .pro projects?
As of QtCreator 12 it mostly works, but royally screws up file and resource paths, thus making development almost impossible, since cross-references and assets are not readily available as they do on a native environment.
Whatโs weird is that compiling works flawlessly through creator.
Any help?
https://redd.it/19egrpr
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Is there any verification of qmlc files?
Does anybody know if the qmlc files (qml cache) are verified in any way to protect from tampering? Would it be possible for a malicious attacker to replace/modify these files?
https://redd.it/19ecflv
@qt_reddit
Does anybody know if the qmlc files (qml cache) are verified in any way to protect from tampering? Would it be possible for a malicious attacker to replace/modify these files?
https://redd.it/19ecflv
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
pyside5 Qt for Python in depth tutorial - Qt Group
https://www.youtube.com/watch?v=wOMlDutOWXI
https://redd.it/1ady1r7
@qt_reddit
https://www.youtube.com/watch?v=wOMlDutOWXI
https://redd.it/1ady1r7
@qt_reddit
YouTube
Python and C++ interoperability with Shiboken {On-demand webinar}
C++ and Python are two fantastic programming languages that bring to the table a considerable amount of features which made them the number one option for different tasks. How we can bring the best of two worlds together? With Shiboken.
Shiboken is the bindingโฆ
Shiboken is the bindingโฆ
Memory address of a Singleton instance is different when printed in C++ debug log and QML console log
Let's say I have created a singleton class in C++ to be used as QML type.
I tried to print the address of the singleton instance from C++ and from QML
qDebug() << this; // SingletonClass(0x2b0d98915c0)
console.log(SingletonClass); // qml: SingletonClass(0x2b0d41b7990)
What are the possible mistakes that could lead to this? Isn't it supposed to be the same address when printed?
https://redd.it/1ae3w6k
@qt_reddit
Let's say I have created a singleton class in C++ to be used as QML type.
I tried to print the address of the singleton instance from C++ and from QML
qDebug() << this; // SingletonClass(0x2b0d98915c0)
console.log(SingletonClass); // qml: SingletonClass(0x2b0d41b7990)
What are the possible mistakes that could lead to this? Isn't it supposed to be the same address when printed?
https://redd.it/1ae3w6k
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
rhombus at end of each file
I am using qt creator12.01 in windows 11. At the end of each file, there is a rhombus mark.
Is there a way to not show this mark?
​
https://preview.redd.it/4or9fc3akhfc1.png?width=789&format=png&auto=webp&s=37a575e8703bfa9cca9e4fc430b76a04c8b6f9f8
https://redd.it/1aed74x
@qt_reddit
I am using qt creator12.01 in windows 11. At the end of each file, there is a rhombus mark.
Is there a way to not show this mark?
​
https://preview.redd.it/4or9fc3akhfc1.png?width=789&format=png&auto=webp&s=37a575e8703bfa9cca9e4fc430b76a04c8b6f9f8
https://redd.it/1aed74x
@qt_reddit
Qt Creator 12.0.1 (Community) keeps crashing in Design mode
I can't even specify what I do to make it crash. It's like I'm playing russian roulette with Qt Creator. Every click is risky and it could crash at any point. I noticed it crashing more frequently when I go from an objects attributes tab to the code tab. My PC should be able to handle Qt Creator. It has 16GB of RAM and a decent CPU. My graphics driver is also up to date. I'm on Windows 11, installed Qt through the Online/Open Source Installer. All I could find about this problem online is that I need to disable the UpdateInfo Plugin, which I did but it's still crashing.
​
Any ideas before I go completely insane? I've been at war with this stupid framework for over a week now and I'm considering using something else to create my GUI because this is getting ridiculous.
https://redd.it/1aep18u
@qt_reddit
I can't even specify what I do to make it crash. It's like I'm playing russian roulette with Qt Creator. Every click is risky and it could crash at any point. I noticed it crashing more frequently when I go from an objects attributes tab to the code tab. My PC should be able to handle Qt Creator. It has 16GB of RAM and a decent CPU. My graphics driver is also up to date. I'm on Windows 11, installed Qt through the Online/Open Source Installer. All I could find about this problem online is that I need to disable the UpdateInfo Plugin, which I did but it's still crashing.
​
Any ideas before I go completely insane? I've been at war with this stupid framework for over a week now and I'm considering using something else to create my GUI because this is getting ridiculous.
https://redd.it/1aep18u
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Dowloading qt drivers for a flight software.
I have little to no knowledge when it comes to this stuff but I have been making a project that involves the use of ADSB data. The project is supposed to take the data it recieves from aircraft and display it on the software. The software I intend to use is called Stratofier. Well in the install portion of the software it says you need to have the qt drivers installed before the Stratofier software can be installed. I have a raspberry pi 4 and I have failed miserably at getting this to work. Any help would be appreciated.
https://redd.it/1aex8eb
@qt_reddit
I have little to no knowledge when it comes to this stuff but I have been making a project that involves the use of ADSB data. The project is supposed to take the data it recieves from aircraft and display it on the software. The software I intend to use is called Stratofier. Well in the install portion of the software it says you need to have the qt drivers installed before the Stratofier software can be installed. I have a raspberry pi 4 and I have failed miserably at getting this to work. Any help would be appreciated.
https://redd.it/1aex8eb
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
How to set QtWebEngine Content-Security-Policy (CSP) to default-src?
Hello, i have a qtwebengine view inside my app, and I'm having issues with apple music regarding the CPS, for some reason, it is set to
I don't want to use the
does anyone know how to do this?
https://redd.it/1aex59p
@qt_reddit
Hello, i have a qtwebengine view inside my app, and I'm having issues with apple music regarding the CPS, for some reason, it is set to
script-srchttps://music.apple.com/us/browse:143 Refused to execute inline script because it violates the following Content Security Policy directive:
"script-src 'self' https://*.apple.com blob: 'sha256- .... 'unsafe-eval'".
Either the 'unsafe-inline' keyword, a hash ....., or a nonce ('nonce-...') is required to enable inline execution.
I don't want to use the
--disable-web-security flag to disable CSP, i want to change it to default-srcdoes anyone know how to do this?
https://redd.it/1aex59p
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
License question
I am a PhD student who has been working on a hobby project for many years now.
Without much research, I developed a software on Windows Forms CLI C++. But, if you know you are on the wrong train, you get off at the next stop. ๐
I am still uncertain about what I want to do with the software, could go commercial, could go open-source... But before I start, wanted your help to clarify certain details. ๐
I designed electronics which is nearly open source with the instructions on it. And I wanted to design a UI as a companion for it. I hope to integrate cloud and AI to it, so there will be a cloud and closed source element to it for cyber-security, and for training of AI using user input.
And Qt licence says if you want to go commercial, make open devices, and also says make library modifiable.
1. Are any modifications known to cause serious issues? What is its use in the first place?
2. Is off-loaded computation for AI allowed under these terms?
3. What does open devices mean? How open? It is designed to be modifyable, but for quality only to a degree, and I am not sharing manufacturing data?
4. Using the GUI, I wish to export a binary file for compactness, and it likely will change over time, and would be easier to make it proprietary than to document it. Does that mean it isn't open enough?
5. Android, I believe doesn't work with dll and web deployment would probably have a similar issue, so these aren't allowed if it is free license then? (Is it fine for Windows, Linux and Osx?
6. Also, I am also hoping to make the qt made software free to use, and cloud based part charged. What happens if that section is free to download and use, yet happens to be a part of the revenue stream?
Looking forward to your reply. Thank you very much in advance. ๐๐
https://redd.it/1af5rru
@qt_reddit
I am a PhD student who has been working on a hobby project for many years now.
Without much research, I developed a software on Windows Forms CLI C++. But, if you know you are on the wrong train, you get off at the next stop. ๐
I am still uncertain about what I want to do with the software, could go commercial, could go open-source... But before I start, wanted your help to clarify certain details. ๐
I designed electronics which is nearly open source with the instructions on it. And I wanted to design a UI as a companion for it. I hope to integrate cloud and AI to it, so there will be a cloud and closed source element to it for cyber-security, and for training of AI using user input.
And Qt licence says if you want to go commercial, make open devices, and also says make library modifiable.
1. Are any modifications known to cause serious issues? What is its use in the first place?
2. Is off-loaded computation for AI allowed under these terms?
3. What does open devices mean? How open? It is designed to be modifyable, but for quality only to a degree, and I am not sharing manufacturing data?
4. Using the GUI, I wish to export a binary file for compactness, and it likely will change over time, and would be easier to make it proprietary than to document it. Does that mean it isn't open enough?
5. Android, I believe doesn't work with dll and web deployment would probably have a similar issue, so these aren't allowed if it is free license then? (Is it fine for Windows, Linux and Osx?
6. Also, I am also hoping to make the qt made software free to use, and cloud based part charged. What happens if that section is free to download and use, yet happens to be a part of the revenue stream?
Looking forward to your reply. Thank you very much in advance. ๐๐
https://redd.it/1af5rru
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Basic help with openGL versions
I'm experimenting with QT for the first time and wanting to do some basic openGL.
​
The examples,Cube and OpenGL window both compile fine, but I'm trying to update them to GL4.5 to experiment with instancing and compute shaders
​
In either one if I set GL version ( with e.g.format.setVersion(3,1);) to anything higher than 2.x, the programs still run but simply display nothing
Is there something fundamental in the shaders I need to change, or a way to debug the opengl and see why nothing is displaying?
Cant find any example QT code that uses instancing to compare.
​
​
https://redd.it/1ag7t3d
@qt_reddit
I'm experimenting with QT for the first time and wanting to do some basic openGL.
​
The examples,Cube and OpenGL window both compile fine, but I'm trying to update them to GL4.5 to experiment with instancing and compute shaders
​
In either one if I set GL version ( with e.g.format.setVersion(3,1);) to anything higher than 2.x, the programs still run but simply display nothing
Is there something fundamental in the shaders I need to change, or a way to debug the opengl and see why nothing is displaying?
Cant find any example QT code that uses instancing to compare.
​
​
https://redd.it/1ag7t3d
@qt_reddit
Reddit
From the QtFramework community on Reddit
Explore this post and more from the QtFramework community
Qt Stomp Library
Hello all, I created an open source library for clients communicating to servers through the Stomp protocol. Feel free to use it or share comments / ideal about it. https://github.com/xxxcucus/stomplib
Best wishes,
https://redd.it/1agi9dz
@qt_reddit
Hello all, I created an open source library for clients communicating to servers through the Stomp protocol. Feel free to use it or share comments / ideal about it. https://github.com/xxxcucus/stomplib
Best wishes,
https://redd.it/1agi9dz
@qt_reddit
GitHub
GitHub - xxxcucus/stomplib: Qt Library for the STOMP protocol
Qt Library for the STOMP protocol. Contribute to xxxcucus/stomplib development by creating an account on GitHub.
Need Help On Building Qt Quick/QML with Cmake
I am trying to build a C++ app using Qt Quick. However, while CMake generates build file successfully, I am having errors while building the app. This app actually nothing as of now, which means, it is just a way to build.
Here is my Top level CMake file
---
Here, I would Like to add that:
OS Environment: Windows 11
Qt version: 6.6.1
Compiler: g++ from mingw64 (MSYS2)
Command Line tool: Powershell
---
My Directory looks like this:
And I am trying to generate build files with these:
And after this when I try to build I get this error:
---
Note That
- Running
- I am only using C++ to build the app,
I am trying to build a C++ app using Qt Quick. However, while CMake generates build file successfully, I am having errors while building the app. This app actually nothing as of now, which means, it is just a way to build.
Here is my Top level CMake file
cmake_minimum_required(VERSION 3.28)
project(CGPA_Calculator VERSION 0.1 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_PREFIX_PATH "D:/Dev_Install/Qt/6.6.1/mingw_64" CACHE PATH "Qt6 install path")
set(Qt6_DIR "D:/Dev_Install/Qt/6.6.1/mingw_64/lib/cmake/Qt6" CACHE PATH "Qt6 cmake directory")
find_package(Qt6 6.1 REQUIRED COMPONENTS Quick)
qt_standard_project_setup()
add_subdirectory(src)
add_subdirectory(QML_Files)
qt_add_qml_module(app
URI Calc
VERSION 1.0
QML_FILES
QML_Files/Main.qml
QML_Files/Page1.qml
QML_Files/Body.qml
QML_Files/ContHead.qml
# SOURCES
#src/cgpa_calculator.cpp src/cgpa_calculator.h
)
set_target_properties(app PROPERTIES
WIN32_EXECUTABLE TRUE
)
target_link_libraries(app PRIVATE Qt6::Quick)
include(GNUInstallDirs)
install(TARGETS app
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
---
Here, I would Like to add that:
OS Environment: Windows 11
Qt version: 6.6.1
Compiler: g++ from mingw64 (MSYS2)
Command Line tool: Powershell
---
My Directory looks like this:
Directory: O:\CGPA Calculator
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 02/02/2024 04:45 PM QML_Files
d---- 02/02/2024 12:43 AM src
-a--- 02/02/2024 04:45 PM 1059 CMakeLists.txt
And I am trying to generate build files with these:
PS O:\CGPA Calculator> cmake -G "MinGW Makefiles" -S . -B ".\build"
-- The CXX compiler identification is GNU 13.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
CMake Warning (dev) at D:/Dev_Install/Qt/6.6.1/mingw_64/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2768 (message):
Qt policy QTP0001 is not set: ':/qt/qml/' is the default resource prefix
for QML modules. Check https://doc.qt.io/qt-6/qt-cmake-policy-qtp0001.html
for policy details. Use the qt_policy command to set the policy and
suppress this warning.
Call Stack (most recent call first):
D:/Dev_Install/Qt/6.6.1/mingw_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:468 (__qt_internal_setup_policy)
D:/Dev_Install/Qt/6.6.1/mingw_64/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:716 (qt6_add_qml_module)
CMakeLists.txt:17 (qt_add_qml_module)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done (2.7s)
-- Generating done (0.1s)
-- Build files have been written to: O:/CGPA Calculator/build
And after this when I try to build I get this error:
PS O:\CGPA Calculator> cmake --build .\build
[ 4%] Automatic QML type registration for target app
Error 5 while parsing O:/CGPA Calculator/build/src/meta_types/qt6app_metatypes.json: illegal value
mingw32-make[2]: *** [CMakeFiles\app_tooling.dir\build.make:135: src/app_qmltyperegistrations.cpp] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:444: CMakeFiles/app_tooling.dir/all] Error 2
mingw32-make: *** [Makefile:135: all] Error 2
---
Note That
- Running
qml .\QML_Files\Main.qml runs the file without any issue- I am only using C++ to build the app,