Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • OpenSSL settings have errors

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    B
    @tomy There's no problem with SDK manager. Just Qt need some more packages to be installed, like Google USB driver. Well, that works for me to just click the refresh button...
  • How to layout CChartViews in a table

    Unsolved qchartview qtablewidget qchart
    2
    0 Votes
    2 Posts
    472 Views
    mrjjM
    Hi Well it could work but you will have the issue that a row can only be one height so if one big and the rest small, it will look odd. [image: g235IL.png] But if all chart will be ca same size yes it should work ok. Alternatively, you could tweak this https://doc.qt.io/qt-5/qtwidgets-layouts-flowlayout-example.html and put it into a QScrollArea. Add this to it https://wiki.qt.io/Widget-moveable-and-resizeable Tweak it a bit and it should allow for a group of chars in various sizes and scrollable.
  • Extracting multiple possible custom types from QDBusVariant

    Unsolved
    5
    0 Votes
    5 Posts
    402 Views
    L
    @SGaist The value in the returned QDBusVariant is QDBusArgument in this case, so I cannot cast to QVariant from it.
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    17 Views
  • Ampersand (&) appeared when clicking a button

    Solved
    7
    0 Votes
    7 Posts
    540 Views
    SGaistS
    Can you add a minimal compilable example to the bug report please ? That will allow the developer to more easily test your issue as well as test the corresponding fix.
  • Is there a web engine widget qt for mingw?

    Unsolved
    4
    0 Votes
    4 Posts
    946 Views
    SGaistS
    Yet they are different and will have different level of support for C++ features, different bugs, different implementations, will produce executable code that works but might be different as well. This means that your code base must also be compatible with both. AFAIK, one of the rule followed by chromium is to fully support the "official" compiler for the platform it runs on.
  • QGraphicsView size updating

    Unsolved
    5
    0 Votes
    5 Posts
    883 Views
    H
    @Pl45m4 the problem does not appear if before drawing on each view, I show it (even empty) on screen. So yes if they are all next to each other and displayed on screen it works. That makes me think that there should be something with the initialisation of the QGraphicsView, like if the fact of storing it in stacks avoids them to initialise there geometry if they are not on top of the stack (probably because when they are on top it must create a showEvent and then adapt the size from the viewPort, which is actually the stack).
  • Problem on linker.

    Solved
    3
    0 Votes
    3 Posts
    250 Views
    J
    @Christian-Ehrlicher Thanks!!
  • 0 Votes
    2 Posts
    770 Views
    Alex RusA
    There was no solution, I had to sweat with the 32x version, which is installed if the Office is same bitness.
  • how to move a line with the mouse on a drawing created with QGraphicsView

    Unsolved
    2
    0 Votes
    2 Posts
    237 Views
    Pl45m4P
    @Domenico Set the flags QGraphicsItem::ItemIsMovable and QGraphicsItem::ItemIsSelectable, then you can click your item and move it around.
  • "Undefined reference to" issues

    Solved
    3
    0 Votes
    3 Posts
    386 Views
    L
    It works. Thank you so much.
  • QtCOAP PSK put request to IKEA Tradfri Bridge doesn't work. -> Strange SSL Errors

    Solved
    14
    0 Votes
    14 Posts
    1k Views
    SGaistS
    Thanks for the follow up !
  • QtOpcUa Client with encryption

    Unsolved
    3
    0 Votes
    3 Posts
    690 Views
    RequR
    @LeLev @niodo Guys, I sucessfuly connect with encrypted sever using open62541 backend. You need to get Qt 5.14.2 and relative QtOpcUa version. I builded library with OpenSSL and x509v3 extension. Sometimes build process shows unexpected error but after few times compile it I test it using QtOpcua openviewer (example) and it's work. 5.14.2 is using already using open62541 v1.0 with is got encryption support.
  • Background image changes all my widgets appearance.

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    B
    @Retourned You don't need to write "QWidget" because any widget is a QWidget. Type selector in style sheet is more useful for subclass of QWidget. But if you want to match a QWidget exactly, not any subclass, you can use ".QWidget". You need to make sure that there won't be any child widget having the same object name.
  • Qt stuck at building

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    A
    The problem was because the .pro file had a timestamp greater than the machine current time, so advancing the date by a day solved this. Will mark this as solved. Thanks.
  • QPainter compositing : how to combine QPainter operations ?

    Unsolved
    4
    0 Votes
    4 Posts
    515 Views
    gde23G
    as an alternative you could first paint all the red stuff on a white background without transparency (just use light red). Then the same for the blue stuff. Finally convert white to alpha and overlay the two images..
  • How To Let Code Know To Run Below Code When Signal Is Emitted

    Unsolved
    5
    0 Votes
    5 Posts
    291 Views
    gde23G
    Why don't you just put the for loop in a function? Then the function can get called when needed, and the options the user selects can be passed to the function. I don't really get why this isn't an option?
  • How to mix QSortFilterProxyModel and QAbstractTableModel with fetch more function

    Unsolved
    4
    0 Votes
    4 Posts
    625 Views
    VRoninV
    @Mihan said in How to mix QSortFilterProxyModel and QAbstractTableModel with fetch more function: But I find that the list will not add new item but will update data if I just update the data vector and do not update the visible count. I'm sorry but I'm a bit slow. could you explain what you mean here? it will update well if I click the buttom item. what button item?
  • Unable to proceed after kit selection. (QTCreator)

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    aha_1980A
    @Pranav-Mahajan please show screenshots of the different tabs in Tools > Optons > Kits. But I can only recommend unsing the MinGW bundled with Qt. AFAIK, even the offline Qt installer contains it. Regards
  • using QKeyEvents

    Solved
    40
    0 Votes
    40 Posts
    6k Views
    mzimmersM
    Update on this, documented here The behaviour is different because clicked is emitted on button down on macOS, but on button up on the other two[Windows and Linux]. While the keyboard keys are down, the QPushButton stays down. That's a UX difference caused by how the OS itself behaves. So, my idea for using the keys goes out the window...I'll think of something else. The performance issue is a mystery, but I'm going to open a new thread on that. Thanks to everyone for looking.