Quantcast
Channel: QtWebEngine
Browsing all 13965 articles
Browse latest View live

Instalar un widget descargado en QtDesigner...MALDITO WINDOWS

Hola a todos, Soy nuevo en el foro, estoy lidiando con un problema que me lleva loco loco….creo que todo es por culpa del maldito Windows… La cuestion es que me he descargado un widget que quiero usar...

View Article


Setting up two QTcpServer with 2 clients on 2 threads

Hello, I have a main application which will run a simulation and set up a QTcpServer to receive messages over localhost from 1 or 2 embedded clients. The sockets have to work asynchronously....

View Article


how to cast the returned pointer of uchar * QImage::scanLine(int i) to QRgb?

how to cast the returned pointer of uchar * QImage::scanLine(int i) to QRgb ? the image format is Format_RGB32 since we cannot do this like in C++ uchar *a = scanLine(i); (QRgb*)a in Python and there...

View Article

Center the QGraphicsView

I have a 500 × 500 QGraphicsView which drawing 2 axes (x, y), but if I draw, for example x = 50 and y = 20 it looks very small. Is there a method to center the image?

View Article

QListView ReOrder items with drag and drop

Hi guys. I’m having a hard time with QListView items ReOrdering. I reimplemented flags() and supportedDropActions() methods. Now I can drop an item in another position and it moves their but the...

View Article


QPrinter ignores QTextBlockFormat Qt::AlignmentFlag

I have a problem when printing my QTextDocument :- parts that are horizontally centered, which appear as expected on screen, always appear aligned to the left margin when printed. Here’s what I’m doing...

View Article

Easiest way to find the distance between two parallel QLineF?

Before delving deeper and looking at creating perpendicular lines and walking them, is there an easy solution for finding the parallel distance between 2 QLineFs?

View Article

Running command ("separator ','" and ".import test.csv foo") on SQLite...

I have a SQLite database which I do queries on by using QsqlQuery. If I want to enforce the ‘foreign_key’ constraint on the database I can set the query to be “PRAGMA foreign_key = 1”. Checking...

View Article


retrieving the text from QLineEdit

I want to retrieve the entered text from QLineEdit and put it into a variable QString name; My question is what is the proper code to perform this action?

View Article


Model/View Tutorial & QTableView General Question

I am just learning QT and going through all the examples so apologies for my basic questions. In going through the Model/View Tutorial I am having difficulty understanding how the data gets populated...

View Article

Qt5 Alternative to QWS Multi Display setup

Hi everybody! I want to switch from Qt 4.8 to Qt 5.1 but I figured out that QWS died in Qt 5. Formerly I used [QTPROGRAMMNAME] -qws -display "multi: LinuxFB:/dev/fb0:0...

View Article

[iOS] missing QSSlSocket library

Hi, I can’t compile my program on iOS due to missing QSSlSocket library, everything works perfectly on Android, Linux and Windows. I’ve also put this line in my .pro file: QT += network with no result...

View Article

ListView model in C++ not getting all elements

Hi all, I’m facing an issue with a listview that has a model built in c++. Here is how it works : In C++ I have a class, let say MyModel, that subclasses QAbstractListModel. This class has a QList...

View Article


Qt 5.2.0 MSVC2012 stddef.h missing

Hi everyone, first of all excuse my poor english and I am a Qt newbie :) My problem: I want to create a Editor for a small Engine with Qt but i have several problems. My Engine is working with DirectX...

View Article

accelbubble example

Hello, I’m trying the “accelbubble” example to get working. Before that I successfully ran the Hello World Example created with the QtCteator. I’m using my mobile not the emulator But trying to run the...

View Article


Qt Creator - promoting top level widget

I have some business logic in a subclass of QWidget. I now want to create a new QWidget in which the top level QWidget is promoted to my subclass. This works for me if the .ui file just has the top...

View Article

Specifying a version on a Library in a Qt Project file.

Here is the situation. I have several projects that are using the current version of a lbrary. I want these to NOT BE BROKEN” while I re-write the library for a new project. Sooner or later all...

View Article


Synchronizing main thread with multiple QThread object finishes

I have a need to create checksums for each file in a folder. The QApplication (main) thread creates and starts the process using a pool of 8 array indexes for QThreads. Creating each checksum is...

View Article

problem with a QTcpServer and a UnitTest

Hello all, i have call MyServer that listens on a specific TCP port for incoming connections and sends some data when a connection has been established. Therefore i made some unit tests (to get used to...

View Article

Multithreading and QML

Hi, I started a qml-based Application. It does some expensive calculation inside a separate QThread and emits a signal to QML in order to update a ProgressBar. However, setting the new ProgressBar...

View Article
Browsing all 13965 articles
Browse latest View live