Skip to content

Qt 6

This is where all Qt 6 related questions belong

827 Topics 4.0k Posts

QtWS: Super Early Bird Tickets Available!

  • When exactly to use a Q_PROPERTY ???

    Unsolved
    8
    0 Votes
    8 Posts
    548 Views
    Ash VA

    @JonB
    Thank you Jon !

    Thanks for giving this additional valuable reply....

  • expected primary expression before ',' token

    Unsolved
    5
    0 Votes
    5 Posts
    485 Views
    Ash VA

    @Axel-Spoerl
    Thanks Axel !

    Thank you very much for your valuable reply !

  • Issues with the new Qt version using the older compiler

    Unsolved
    3
    0 Votes
    3 Posts
    196 Views
    TomZT

    @JonB said in Issues with the new Qt version using the older compiler:

    I don't know what "imported the old Q5.5.0 compiler into Qt6.6.2" means

    I expect the latter to be QtCreator.

    What I find more interesting is the mention of 5.5
    That release was tagged June 2015

  • I only have "QT Insight tracker" to download on my Mac

    Unsolved
    1
    0 Votes
    1 Posts
    115 Views
    No one has replied
  • 1 Votes
    5 Posts
    522 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
    136 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:

    bdabc7e6-78b4-4a1c-a519-cb69277769e4-image.png

  • Deploying my application with my own library is failed.

    Solved
    7
    0 Votes
    7 Posts
    385 Views
    W

    @SGaist
    I set QMAKE_RPATHDIR += /usr/local/lib in pro file.
    Thanks for your reply and help.
    Have a nice day.

  • 0 Votes
    2 Posts
    149 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
    221 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.

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

    Unsolved
    6
    1 Votes
    6 Posts
    907 Views
    P

    @mercotui Thankyou! This worked for me aswell

  • no Qt platform plugin could be initialized.

    Solved
    5
    0 Votes
    5 Posts
    695 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
    47
    0 Votes
    47 Posts
    5k 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
    345 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
    1k 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
    153 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
    979 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
    767 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.