Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • Do you need to disconnect buttons?

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    SGaistS
    Hi, Aren't you re-inventing QWizard ?
  • How? I show a message, while the task is running

    Unsolved
    11
    0 Votes
    11 Posts
    807 Views
    lincolnL
    @J-Hilk ok It gives me the same result
  • QNetworkAccessManager::setAutoDeleteReplies and QNetworkReply deletion

    Solved
    2
    0 Votes
    2 Posts
    212 Views
    SGaistS
    Hi, AFAIK, that's the goal yes. The deletion happens after the finished emit signal is emitted.
  • How to call specific Python functions from QT GUI

    Unsolved
    23
    0 Votes
    23 Posts
    3k Views
    JonBJ
    @lfreeman6490 So start debugging that function! I take it you actually have a test_function in the test_program, else what do you expect. Maybe you need the different code in https://sites.northwestern.edu/yihanzhang/2019/08/22/how-to-invoke-python-function-from-c/, I don't know?
  • How to generate PostgreSQL backup with QProcess, from the Qt app

    Solved
    3
    0 Votes
    3 Posts
    375 Views
    lincolnL
    @ChrisW67 Thanks for your answer, as you said change '/' to '\' and in that case if it worked, I generate the backup correctly, the only thing that left me with doubts was with the password, so what I did was remove the password to the postgres user, and with that fix my problem. thanks anyway for your reply.
  • Designer for restaurant floor plan maker

    Unsolved
    5
    0 Votes
    5 Posts
    521 Views
    M
    @mrjj Here is what I have done with paintEvent(), mouseMoveEvent(), mousePressEvent() and mouseReleaseEvent(), that's what I mean by "dot": https://imgur.com/a/cF5EeTW Now, using QGraphicsItem, I have subclassed it to Dot which has a square as Dot::boudingRect() and is painted as a 2px ellipse (a dot). Should I use my "dot" as a grid, and detect hover, press, and drags when the user is drawing a table, then constrain the user to this "grid" of Dot then add QGraphicsRectItem as the tables, OR maybe stick to paintEvent() to draw (exactly as I did on the video) and only use the Graphic View Framework for the tables ?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • Correct way to use QSqlQueryModel in the different thread. How?

    Solved
    6
    0 Votes
    6 Posts
    568 Views
    B
    Solution found. Might be not so elegant but it works for me. Example published. The video of how it works for mobile here. It's not from model directly, but all of procedures with DB is in different thread. Thx to all. Issue closed.
  • 1 Votes
    6 Posts
    5k Views
    S
    @JKSH Thank you. I had hoped that there was a simpler way I didn't know about, maybe twerk some configure options and it'll enable and build xcb... But if there's not there's not, I'll just cross compile xcb as you and Christ both suggested.
  • 0 Votes
    8 Posts
    1k Views
    F
    @SGaist thanks, so what is a normal way to set a dock widget's default width? As I know, there's a method that we can install a event filter on the dockwidget's client widget, and set the widget max and min width in its show event. this method works fine. However, it seems almost every post recommend that we use sizehint() on the dockwidget's client widget. my test result is: it doesn't works fine in my special case. may I know what is your suggestion to implement that?
  • creating registry path

    Unsolved
    2
    0 Votes
    2 Posts
    245 Views
    M
    I want to create in .qs file
  • How to pass the parameters between the SIGNAL and SLOTS

    Solved
    45
    0 Votes
    45 Posts
    14k Views
    A
    @mrjj said in How to pass the parameters between the SIGNAL and SLOTS: so its a logical bug with mence and we cannot not spot it as we see only pieces and its easy to stare blind on own code so you dont either. @ mrjj, @J.Hilk, thank you for your help, so i will try to change my logic of coded, and i will take you know of the evolution
  • Make QFileDialog parent not clickable on Gnome

    Unsolved
    10
    0 Votes
    10 Posts
    740 Views
    K
    @stretchthebits Yeah, I know, on KDE and xfce you just need to initiate dialog with a parent widget to make it modal. As for other programs - I tried Telegram, which uses Qt as well, and it doesn't have this problem. Tried looking into their code, but couldn't find anything specific, I guess the answer here is to use later versions of Qt
  • QWindow on a non-GUI thread

    Solved qwindow opengl threaded
    11
    0 Votes
    11 Posts
    2k Views
    R
    @wrosecrans Yes, I'm rendering using a QOffscreenSurface on a separate thread then displaying the frame on a QWindow on the GUI thread, but it makes sense to have all of the video rendering on the same thread so we're not interfering with the GUI thread. I've successfully tested this concept with GLFW-based OpenGL windows and QT UI. I doubt Vulkan will be any different since from what I understand the render window will still need to sit on the GUI thread.
  • Progress bar and download button

    Unsolved
    2
    0 Votes
    2 Posts
    278 Views
    mrjjM
    Hi QPainter can draw an arc so that could be used for it. https://doc.qt.io/qt-5/qpainter.html#drawArc The center image could be an image you draw. i think that would be the most easy. You could also look at this https://github.com/mofr/QtProgressCircle
  • Problem with widget

    Solved
    3
    0 Votes
    3 Posts
    267 Views
    SPlattenS
    @J-Hilk , thank you, modified to: QRect rctGeom(rect()); #if defined(TRUTH_DEV) if ( mblnVisibleCopy == true && mrctDev.isEmpty == true ) { //Save current size Size szCurrent(size()), szNew; //Adjust maxmum size to prevent geometry being rejected szNew.setWidth(szCurrent.width() * 2); szNew.setHeight(szCurrent.height()); //Adjust widget geometry allowing for the development area qDebug() << "BEFORE: " << rctGeom; resize(szNew); rctGeom = geometry(); qDebug() << "AFTER: " << rctGeom; mrctDev = rctGeom; mrctDev.adjust(szCurrent.width(), + 40, szCurrent.width(), -40); qDebug() << "rctGeom: " << rctGeom << ", mrctDev: " << mrctDev; } #endif Results: BEFORE: QRect(0,0 208x644) AFTER: QRect(897,32 416x644) rctGeom: QRect(897,32 416x644), mrctDev: QRect(1105,72 416x564) Thank you!
  • QLoggingCategory in base class

    Unsolved
    1
    0 Votes
    1 Posts
    109 Views
    No one has replied
  • undefined reference to `_imp___ZN8mongocxx7v_noabi8instanceC1Ev in Qt?

    Solved qt5 c++11 mongodb c++ qt
    23
    0 Votes
    23 Posts
    6k Views
    Vivek_AV
    my compiler is mingw32bit and mongocxx driver build in 64 bit . so thats make problem , i solved it by installing 64bit Qt.
  • Why does a program crash when it closes on windows7

    Solved
    2
    0 Votes
    2 Posts
    130 Views
    D
    The fault module is displayed as qt5gui.dll
  • QWebView freezes

    Unsolved
    3
    0 Votes
    3 Posts
    352 Views
    P
    @eyllanesc said in QWebView freezes: QWebengineView That works. It's a bit slower (on a Raspberry pi) but it's working fine so far. Thanks.