qt

nextItemInFocusChain function not working in qml on mac?

家住魔仙堡 提交于 2021-02-11 12:07:06
问题 I have a form where i've done a custom field that only accepts the top, right and bottom arrows. But to accept the tab navigation i'm using the following chain of functions: nextItemInFocusChain().forceActiveFocus() The problem is that this is working on windows but not on mac ... I've a formulary to illustrate the problem where next to that "code text field" i have a comboBox where i want, that when the user clicks on tab in the "code text field" to navigate to. It seems that it only

nextItemInFocusChain function not working in qml on mac?

孤人 提交于 2021-02-11 12:02:23
问题 I have a form where i've done a custom field that only accepts the top, right and bottom arrows. But to accept the tab navigation i'm using the following chain of functions: nextItemInFocusChain().forceActiveFocus() The problem is that this is working on windows but not on mac ... I've a formulary to illustrate the problem where next to that "code text field" i have a comboBox where i want, that when the user clicks on tab in the "code text field" to navigate to. It seems that it only

How to create Subplot using QCharts?

﹥>﹥吖頭↗ 提交于 2021-02-11 09:45:31
问题 I want to create two subplots (like 2 rows), the first plot will show the line series graph based on Analog to Digital Converter counts stored in a text file and the second plot will show the line series graph based on Temperature values stored in a text file. I am able to plot the line series in the same plot, but I want to plot it in two separate subplots. #include <QApplication> #include <QMainWindow> #include <QFile> #include <QTextStream> #include <QDateTime> #include <QTime> #include

%1 is not a valid Win32 application

末鹿安然 提交于 2021-02-11 08:23:04
问题 I want to make a .dll in Qt, and to use generated .dll in a Java project in Eclipse. I've followed this tutorial to create a working dll. The full code that works is given below: jniProjectExample_JniExample.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class jniProjectExample_JniExample */ #ifndef _Included_jniProjectExample_JniExample #define _Included_jniProjectExample_JniExample #ifdef __cplusplus extern "C" { #endif /* * Class: jniProjectExample

%1 is not a valid Win32 application

て烟熏妆下的殇ゞ 提交于 2021-02-11 08:21:54
问题 I want to make a .dll in Qt, and to use generated .dll in a Java project in Eclipse. I've followed this tutorial to create a working dll. The full code that works is given below: jniProjectExample_JniExample.h /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class jniProjectExample_JniExample */ #ifndef _Included_jniProjectExample_JniExample #define _Included_jniProjectExample_JniExample #ifdef __cplusplus extern "C" { #endif /* * Class: jniProjectExample

Qt Logging tool multithreading, calling signal and slot with variable number of arguments form another thread, mixing C and C++

十年热恋 提交于 2021-02-11 08:08:09
问题 This is my Logging class: #include "log.h" #include "ui_log.h" #include <QDebug> #include <QMutex> bool Log::logOpen = false; Log::Log(QWidget *parent) : QDialog(parent), ui(new Ui::Log) { ui->setupUi(this); text = new QString; this->bar = this->ui->logText->verticalScrollBar(); connect(this, SIGNAL(call_write(char*)), this, SLOT(write(char*))); } Log::~Log() { delete ui; } void Log::on_buttonClose_clicked() { Log::logOpen = false; close(); } void Log::on_buttonClear_clicked() { this->text-

Qt Logging tool multithreading, calling signal and slot with variable number of arguments form another thread, mixing C and C++

此生再无相见时 提交于 2021-02-11 08:07:59
问题 This is my Logging class: #include "log.h" #include "ui_log.h" #include <QDebug> #include <QMutex> bool Log::logOpen = false; Log::Log(QWidget *parent) : QDialog(parent), ui(new Ui::Log) { ui->setupUi(this); text = new QString; this->bar = this->ui->logText->verticalScrollBar(); connect(this, SIGNAL(call_write(char*)), this, SLOT(write(char*))); } Log::~Log() { delete ui; } void Log::on_buttonClose_clicked() { Log::logOpen = false; close(); } void Log::on_buttonClear_clicked() { this->text-

Iteration of a QTreeWidget

限于喜欢 提交于 2021-02-11 06:20:32
问题 I have a QTreeWidget that I am using to represent a breakdown structure of data. Basically I plan on using my QTreeWidget in a way to track the population of certain demographics in cities. For example: Males 9,000 - New York 5,000 - D.C. 4,000 Females 10,000 - Nashville 3,000 - San Diego 7,000 Obviously this data is just for example. A few problems I am having with implementing this. I can't figure out how to iterate over the tree. So that every so often I can check if the data has changed.

Iteration of a QTreeWidget

…衆ロ難τιáo~ 提交于 2021-02-11 06:20:18
问题 I have a QTreeWidget that I am using to represent a breakdown structure of data. Basically I plan on using my QTreeWidget in a way to track the population of certain demographics in cities. For example: Males 9,000 - New York 5,000 - D.C. 4,000 Females 10,000 - Nashville 3,000 - San Diego 7,000 Obviously this data is just for example. A few problems I am having with implementing this. I can't figure out how to iterate over the tree. So that every so often I can check if the data has changed.

Deploy a Qt project on linux

柔情痞子 提交于 2021-02-11 06:17:42
问题 This may be a noob question, but I have been stuck trying to work out how to statically build my qt project on linux. I tried doing what it said on http://doc.qt.io/qt-5/linux-deployment.html , but I do not understand the 1st step. When I cd to the location of my qt project and run cd /path/to/Qt ./configure -static -prefix /path/to/Qt < otherparameters > make it says no such file or directory. Am I misunderstanding what paths I need to use? I want to make my qt project a stand alone