Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • QGraphicsTextItem dynamic resizing

    Unsolved qt5 qgraphicstextit resize dynamic
    1
    0 Votes
    1 Posts
    669 Views
    No one has replied
  • Unable to change Icon::On color in Fusion style?

    Unsolved qicon
    6
    0 Votes
    6 Posts
    1k Views
    CJhaC
    It is a bug: https://bugreports.qt.io/browse/QTBUG-86736
  • It is possible to embed an external program in QWidget?

    Unsolved
    2
    0 Votes
    2 Posts
    197 Views
    SGaistS
    Hi, The first step is to get the winId of your external application then use QWindow::fromWinId and finally QWidget::createWindowContainer.
  • Extracting RGB from image

    Unsolved
    9
    0 Votes
    9 Posts
    890 Views
    SGaistS
    Even so, if you read the description of the format, the A channel is locked at 0xFF.
  • Prevent QTextFormat from extending after user input

    Unsolved
    8
    0 Votes
    8 Posts
    504 Views
    J
    Video example of what I am talking about. What I want to do, is when I append text to a formatted string it does not extent. Meaning, I should be getting following result: "this is an examplethis is not a desirable result string". Formatting in my program is not a regular bold; it has a lot of stuff going with it.
  • Include a dialog twice

    Solved
    16
    0 Votes
    16 Posts
    1k Views
    S
    Hi @J-Hilk, thanks for your answer. I'll just change the variables from MainWidnow.
  • Realloc definition conflict with QObject and C++ vector in Qt project ..

    Solved
    3
    0 Votes
    3 Posts
    581 Views
    D
    @VRonin It worked. Thank you very much for the solution.
  • 0 Votes
    5 Posts
    1k Views
    T
    Issue can be found here : https://bugreports.qt.io/browse/QTBUG-98354
  • In Pyinstaller exe console is coming

    Unsolved
    1
    0 Votes
    1 Posts
    83 Views
    No one has replied
  • QTcpService based server-clint

    Unsolved
    6
    0 Votes
    6 Posts
    442 Views
    JonBJ
    @Aijaz said in QTcpService based server-clint: connect(ui->m_pClientsocket, &error::SocketError, ui->this, &displayError::SocketError); For syntax please read New Signal Slot Syntax. Probably more like connect(ui->m_pClientsocket, &QAbstractSocket:::errorOccurred, this, &Dialog:::displayError);
  • QSqlQueryModel to display the result of several queries in one qtableview

    Unsolved
    5
    0 Votes
    5 Posts
    285 Views
    VRoninV
    Maybe a concrete example of what you want to achieve would be good here. From your initial post I was thinking you needed QConcatenateTablesProxyModel but now I'm confused
  • 0 Votes
    15 Posts
    1k Views
    SGaistS
    From the looks of the patch, you should be able to port it to 5.12 and build the module yourself with it.
  • How to automatically resize a window, after hiding several widgets?

    Unsolved
    4
    0 Votes
    4 Posts
    3k Views
    S
    This is definitely a very tricky problem. From my experience this is my understanding of how Qt works: Whenever you request the size of a widget (minimumSize() in your case) it does not do a recomputation. There are several methods that should actually recompute the layout, but they never help. I guess the best way is to first call update() to redraw the widget and recompute the layouts. However, you cannot immediately call this->resize(minimumSize()) after calling update() because the update gets delayed. This means that you also have to put the resize into the event loop (and hopefully it gets called after the update): update(); QMetaObject::invokeMethod(qApp, [=](){ resize(minimumSize()); }); If update() doesn't work, you can carefully try to call redraw() instead. The difference is that redraw is executed directly and update is queued into the event loop and update will also merge multiple update events. If used carelessly you can easily destroy the performance of your app when calling redraw.
  • Providing image to icons without QLabel and ui

    Unsolved
    3
    0 Votes
    3 Posts
    286 Views
    SGaistS
    Hi, @Swati777999 said in Providing image to icons without QLabel and ui: isChecked() What is MyWidget's base class ? If it's just QWidget then it does not have a isChecked method as the error tells you. What exactly is your goal with MyWidget ?
  • Ctrl-Click not working

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    M
    @Sergey-I said in Ctrl-Click not working: Exactly same problem for me. Quite a small project but uses Boost lib which is definitely a huge lib. So ctrl+click takes ages to go to an identifier but F2 works just fine. Without Boost everything works fine. Same at my project: before adding boost everything worked good, but now ctrl-click redirecting takes about 5-10 seconds.
  • How do I make my shared library backward-compatible with Qt5Core?

    Unsolved
    2
    0 Votes
    2 Posts
    152 Views
    sierdzioS
    Compile and link your library with Qt 5.6.
  • Why QThread still working, when work is done?

    Unsolved
    15
    0 Votes
    15 Posts
    1k Views
    Q
    @jsulm I think the same, but I wanted to make sure :)
  • How Connect signal slot correctly?

    Solved
    4
    0 Votes
    4 Posts
    325 Views
    BDC_PatrickB
    as @eyllanesc mentioned.. you need to define your slot in the header first. means: private slots: void readData(); And do the functionality in the source file.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • SQLite data to GUI via QSqlTableModel or other possible ways

    Solved
    7
    0 Votes
    7 Posts
    387 Views
    ?
    You can find the solution here. That works for me great!