Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • How to enable depth testing in QOpenGLFrameBufferObject

    Unsolved
    1
    0 Votes
    1 Posts
    260 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • My Window don't show when I start the .exe file

    Solved
    3
    0 Votes
    3 Posts
    264 Views
    M
    I fixed the problem by forcing a compiler and manually getting the dll from the correspondant compiler Thanks for the help and reactivity
  • Executable crashed!

    Solved
    8
    0 Votes
    8 Posts
    739 Views
    Rizlan AnilR
    @jsulm Ah ok thank you :]
  • Cannot get QtVirtualKeyboard 5.15.1 to build

    Solved
    3
    0 Votes
    3 Posts
    614 Views
    D
    That got me a bit further. I determined we had QT 5.12.5 on our system, so I got the 5.12.5 version of the QtVirtualKeyboard package. I then ran the syncqt.pl script (with -version 5.12.5). This did set up the private directories under include/QtVirtualKeyboard/5.12.5/QtVirtualKeyboard. That got me to the point where I had to install the qt5-qtbase-private-devel package for some missing private headers, after which it all built. So my next step will be to run the example, and start to understand what I might need to modify for our custom needs. My problem appears to be solved, but I have one outstanding question. Where is the use of syncqt.pl documented? It was not mentioned in the QtVirtualKeyboard build instructions.
  • QVector one-line deep copy?

    Solved
    18
    0 Votes
    18 Posts
    6k Views
    JonBJ
    @Christian-Ehrlicher And? :) That solves the mystery here (I can use @sierdzio's explicit detach() for now), but leaves me with the other thread still not correctly answered, now :( You didn't say if I could sue @jsulm there.... Thanks to you, and all, for answering. I didn't even recall when I raised this "deep copy" question that it was going via/could be related to the const_cast<> method.
  • Qt creator 4.13.0 and Qt5.15.0 Unknown module(s) not found

    Unsolved
    8
    0 Votes
    8 Posts
    4k Views
    G
    Well thank you for your answer, but it's fixed in version 5.15.1 ? for webenginewidgets does not work with MSVC2019 compiler.
  • QML module not found in Designer using QML_ELEMENT

    Unsolved
    1
    0 Votes
    1 Posts
    234 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • How to know that QTableView is in editing state

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    VRoninV
    @tovax said in How to know that QTableView is in editing state: If no delegation is used, A delegate is always used. The default one is QStyledItemDelegate so you can just subclass it and only add the signal
  • How to remove the border beneath an active tab?

    Solved
    3
    0 Votes
    3 Posts
    739 Views
    E
    Ah I found the solution! Christian was correct that the border is for the pane which I already knew, but the problem is that if you disable it you get a blank patch beside the tabs: [image: 8683a70a-ea05-4006-a8c5-f4ec53902374.png] I found the solution here and I don't really understand why it works and doesn't remove the top border like shown above, but it does. To get it working on all sides my solutions was this (I'm using a SCSS to QSS compiler): QTabWidget { &::pane { &:top { top: -1px; } &:bottom { bottom: -1px; } &:left { left: -1px; } &:right { right: -1px; } } [image: 6e5a66e6-e36d-494b-bb90-36778b9d4c74.png] I'm still missing the border underneath the inactive tab which is not ideal but looks fine with my color set
  • Official Node Editor in Qt?

    Solved node editor
    3
    0 Votes
    3 Posts
    2k Views
    iwoitheI
    Hi @JonB, Thanks for your answer. @JonB said in Official Node Editor in Qt?: Or, you can write the code yourself As I said in the first post: @iwoithe said in Official Node Editor in Qt?: I currently don't have the time to write one from scratch But maybe one day I will. Until then I'll wait. :)
  • c++ vs python in using QT

    Solved
    2
    0 Votes
    2 Posts
    644 Views
    JonBJ
    @TomNow99 Yes for PyQt5. No for PySide2, sadly. It depends which classes/features you use. Obviously the most common ones have been done, but there are still unimplemented areas. Worth checking out what you use before you start out. Though the PySide2 docs don't always say what is not implemented, till you find out. And just to be clear: PyQt is GPL, PySide2 is LGPL, so your decision may depend on whether you intend to distribute your application. For a purely personal comment: I'm not great fan of Python, I preferred working with Qt C++, especially as a coding-time editing environment. But your mileage may vary.
  • Changing QTabBar::tab border color breaks the width & padding?

    Solved
    5
    0 Votes
    5 Posts
    636 Views
    E
    Ok thanks for the replies, I will try to recreate the Fusion style with my own QSS and colors
  • [debug/qrc_fontawsome.cpp] Error 1

    Solved
    14
    0 Votes
    14 Posts
    1k Views
    N
    @Christian-Ehrlicher I downloaded the fontawesome.ttf file from here and my code works fine now. I don't know why Font Awesome 5 Free-Solid-900.otf didn't work for me, but the fontawesome used in the posted link project, works for my project. I really thank you for you help. Your provided codes helped me a lot. Best regards.
  • How to get a Json value from an api and display it in a GUI

    Solved api json qurl qnetworkrequest c++
    8
    0 Votes
    8 Posts
    8k Views
    jsulmJ
    @Lodhi-bhkr Sorry, but this is not a question. What did you try? What problems do you have? Please ask more specific questions. Looks like you asked here already: https://forum.qt.io/topic/120439/qt-code-to-send-data-on-postman-http-post-request
  • Qtableview mouse move

    Unsolved qstyleditemdele tableview
    7
    -1 Votes
    7 Posts
    2k Views
    Christian EhrlicherC
    Please take a look at your post above - do you really think we can read something meaningful out of it. Please use the <code> - tags to make it more readable and reduce your code as much as possible so only the problem and nothing else is in there.
  • Make sure 'Mat&' is registered using qRegisterMetaType(), error

    Solved
    7
    0 Votes
    7 Posts
    10k Views
    Pl45m4P
    @RahulM44 You like replying to topics that are over 3-4 years old, don't you? ;-)
  • Drag-and-drop row from one table to a single cell of another table

    Solved
    6
    0 Votes
    6 Posts
    491 Views
    Please_Help_me_DP
    I solved my problem by reimplementing MyTableView::dropEvent(QDropEvent *event). Here it is: void MyTableView::dropEvent(QDropEvent *event){ const QMimeData *mime = event->mimeData(); QStringList typeList = model()->mimeTypes(); if (typeList.isEmpty()) return; int sourceRow, sourceCol; QByteArray encodedData = mime->data(typeList[0]); // retrieve first row and col from first selectem item QDataStream stream(&encodedData, QIODevice::ReadOnly); stream >> sourceRow >> sourceCol; QTableView* sourceTableView = qobject_cast<QTableView*> (event->source()); // get tableview from item goes if (sourceTableView == nullptr) return; // as a result we have source table view, current table view, row and col of dragged item. That is enough to process dragged data and paste it to current model }
  • Model/View and Dock Widgets: a menu conundrum

    Solved
    7
    0 Votes
    7 Posts
    461 Views
    P
    OK, so I just connected QApplication::focusChange to a slot in the main window where I ask the question "is the widget that now has focus a view of the type I am interested in?" If yes, I change the related menus accordingly. The "Ah Ha!" moment for me indeed was to think about the views, not the docks. I first tried installing an event filter on the views to look for FocusIn events, which works, but even that is unnecessary given the focusChange api available from the QApplication.