Most voted "qt" questions
Qt is a framework for developing graphical interfaces written in C++ supporting a wide number of platforms. Applications can also be created with QML/Javascript. It is currently developed and maintained by Digia.
Learn more…186 questions
Sort by count of
-
0
votes0
answers17
viewsconversion of charset to Qt
I have the following string: Qstring str = "Integral noodles. Integral car < br/>" I don’t know the formatting/charset of this string, but I wanted to be able to take and transform all its…
-
0
votes0
answers175
viewsHow to enable vertical scrollbar in python qwebview?
I need to enable the scrollbar in a widget qwebview, and put the automatic scrolling, but I couldn’t find any information on how to do this in python. I tried to do so:…
-
0
votes0
answers54
viewsHow to connect dialog boxes in Qtdesigner and run py from them?
I’m new to programming in python and I already have some doubts. A friend created for me two codes in py using pu 2.7, Numpy and Scipy. I created an interface for these codes but don’t know how to…
-
0
votes1
answer45
viewsPossible to implement Keyevent in a class that inherits from Qwidget instead of Qframe
My class: class Jogador : public QWidget { Q_OBJECT public: Jogador(QWidget* parent = NULL); void draw(); void paintEvent(QPaintEvent* event); void keyPressEvent(QKeyEvent* event); private: int…
-
0
votes1
answer59
viewsWhy can’t I capture Keyevent in this program ? Problems are in the main?
#include<QApplication> #include<tabuleiro.h> #include<jogador.h> #include<QWidget> int main(int argc, char* argv[]){ QApplication app(argc, argv); QWidget window; Tabuleiro…
-
0
votes1
answer28
viewsQdateedit component only accepts dates from 1752
Hello, I need to register data with dates 1500 and 1600 but the Qdateedit component only accepts dates from 1752. Can you change the component? Is there any other component that replaces it? I tried…
-
0
votes1
answer120
viewsHow to use Sqlite in Qt 5.7 with Android
I would like to know how the communication with the database is done Sqlite on android using the Qsqldatabase? I performed some tests and for desktop I can perform the communication with BD, but…
-
0
votes1
answer224
viewsSignal and SLOT C++ with QT
I am developing a software in c++ that captures images from Webcam, before I used Opencv but received an error Undefined Symbols for Architecture x86_64 Until I opened a topic here and nobody knew…
-
0
votes1
answer221
viewsHow to use two Opengl viewports using QT?
I’m trying to make two viewports in Qt but I’m not succeeding, below follows the code: 1. Method of drawing on canvas: void GLWidget::paintGL() { //Limpa buffer //glClear(GL_COLOR_BUFFER_BIT |…
-
0
votes2
answers125
viewsI cannot use char '&' Qt Creator
I am trying to return a Qstring, which will be used as a URL and I need to use '&' as a separator in the URL. However, when the character is placed in Qstring, it breaks the URL and what should…
-
0
votes1
answer20
viewsInsert element per line of code in a Qt C++ form
I want to insert an element in a Qt form, but I can’t use the designer because the element should only appear when a button is clicked. Is there anything like a ui->addWidget method or some other…
-
0
votes1
answer94
viewsQML Camera does not get FULL SCREEN
I’m developing an app that requires the front camera to occupy the entire background screen, like the Snapchat app, but using QML the camera with spacing above and below the camera. QML Responsible…
-
0
votes1
answer62
viewsQML Access the image gallery on iOS and Android
I’m developing an app for iOS and Android and I am facing some difficulties to access the galeria de images of devices with QML. I need to list the image gallery images in one GridView I’ve been…
-
0
votes0
answers35
viewsProblem with websocket Qt and javascript
Hello I have a webview component, in Qt, in it I load an html page.. In linux works perfectly... Already in windows the websocket is stopping and starting and can not start... Does anyone have any…
-
0
votes1
answer281
viewsError when compiling project with QT
Hello, I’m a beginner in Qt, I took a C++ course with QT in 2013 but I couldn’t take the learning forward and now I’m resuming. Now I’m trying to compile a simple project, just create a new project…
-
0
votes1
answer654
viewsc++ - How to pass parameters between Windows in Qt?
Hi, I’m trying to pass a mat parameter from one window to another, being activated by the click of a button. The program compiles and runs normally, but when clicking the button that activates the…
-
0
votes1
answer42
viewsProblems when including library in Qt project
I’m trying at the moment include the rtmidi library in a project of Qt for make Binding in a graphic interface system that I created with Midi messages. I added the following line to my project:…
-
0
votes1
answer59
viewsSelect Qt Combobox column
I have a Connect button on the mainwindow.ui void MainWindow::on_pushButton_clicked() { ConectarDB = QSqlDatabase::addDatabase("QMYSQL"); ConectarDB.setHostName("localhost");…
-
0
votes1
answer68
viewsProblem executing methods of a generic class
I am developing a generic DAO class in Qt, but when I compile I get the following error, when I call any method of my DAO object: Debug\debug\main.o:-1: In function Z5qMainiPPc': undefined reference…
-
0
votes2
answers261
viewsI connect to the database but the values do not change when I give UPDATE MYSQL Qt C++
The data is loaded in the table, then I change the data in the table, when I click on the update button, I can take the data (even the changes) and save it in the variable, but it seems that when I…
-
0
votes0
answers47
viewsHow do I deactivate Focus in a window even if I click it?
I am programming a virtual keyboard, where I will type by clicking the mouse. In python2.7 interface Qt4 I’ve been able to solve the idea enough, I’ve been able to make him keep showing up, and also…
-
0
votes2
answers147
viewsOrganization of projects with qMake
I’m developing a project and would like to start separating things into smaller parts and also to be able to test those parts, so researching found something about using the *.pri files to be able…
-
0
votes1
answer235
viewsWhy is it impossible to use Opengl in Qt 5?
Probably, Opengl is the only thing I can’t use in Qt, maya and 3ds and other Autodesk programs use opengl in Qt, but no tutorial or example that works. I already created a class for the widget based…
-
0
votes0
answers30
viewsHow to keep the source in Qt5 when DPI increases
I am having problems when I pass my UI to a user who has a visual windows configuration different from mine. If the user display is at 125 or 150% my UI gets huge fonts in the Labels while the other…
-
0
votes1
answer60
viewsFailed to recover a custom item in a Qlistwidget
I am trying to recover data from a Qlistwidgetitem when I click on the list but am not getting it. I made a custom Widget to list the elements, but although I can not see in the event click recover…
-
0
votes0
answers31
viewsQt - Perform an action when a dialog is loaded
I have an application that serves to manage a barracks of my city, on the sniper registration screen I would like to check before if there is a class registered in the database, if not close the…
-
0
votes1
answer63
viewsHow can I find the gpu and cpu name in Qt c++
Any of these solutions suit me, I first tested a system management code to try to find the name of the gpu and cpu, but give this error to me in visual studio, the compiler seems not to accept clr,…
-
0
votes1
answer28
viewsHow to convert horizontal menu tab to vertical in QML?
I want to convert a horizontal menu tab to vertical menu tab, wrote the following code: TabView { id: frame anchors.fill: parent anchors.margins: 4 Tab { title: "Tab 1" } Tab { title: "Tab 2" } Tab…
-
0
votes1
answer58
viewsQt Error: ASSERT Failure in Qlist<T>
I am new using Qt Creator and am currently working on a project for college and am getting the following error ASSERT Failure in Qlist::Operator[]: "index out of range", file .. /.. /. /..…
-
0
votes0
answers51
viewsQmediaplayer stops or skips next when removing media from playlist
As the title itself says, the problem lies in removing a media from the playlist, but precisely in removing a media that the content is lower than that of the media playing at the time. I’m already…
-
0
votes1
answer55
viewsLoop for resetting the control variable in c++ Qt Creator
Good night. I’m making a program that converts numerical bases into Qt Creator using C++, and the function that converts from any base to decimal, has a loop for: int toDeci(QString str, int base) {…
-
0
votes0
answers70
viewsHow to correctly fill a Qtablewidget table in QT with C++
I’m trying to fill a table with data read from a text file. The file structure is formed by lines with pairs of numbers, i.e.: 0.0 1.0 1.0 2.0 2.0 3.0 I am implementing the following code to fill in…
-
0
votes0
answers8
viewsequivalent of Qwebenginesettings::setUnknownUrlSchemePolicy() to QT 5.9
I’m using the tensorboard to open the projector and continue with the evaluation of my code, when I open in a common browser it works perfectly, but using the qwebengine the reality is different, it…
-
0
votes0
answers17
viewsClass Creation to create Json object in QT
Good night! I am studying QT and would like to make a class (.h) to perform a request on a Rest server and create a json object for later query of keys and values. I am developing a program in…
-
-1
votes1
answer38
viewsFunction writing values more than once - Pyqt5
Hello I’m using pyqt5 to create the graphical interface of a supposed clothing store (I’m training), I have the fields to receive the data to register each type of clothing, but when clicking the…
-
-2
votes1
answer25
views