Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Is there a way to see which objects have recently been deselected?

    Unsolved
    2
    0 Votes
    2 Posts
    179 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
    260 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
    321 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
    382 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
    2k 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
    166 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
    372 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
    6k 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
    947 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
    860 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
    251 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
    140 Views
    No one has replied
  • How to change cordinate sistem in QGraphicsItem

    Unsolved qt6 qgraphicsitem qchart
    4
    0 Votes
    4 Posts
    922 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?!
  • How to split the libtorch forward method's output?

    Unsolved
    4
    0 Votes
    4 Posts
    480 Views
    JonBJ
    @donkey007 No. Look at the torch::Tensor documentation.
  • Show text on QToolButton instead of icon?

    Solved qtoolbutton qaction
    9
    0 Votes
    9 Posts
    3k Views
    SGaistS
    @JoeCFD from the looks of it, it could be an Ubuntu specific bug.
  • 0 Votes
    3 Posts
    752 Views
    bibasmallB
    The problem was that every child widget of the native widnow got it's own window descriptor (HWND), so, for example, if I hit the menubar, in nativeEvent I saw that the message had a different descriptor than the main window had. This is what solved my problem: QApplication a(argc, argv); a.setAttribute(Qt::AA_DontCreateNativeWidgetSiblings); //... CEventFilter e{ &w }; a.installNativeEventFilter(&e);
  • Image can't Show in Page2

    Solved pyqt6 software
    9
    0 Votes
    9 Posts
    1k Views
    Pl45m4P
    @AlbertRicky said in Image can't Show in Page2: so what should I use to make two pages Change the secondWindow type to QWidget (using QMainWindow there is weird) and make it a page of QStackedWidget. You can design that widget with your QtDesigner and setup the layout with the label that should hold your image later. Assign your result image with your detections to the label, when you have processed the source image and flip the pages with your buttons. This can also be done in-place. Then you dont need a QStackedWidget. If you don't need to switch back and forth multiple times, but swtich one time to show the result, you could also "replace" the image on your current label, when clicking the button. But I dont know, what else you what to do on that second page widget.
  • QEffectSound with Qt6.3

    Unsolved
    5
    0 Votes
    5 Posts
    366 Views
    JonBJ
    @Alfredy As @Christian-Ehrlicher says. Two obvious possibilities: "File not found" for WAV file. What is the scope of QSoundEffect sound? I believe it has to remain in existence, sound.play() only starts playing the sound, not blocks while it plays?
  • How to clearly kill a mpi program which is launched by Qprocess?

    Unsolved pyqt5 qt5.7 mpi qprocess
    3
    0 Votes
    3 Posts
    1k Views
    S
    @JonB In command line, we usually kill a mpi program by killing one of the child processes. And I find this may be a bug of intel mpi on windows [ https://community.intel.com/t5/Intel-oneAPI-HPC-Toolkit/InteloneAPI-MPI-2021-2-0-behavior-on-Linux-and-Windows-differ/td-p/1290020 ]. Anyway, thanks for your reply.
  • how to include graphics.h and conio.h in Qt w c++ project

    Unsolved
    2
    0 Votes
    2 Posts
    303 Views
    SGaistS
    Hi, What is your exact issue ? Which project management system are you using ? qmake ? CMake ? Where do these files come from ?