Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • QMenu And QSqlQueryModel translation problem !

    Solved qmenu qsqltablemodel qtranslator problem qt5.15.2
    5
    0 Votes
    5 Posts
    1k Views
    P
    @SGaist said in QMenu And QSqlQueryModel translation problem !: QEvent::LanguageChange @ SGaist Hi bro <3 i didn't know about QEvent::LanguageChange before really thank you, i will check it <3
  • This topic is deleted!

    Unsolved
    5
    0 Votes
    5 Posts
    60 Views
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    18 Views
  • QSslSocket::readyRead() never triggered with Python server

    Unsolved
    14
    0 Votes
    14 Posts
    2k Views
    SGaistS
    @ArtiFAS That's one of the issue with the code sample you gave. There's not enough context to fully understand how it is working. Now the question is: why do you need a separate thread to handle your network connection ? Most of the time there's no need for that as Qt is asynchronous.
  • Brings up the image nicely on the label

    Solved pyqt6 image display python
    3
    0 Votes
    3 Posts
    533 Views
    A
    @Pl45m4 Thank you. Documentation for Python : https://doc.qt.io/qtforpython-5/PySide2/QtGui/QPixmap.html Example of code : I give this because of the minimum examples on the internet from PyQt6.QtCore import Qt ... self.labelCropFace.setPixmap(pixmap3.scaled(self.labelCropFace.size(), Qt.AspectRatioMode.KeepAspectRatio)) For other people who need it, hopefully it helps too
  • Automatically include needed files in .pro file

    Solved
    5
    0 Votes
    5 Posts
    321 Views
    JoeCFDJ
    @ocgltd It is totally up to you how to build shared libs, like which classes are added to .so. Qt can not automatically detect what is included in the lib. But when Qt code uses any of classes which are supposed to be in the lib, they should be there. Otherwise, you will see errors like undefined symbols.
  • Qt MySQL does not support TLS 1.2

    Unsolved mysql tls
    2
    0 Votes
    2 Posts
    472 Views
    Christian EhrlicherC
    See https://bugreports.qt.io/browse/QTBUG-84797 MYSQL_OPT_SSL_MODE is not yet added and when it will only be added for Qt6.6 and higher.
  • Is there a way to see which objects have recently been deselected?

    Unsolved
    2
    0 Votes
    2 Posts
    133 Views
    Christian EhrlicherC
    Also here you have to go through the QItemSelectionModel and it's selectionChanged() signal.
  • Is there a deselectRow for QTableView?

    Unsolved
    2
    0 Votes
    2 Posts
    234 Views
    Christian EhrlicherC
    You have to access the QItemSelectionModel directly and use QItemSelectionModel::select() with the appropriate flags to deselect a row.
  • How to Remove dynamically Added Button in QGridLayout

    Solved
    3
    0 Votes
    3 Posts
    288 Views
    jsulmJ
    @Ramkumar-Mohan Just check documentation: https://doc.qt.io/qt-5/qlayout.html#takeAt
  • QSerialPort seems to be broken in Qt 6.4.2

    Unsolved
    3
    0 Votes
    3 Posts
    324 Views
    H
    @jsulm I did not find any similar bugreport. That's here is what QtCreator shows, what I have to do to provide further information? [image: c6ec989d-d7b9-4329-af74-d78a26c76475.png]
  • Setting up android development environment on Arch Linux

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    M
    @mcarl Now i tried on ubuntu 20.04 on virtual machine. After several try, i can build android programs. Still no luck for arch.
  • Passing variables while function is triggered by a slot

    Unsolved
    2
    0 Votes
    2 Posts
    128 Views
    sierdzioS
    You can use a lambda for that. connect(boxButton, &QButtonBox::accepted, this, [this, startTempInput, expFlashptInput]() { int startTemp = startTempInput->text().toInt(); int expFlashptTemp = expFlashptInput->text().toInt(); qDebug() << startTemp; qDebug() << endTemp; // ... });
  • QModbus long frame transmission error

    Unsolved
    5
    0 Votes
    5 Posts
    308 Views
    H
    @J-Hilk I use Modbus Slave (https://modbustools.com/modbus_slave.html) to test this question, in modbus slave's Communication Traffic window, it has receive the long frame, and send the response, but qt client has error information.
  • Qt 5.15.4 and upper + nvidia driver 340.108 = Segmentation fault of all Qt soft

    Unsolved
    16
    0 Votes
    16 Posts
    4k Views
    jsulmJ
    @deepforest Please read and follow https://forum.qt.io/topic/113070/qt-code-of-conduct ! And please understand that this is USER forum driven by volunteers. If you want to tell Qt developers how bad they are you can do so here: https://lists.qt-project.org/listinfo/development
  • UBUNTU: Save and restore of window position/size/geometry, and moveEvent() do not work

    Unsolved
    2
    0 Votes
    2 Posts
    882 Views
    jsulmJ
    @QtSkyLark said in UBUNTU: Save and restore of window position/size/geometry, and moveEvent() do not work: Is this a known problem? If so, is a fix planned soon? You can search here: https://bugreports.qt.io/secure/Dashboard.jspa
  • QVideoWidget full screen mode issue

    Solved qvideowidget fullscreen
    5
    0 Votes
    5 Posts
    686 Views
    SavizS
    @jsulm Okay. I am truly sorry for this, but apparently what I was looking for was showMaximized(). Thank you for the help.
  • Two object calls for Qt child threads

    Solved
    3
    0 Votes
    3 Posts
    204 Views
    N
    @jsulm Thank you very much for your reply! I wish you good health and all the best.
  • qt d3d rendering failed

    Unsolved
    1
    0 Votes
    1 Posts
    103 Views
    No one has replied
  • How to change cordinate sistem in QGraphicsItem

    Unsolved qt6 qgraphicsitem qchart
    4
    0 Votes
    4 Posts
    790 Views
    Pl45m4P
    Either I haven't figured out, what you are doing or it's complete nonsense (esp. the boundingRect) Maybe you can add the rest of your code and a screenshot of how your result looks. @ugo_ said in How to change cordinate sistem in QGraphicsItem: I want to plot my custom item inside a chart. Are you talking about QChart? So you have a QChart and want your item in your chart?!