Questions tagged [qbuttongroup]

A QButtonGroup is a class from the Qt Toolkit which provides a container to organize groups of button widgets.

Documentation can be found here (Qt4) and here (Qt5).

23 questions
0
votes
0 answers

Flutter group_button package throwing errors when inserting parameters and single-select

New user to flutter (25 years of procedural coding, going a bit insane) When using the simple logic on pub.dev it works ok: GroupButton( isRadio: false, buttons: ["Male", "Female", "Other"], ), But as soon as I insert any of the options, it throws…
David
  • 7
  • 1
0
votes
1 answer

How to get a clicked button id from QButtonGroup in qt 6.4 through signal and slot connection

i am new to qt and what to know how to get the id of the button that is clicked in qt through signal and slot. connect(group, SIGNAL(buttonClicked(int)), this, SLOT(buttonWasClicked(int))); This was the earlier syntax to get the id, but qt has…
0
votes
1 answer

Opacity change on button hovered glitch QML

I have created a custom virtual keyboard where the components are buttons, whose attributes I have defined in the code below . When I rapidly move the mouse across the buttons, I find that there is a 'flashing' effect whereby the button opacity…
0
votes
1 answer

unique_ptr and ERROR: Run-Time Check Failure #2 - Stack around the variable 'w' was corrupted in QT

I'm writing an app in QT. I'd like to use QButtonGroup, so I declear it in header file of user interface class: std::unique_ptr examTypeSelectGroup; But when I close application, I recive the error: Run-Time Check Failure #2 - Stack…
Miziol
  • 42
  • 8
0
votes
0 answers

Cannot connect QButtonGroup::idClicked to a function

I'm trying to connect a QButtonGroup to a function. But I just can't get it working. What my code looks like for now: mainwindow.h: public slots: void UserButtonGroup_idClicked(int id); mainwindow.cpp: void…
DomeE__
  • 21
  • 3
0
votes
0 answers

PySide2 / QButtonGroup setExclusive not working

I'm having an issue with QButtonGroup in PySide2. I want to create the QButtonGroup with 2 buttons in order to make only one of them checkable at the same time. import sys from PySide2.QtWidgets import (QApplication, QHBoxLayout, QWidget,…
John
  • 89
  • 1
  • 8
0
votes
0 answers

PyQT5/QT Designer - Threading with Signal/Slots

I wrote a PyQt5 app that searches user inputs in a SQL database. Everything works but I've had no luck trying to add a worker thread to handle the search process and prevent the app from becoming unresponsive. I'm using QT Designer to generate the…
0
votes
1 answer

Qt5 - QML: Button does not show up after triggered

I am writing a project that is using Qt5-QML. In order to shrink the problem I prepared a small example that replicates the problem. 1) I have an application on a Page1. That carries a Button as shown in the below print screen below: 2) After the…
Emanuele
  • 2,194
  • 6
  • 32
  • 71
1
2