Skip to content

Qt 6

This is where all Qt 6 related questions belong

877 Topics 4.3k Posts
  • I only have "QT Insight tracker" to download on my Mac

    Unsolved
    1
    0 Votes
    1 Posts
    198 Views
    No one has replied
  • QtXmlPatterns was removed from Qt6. How to use XPath in Qt6?

    Solved
    5
    1 Votes
    5 Posts
    1k Views
    8Observer88
    @SGaist thanks! It could be a good solution but for a while I don't know how to build external libraries for Android and WebAssembly. I want to be able to make build executables of my applications for Android, Desktop, and WebAssembly. It is why I like Qt very much because it has built-in libraries for parsing XML, JSON, drawing with build-in OpenGL ES, and WebSockets library to make multiplayer game clients for Android, Desktop, and Web. I want to host Node.js game servers with physics engine on free hosting render.com I don't have time to study how to build external libraries for Android and WebAssembly. I only know how to build OpenAL-Soft for Android to play 3D sounds and how to call Web Audio API from WebAssembly.
  • Having errors in Android settings

    Unsolved
    2
    0 Votes
    2 Posts
    263 Views
    8Observer88
    @tunga had you solved the problem? Just for an experiment try to use jdk-17 and try to make these steps: set an another path for Android SDK location (create a new folder for Android SDK) try to press Set Up SDK and Open Android SDK download URL buttons: [image: 7e626fa0-04e7-4df9-835c-cff3d30c6313.png]
  • Deploying my application with my own library is failed.

    Solved
    7
    0 Votes
    7 Posts
    721 Views
    W
    @SGaist I set QMAKE_RPATHDIR += /usr/local/lib in pro file. Thanks for your reply and help. Have a nice day.
  • Is there a way to make Flickable in Qt6 act like the one from Qt5

    Unsolved
    2
    0 Votes
    2 Posts
    293 Views
    TomZT
    @DesiVideoGamer don't know about "like qt5" but do look at the flickDeceleration property. Edit; I personally prefer it at something like 3000
  • Different behavior in Qt5 and Qt6 with respect to QML files

    Unsolved
    4
    0 Votes
    4 Posts
    538 Views
    TomZT
    @devil_coder said in Different behavior in Qt5 and Qt6 with respect to QML files: Specifically, behavioral difference when clicked was the main reason why I am suspecting z order can be causing the issue. As you have the code, and we don't. Please confirm that by playing with the z index in that qml. Please report back your findings.
  • qt error has occurred, but it cannot be resolved. Please help me.

    Unsolved
    1
    0 Votes
    1 Posts
    168 Views
    No one has replied
  • Problems with Qt6.4

    Unsolved
    6
    1 Votes
    6 Posts
    1k Views
    P
    @mercotui Thankyou! This worked for me aswell
  • no Qt platform plugin could be initialized.

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    W
    @JoeCFD Thanks for your reply and help. I did what you mentioned, but it was failed. Have a nice day.
  • Qt6 Windows slower than Qt6 Ubuntu

    Solved ubuntu windows 10 inst msvc gcc qt6
    47
    0 Votes
    47 Posts
    11k Views
    J
    @JonB Last edit my code : DataReceiver::DataReceiver(QObject *parent) : QObject{parent} { _manager.setAutoDeleteReplies(true); } void DataReceiver::start() { _connection++; if(_connection > 1) return; _takeData = true; run(); } void DataReceiver::stop() { _takeData = false; _connection = 0; _data.clear(); } void DataReceiver::getData() { _data.clear(); QString url = QString("http://localhost:%1/sample").arg(_port); QUrl _apiUrl(url); QNetworkRequest _request(_apiUrl); _reply = _manager.get(_request); connect(_reply, &QNetworkReply::readyRead, this, &DataReceiver::onReadReady); connect(_reply, &QNetworkReply::finished, this, &DataReceiver::onFinished); } void DataReceiver::run() { if(!_takeData) return; getData(); } void DataReceiver::onReadReady() { _data += _reply->readAll(); } void DataReceiver::onFinished() { emit sendData(_data); run(); } its working. time slow down from 65ms to 165ms but its working.
  • (RE) Update from qt5 to qt6

    Unsolved
    7
    0 Votes
    7 Posts
    784 Views
    Teemo of LOLT
    @JonB Thanks I'll read the link and ask if I don't understand!
  • 'emit' in 'pyqtSignal not find

    Unsolved
    8
    0 Votes
    8 Posts
    3k Views
    SGaistS
    @Yattara Next time please ensure that your example really allows to reproduce your issue. Here boutonSlot will never be called because it's not called from anywhere. Also, your FenetreSimple widget is never shown. Anyway, here is a small example that works with a complex signal. import sys from PyQt6.QtWidgets import QApplication from PyQt6.QtWidgets import QPushButton from PyQt6.QtWidgets import QHBoxLayout from PyQt6.QtWidgets import QWidget from PyQt6.QtCore import pyqtSignal class Widget(QWidget): complex_signal = pyqtSignal(int, list, str) def __init__(self, parent=None): super().__init__(parent) button = QPushButton("Test me") layout = QHBoxLayout(self) layout.addWidget(button) button.clicked.connect(self.on_clicked) self.complex_signal.connect(self.on_complex_signal) def on_clicked(self, checked=False): self.complex_signal.emit(2, [1, 2, 3], 'Hello') def on_complex_signal(self, *args): for idx, item in enumerate(args): print(idx, item) if __name__ == '__main__': application = QApplication(sys.argv) widget = Widget() widget.show() sys.exit(application.exec())
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • PushButton Color Change

    Unsolved
    2
    0 Votes
    2 Posts
    290 Views
    JonBJ
    @Mammad If you want to do it in code use QHoverEvent. If you want to do it in stylesheet (no code) use :hover pseudo-state.
  • I'm installing qtftp on qt6 help me plz

    Solved
    15
    0 Votes
    15 Posts
    2k Views
    Teemo of LOLT
    @jsulm Thank you for your assistance :D
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • How to implement nativeEvent() in my library?

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    W
    @jsulm Hi, Thanks for your reply and help. I found a solution like this, https://copyprogramming.com/howto/detected-new-usb-device-connected-disconnected-on-qt I made a class and when I plug/unplug my USB camera, there can receive WM_DEVICECHANGE in my class. I will also try what I mentioned in my library. Have a nice day.
  • How to navigate in Qt documentation

    Unsolved
    2
    0 Votes
    2 Posts
    343 Views
    jeremy_kJ
    @Nikita-Kobzev said in How to navigate in Qt documentation: Hi, there is doc.qt.io. Is there a structure to it? As I read it and click on each link, I always end up on a page that I can never find again in the table of contents. I have this problem occasionally. Most of the time, Creator/Assistant's index search avoids the issue. Example 1: https://doc.qt.io/qt-6/qtqml-modules-cppplugins.html I'm not sure about this one, without resorting to an index. Example 2: https://doc.qt.io/qt-6/qtqml-cppintegration-overview.html https://doc.qt.io/ -> "Qt 6" in the center iframe -> "Qt QML" in the center frame -> "Integrating QML with C++ Applications" in the right frame -> "Overview - QML and C++ Integration" in the center frame How do I navigate from the documentation root to get to those pages? Hopefully in use, this is mostly an artificial problem. Starting from an example seems to generate better navigation from problem to solution for me, but I may be too far into the mindset to imagine a blank slate.
  • Qt creator QML module not found

    Unsolved
    4
    0 Votes
    4 Posts
    506 Views
    Ash VA
    @sierdzio @Axel-Spoerl Thank you very much for clarifying my issue ! 👏️👏️
  • QMediaPlayer. Issue with playing the video in Reverse

    Unsolved qmediaplayer video reverse
    2
    0 Votes
    2 Posts
    540 Views
    SGaistS
    Hi and welcome to devnet, Which version of Qt are you using ? To the best of my knowledge, there's no option for reverse play. As for the resource issue, the native backends cannot access the files within the resources. You have to copy the file in a temporary location and play it from there.