Category : qt

I am trying to map two QPushButtons to the openLanguageDialog(QPushButton *button) function. I get the following errors: no matching member function for call to ‘connect’ candidate function not viable: no known conversion from ‘void (QAbstractButton::*)(bool)’ to ‘const char *’ for 2nd argument candidate function not viable: no known conversion from ‘void (QAbstractButton::*)(bool)’ to ‘const QMetaMethod’ ..

Read more

I have made a QML app that is posting data to an API (springboot) in http (not https). When i’m calling the POST method on my desktop it’s working, but once i’m doing it on an android device it doesn’t work.. I’ve done the SSL configuration as recommended in the Qt documentation. The POST method ..

Read more

Essentially what I have is a qt gui application that calls QProcess::start() repeatedly on an executable that checks for file changes in a text file that the vscode extension writes to. Currently there are two problems. I’m not convinced that writing to a file is the most efficient way to do this and if it ..

Read more

I am trying to create a gradient for my QPushButton in my own custom style: void GuiStyle::drawControl(QStyle::ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const { if(element == QStyle::CE_PushButton) { const QStyleOptionButton* comboOption = qstyleoption_cast<const QStyleOptionButton*>(option); QStyleOptionButton newComboOption = *comboOption; QRect nRect = newComboOption.rect; QLinearGradient nGrad(0, 0, nRect.width(), nRect.height()); nGrad.setColorAt(0, Qt::green); nGrad.setColorAt(1, Qt::red); ..

Read more