I've downloaded the file "qt-unified-windows-x86-3.0.0-online.exe" and installed Qt and I've also downloaded and unpacked the file "PyQt5_gpl-5.9.zip". I'm using Python 3.6 but I can't figure out where to drop the extracted PyQt5 files. I can't find a Python directory anywhere on my C: drive except for under my home directory. `C:\Users\me\AppData\Local\Programs\Python` Any ideas where I can drop these files and how do I validate that I have Qt up an running in Python? Thanks.

Member Avatar
Member Avatar
+0 forum 2

Hello, I am trying to add a feature to a lab I am working on where I have to have a way to show images of the 20 pen widths the Easy Paint Lab can do. I am trying to use a ComboBox from Qt in order to do that. This is what I have so far, I cannot see the ComboBox anywhere in my program. #include "toolbar.h" #include "colorchooser.h" #include "../datasingleton.h" #include <QtGui/QToolButton> #include <QtGui/QGridLayout> #include <QtGui/QSpinBox> #include <QtGui/QAction> #include <QtCore/QMap> #include <QComboBox> #include <QIcon> ToolBar::ToolBar(const QMap<InstrumentsEnum, QAction *> &actMap, QWidget *parent) : QToolBar(tr("Instruments"), parent), mActMap(actMap) { setMovable(false); initializeItems(); …

Member Avatar
Member Avatar
+0 forum 1

Hi all, I am developing a Qt Gui application. Here I have a Qtreeewidget that has a list of Qtreeewidgetitems. I also have a qtablewidget beside it which displays some information when any item present in the list is clicked/selected.When the content of any of the cell in the tablewidget is changed by the user I want to display some indication (like an asterisk beside the treewidget item) to indicate that this current value is not saved yet.currently I dont see any method which lets me add a special character beside the items. How do i go about achieving this? …

Member Avatar
Member Avatar
+0 forum 1

[CODE]# -*- coding: utf-8 -*- from PyQt4 import QtGui from PyQt4.QtCore import * import sys import os class VideosToMp3(QtGui.QWidget): def __init__(self, parent = None): super(VideosToMp3, self).__init__(parent) ''' Labels and GUI ''' extension = QtGui.QWidget() download_label = QtGui.QLabel("Enter YouTube video URL:") self.download_line_edit = QtGui.QLineEdit() file_label = QtGui.QLabel("Enter file name (optional):") self.file_line_edit = QtGui.QLineEdit() mp3_filename_label = QtGui.QLabel("MP3 file name:") self.filename_line_edit = QtGui.QLineEdit() download_button = QtGui.QPushButton("Download in URL") download_file_button = QtGui.QPushButton("Download in file") cancel_button = QtGui.QPushButton("Cancel") spacer = QtGui.QSpacerItem(10, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) gridLayout = QtGui.QGridLayout() gridLayout.addWidget(download_label, 0, 0) gridLayout.addWidget(self.download_line_edit, 0, 1) gridLayout.addWidget(mp3_filename_label, 1, 0) gridLayout.addWidget(self.filename_line_edit, 1, 1) gridLayout.addWidget(file_label, 2, 0) gridLayout.addWidget(self.file_line_edit, 2, 1) …

Member Avatar
Member Avatar
+0 forum 5

Hi Guys, I wanna know how to change a label's text thats in a different form when the user presses a button in the mainform, I have heard about the Signals and Slots thing but not experienced enough to understand that, Please Help Me!

Member Avatar
Member Avatar
+0 forum 4

I am developing Client-Server application in C++ using Qt framework, but the clients can be android phones and computers(Qt client app) Now i'm having troubles to handle Reception of data on the server side; the server is not receiving data properly. First, I got things working nicely between the server(Qt app) and the client(Qt app) using these methods for sending and receiving: The size of the message is kept at the beginning of the packet to help check whether the whole message is received or not. This is the method to send message to the clients void Server::send(const QString &message) …

Member Avatar
+0 forum 0

Hi all I have a qt application in which I have a QTreewidget that displays some content in the QTextBrowser. I set the contents for the html document in the textbrowser using the setHtml() function. All I want now is to fetch the url of this html document so that I could use it later somewhere in my application. I looked around a lot but all in vain. I hope someone could help me with it.

Member Avatar
Member Avatar
+0 forum 3

Hello, So I'm having trouble figuring out what the correct syntax is for a function with a return type that is a template type and is within a namespace. Anyone see anything wrong with the code below? -------.HPP file: #pragma once #ifndef EC_UTIL_H #define EC_UTIL_H #include "../CommonHeaders.hpp" #include "../core/common/APVertex.hpp" #include <QString> class QWidget; namespace EditorCommon { template <class T> T *findAndAssert(QString id, QWidget *root); } #endif #include "ECUtil.hpp" ------------------- .CPP file: #include <QApplication> #include <QWidget> #include <QMessageBox> namespace EditorCommon { template <class T> T *findAndAssert(QString id, QWidget *root) { T *w = root->findChild<T *>(id); if(!w) { QMessageBox::critical(root , QString("Critical Application …

Member Avatar
Member Avatar
+0 forum 1

I have a horizontal layout inside which i have added a group box. The group box is split using a QSplitter and contain a QListWidget and a QTextBrowser. I want to add two push buttons at the bottom right corner of the window to navigate inside the QTextBrowser. I'm adding two buttons inside the layout but unable to add them at the bottom right corner. Here is my code: QWidget *www = new QWidget; QGroupBox* _groupBox = new QGroupBox(); _groupBox->setTitle("Info"); QVBoxLayout *_verticalLayout = new QVBoxLayout(_groupBox); www->setLayout(_verticalLayout); QSplitter *_splitter = new QSplitter(_groupBox); _splitter->setOrientation(Qt::Horizontal); QListWidget *_list = new QListWidget(_splitter); QListWidgetItem *item1 = …

Member Avatar
Member Avatar
+0 forum 1

hello i download qt sdk and started the qt creator and tried to do a simple empty project but it says The program has unexpectedly finished on the error list and i tried many examples but same thing happens , im using windows 7 x64 homepremium and mingw as a compiler what is wrong ??????

Member Avatar
Member Avatar
+0 forum 1

Hi All, I´m using a QTextBrowser to display an external html document (and its image resources) which is placed in the same directory as the application. Everything works fine except that images are not displayed properly. Instead of the actual picture there is a "missing image" icon. I tried different image formats and Qt versions, without success. If I type in the absolute file path of the image it is displayed fine. But that´s not what I´d like to do as I can´t share my application then. This is the part which loads the html file into the textbrowser: QFile …

Member Avatar
Member Avatar
+0 forum 3

I am new to Qt and I'm trying to connect a remote database. QSqlDatabase db = QSqlDatabase::addDatabase( "QMYSQL" ); db.setHostName("IP ADRESS"); // local or IP db.setPort(3306); // Default port is 3306 db.setUserName("DB USER"); // example root db.setPassword("PASSWORD"); db.setDatabaseName("DB NAME"); if( !db.open() ) { qDebug() << db.lastError(); qFatal( "Failed to connect." ); } qDebug( "Connected!" ); QSqlQuery qry; qry.prepare( "CREATE TABLE IF NOT EXISTS data (id INTEGER UNIQUE PRIMARY KEY, firstname VARCHAR(30), lastname VARCHAR(30))" ); if( !qry.exec() ) qDebug() << qry.lastError(); else qDebug() << "Table created!"; ... goes on this code works like a charm in local but when i give …

Member Avatar
Member Avatar
+0 forum 5

i made a project using visual studio and opencv ,it worked fine. however later i thought of adding GUI. i googled and found abput QT.some how i managed to include libraries and build paths,when i use **C fucntions of opencv** the program works fine but when i use ***c++ features of opencv*** i get following error:- #include "widget.h" #include "ui_widget.h" #include "opencv2/highgui/highgui.hpp" #include "opencv/cv.h" #include "opencv/cvaux.h" Widget::Widget(QWidget *parent) : QWidget(parent), ui(new Ui::Widget) { ui->setupUi(this); IplImage *in; QImage imp; in=cvLoadImage("F:/test.jpg"); cv::VideoCapture cap; } ERROR:- ***widget.obj:-1: error: LNK2019: unresolved external symbol "public: __cdecl cv::VideoCapture::VideoCapture(void)" (??0VideoCapture@cv@@QEAA@XZ) referenced in function "public: __cdecl Widget::Widget(class QWidget …

Member Avatar
Member Avatar
+0 forum 4

I am using Qt5.2.1 and I made a program that stores some data into a file and then reads the data. it stores some variables values. After I restart my program... I want to read those values and re-store the values of those variables... How can I do this? I am fairly new to Qt (programming altogether). Thank you in advance. this is some text inside the file - 500 - 1000 : 29 1000 - 1500 : 0 1500 - 2000 : 0 2000 - 2500 : 0 here the 29,0,0,0 are the values and I would like to …

Member Avatar
Member Avatar
+0 forum 12

I am using Qt 5.2.1 and I made a program that takes some values and saves them on a text file. What I want is that everybody can see this file and read the content but nobody can edit it. To edit it, you would have to run the program and enter a password. How do I do this? thanx in Advance :D

Member Avatar
Member Avatar
+0 forum 3

Hello People! I am quite new to Qt (and programming in general). And I am making a program that requires me to encrypt a file and decrypt it after asking for a password through the program. But I have no Idea where to start. What I already have - A program that takes some info from the user and stores it in a simple text file.

Member Avatar
Member Avatar
+0 forum 2

I am using Qt5.2.1 and I made a program to do some stuff. In it I added a radio button (named 'others') i want that when the user clicks this button a line edit pops up besides it and lets the user enter some stuff inside it. when the user clicks another radio button, this line edit goes away. Please please help me!

Member Avatar
Member Avatar
+0 forum 1

I wrote this function I plan on using to load in .obj files from Blender into a DirectX application. The problem I'm having is that when when the model is loaded, it appears that every other triangle face is missing in a pattern, for every quad, only 1 traingle is visible. I've been trying to debug it for a while and still can't find the issue. According to the debugger it's loading the exact amount of vertecies & faces as Blender says are in the model. I was having this issue before when using a triangle face method to load …

Member Avatar
Member Avatar
+0 forum 2

Hi daniwebbers. I've been hearing a lot about Qt when searching for a library to ease my pain of creating GUI's with native windows API. I'm hoping folks here might be able to offer some sage councel before I do something irreversible to my IED environment (vs 2010) that I'll regret so the more personal experience you have with this subject the better (well for me :)) but I appreciate all help and advice. This is not my first place of call, I've had a good read on the Qt forums and FAQ's where I've learned a lot and had …

Member Avatar
Member Avatar
+0 forum 15

Hi there, I am a newbie in programming. Python is my choice. because it is easy to learn. But the Tkinter GUI making is horiible. I don't like to write code for GUI. I like the visual basic method. So i installed Qt Designer. But i don't know how to make python codes working in Qt. I just played with Qt designer. And learned the signal-slot techinique. but how can i write python codes for my Qt forms. I have PySide 1.2.1 and QtDesigner 4.8.5 and Python 2.7.5 in my PC. Please help me.

Member Avatar
Member Avatar
+0 forum 2

Hi, I'm creating remote desktop application in qt 4.8. I have to implement some way to browse remote computer directory structure and possibility to download files on local machine. I'm wondering how can achieve this...

Member Avatar
Member Avatar
+0 forum 1

Hi friends, # Heading Here # Could anyone help me,how to send email in qt using command prompt commands..

Member Avatar
+0 forum 0

Hey i try to work on custom signal but i get an compiling error: QObject::connect: No such signal QLabel::changerSignal() in ..\textbasedrpg\FenPrincipale.cpp:173 But i seem to write exactly same thing in header and .cpp »That an big moment i try to see what i do incorrect but can't find. Same an QMake dosen't work I'll give the needed code. That worth more than words. Can the emit can be the problem? Wrong typo? Thank in advance .cpp #include <iostream> #include <fstream> #include <string> #include <vector> #include <QApplication> #include <QLabel> #include <QComboBox> #include <QMessageBox> #include <QLabel> #include <Qt> #include <QVariant> #include <QList> …

Member Avatar
Member Avatar
+0 forum 1

Hello, I have a problem using Qt 4.8.4 on VS2012. I manage to compile the code but when I run it, it says: Qt: Could not initialize OLE <error 80010106> on the console but since it has reached the end of the program where it says 'press any key to continue' and upon pressing any key, the button displays what it was meant to display. I am using the simple code: include <QtGui/QApplication> #include <QtGui/QPushButton> using namespace std; int main (int argc, char *argv[]) { QApplication app(argc , argv); QPushButton button("hello world"); button.show(); return app.exec(); } I have searched on …

Member Avatar
Member Avatar
+0 forum 1

I'm writing classes for widgets on a ui. While planning what I would do, I realized majority of the of the classes would look very similar. What I decided to do was to use a macro that takes a few parameters to define the similar parts of the class bodies. After cleaning a few code errors, I compiled and got a bunch of linker errors. I cleaned and rebuilt a few times with the same result All of the errors say: error: undefined reference to vtable for 'every class using the macro'. I have an idea the errors are related …

Member Avatar
Member Avatar
+0 forum 4

Hello, I'm building opencv library with cmake for mingw to be used with qt and i've been able to generate the makefilelist. But when i type **mingw32-make** at the command prompt i get error when it's 44% built. error says: *Cannot export _ZN12_GLOBAL__N_13R)p3aLLEv: symbol not found Cannot export _ZN12_GLOBAL__N_17CmpType3allEv: symbol not found collect2: Id returned 1 exit status mingw32-make[2]: [bin/opencv_perf_core.exe] Error 1 mingw32-make[1]: [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2 mingw32-make: [all] Error 2* Please I need help.

Member Avatar
+0 forum 0

Hello, I'm having a play with Qt and can draw what I want, perform transforms, more the origin with a translation but would like to know how big the area I have to paint on is and is it possible to control this. I've read the entries for things like Viewport and clipping which seem as if they might have something to do with this but I'm not familure with termanlogy so I'm not understanding exactly what they are reffering to. Could some please provide me with or point me in the direction of a explaination of what these terms …

Member Avatar
Member Avatar
+0 forum 3

After appending an item to a QList which is pointed to by a QMutableListIterator, I find out the next value of the iterator points outside the list. Or can't i point the iterator to any where in the list except the beginning and end? Please i need help.

Member Avatar
Member Avatar
+0 forum 2

I recently made an appication that utilizes pyqt , i could say i wrote the code pythonic and made everything work work as I wanted, but didnt used any data model , so later I realized I could have used data model since I am building list in the QListView of task that will be performed in batch. So how do to decide what data model to use & when ? I have found so many things in PyQt that could be an alternative to pythonic code... so what do I need to learn about data models in PyQt or …

Member Avatar
Member Avatar
+0 forum 2

I have made an standalone app inheriting from base class `QtGui.QFrame`, and now i want to add a floating toolbar to it the way I could have in QMainWindow, how should I do it ?

Member Avatar
Member Avatar
+0 forum 1

The End.