Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.2k Topics 455.4k Posts
  • QPainterPath Performance

    Unsolved
    3
    0 Votes
    3 Posts
    621 Views
    R
    @Kent-Dorfman So do I, I want to know how to use opengl in QPainterPath.
  • QT 5.14.1 connection with MySQL 8.0 issue (driver works fine)

    Unsolved
    3
    0 Votes
    3 Posts
    250 Views
    A
    @JonB I have checked it few times and even tried to connect via VS, with Visual Studio, it worked perfect and took 2 min to set it up. thank you for the functions, I will check it out
  • 0 Votes
    8 Posts
    2k Views
    artwawA
    @JonB Simple answer to that will be "run as admin" - but, as stated above - this is something you should not do.
  • Find which widget had focus when menu item is clicked?

    Unsolved
    8
    0 Votes
    8 Posts
    13k Views
    JonBJ
    Heads-up for anyone reading this. I have come across this topic in trying to solve my new post at https://forum.qt.io/topic/112224/signal-slot-vs-direct-call-and-related-question, where I need to know which window/widget has the focus when a (main window) menu is invoked. The OP (@Elsworth55 )'s question here seems "alarmist"! Of course we need Qt to tell us which widget is focussed when a menu is invoked, else we're in trouble! Maybe it never got an answer because I do not find the behaviour reported by the OP here. Tested under Qt 5.12.2, Linux. I find that QApplication.focusWidget() does return the correct, currently-focussed widget. I have tested this on both a generic QWidget and a QLineEdit, and I have tested both when the menu is pulled down (QMenu::aboutToShow()) and when a item is clicked (QAction::triggered). In all cases I found it worked, so I don';t know about this OP's the QLineEdit that was previously in focus will get focus restored after clicking the menu item but when you click on a menu item it gives focus to the menu, so the focusWidget() will be the menu
  • Some questions about QSharedMemory

    Unsolved
    7
    0 Votes
    7 Posts
    292 Views
    MihanM
    Thanks @kshegunov I wil redo my plugin
  • [Solved]Appending to Last added QString in QStringList

    Solved
    7
    0 Votes
    7 Posts
    644 Views
    R
    @KroMignon This works fine, Thanks :)
  • 0 Votes
    6 Posts
    564 Views
    M
    @anil_arise thank you very much
  • Warnings.

    Solved
    10
    0 Votes
    10 Posts
    909 Views
    S
    @J-Hilk said in Warnings.: @Stevendragoes said in Warnings.: I have put the DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 into the .pro file and it still gives me the error. I said remove it, not add is 😏 might have been se issue 🙈 LOL okok I will remove it. I thought Disable means like it will remove the warnings
  • Problems on RemoteObjects Model Replicas

    Unsolved
    1
    0 Votes
    1 Posts
    185 Views
    No one has replied
  • QlineSeries inside QChart Plot Area

    Unsolved
    1
    0 Votes
    1 Posts
    88 Views
    No one has replied
  • QOpenGLExtensions

    Solved qopenglextensio qopenglwidget
    8
    0 Votes
    8 Posts
    2k Views
    R
    @SGaist Alright, I'll give that a try. Thanks very much!
  • Project won't compile with Qt 5.14.1 MSVC 2017

    Unsolved
    1
    0 Votes
    1 Posts
    190 Views
    No one has replied
  • unable to load audio/qtaudio_windows.dll

    Unsolved
    3
    0 Votes
    3 Posts
    801 Views
    SGaistS
    Hi, Did you use windeployqt to prepare your application for deployment ?
  • Did QByteArray have memory limit?

    Solved
    14
    1 Votes
    14 Posts
    1k Views
    Christian EhrlicherC
    @Mozzie said in Did QByteArray have memory limit?: Is there any document about "QByteArray will not handle more than 2GB in Qt5"? Just take a look at the ctors, the access functions and the resize/size ones and it's clear that it can't contain more than 2GB ...
  • 0 Votes
    13 Posts
    1k Views
    Z
    @hskoglund I made it finally, guess what i have done ? i changed the libstdc++-6.dll and libgcc_s_dw2-1.dll files to make the three files ( libstdc++-6.dll and libgcc_s_dw2-1.dll and libwinpthread-1.dll ) with the same date ( from 2014 ) and now it work perfectly, thanks for your Help i don't know why but when i deployed the date of libstdc++-6.dll and libgcc_s_dw2-1.dll have changed ( or maybe he taked the wrong one ) [image: dcef4a1d-16bc-4ff7-96ee-92b563060f2e.png]
  • Active QGraphicsView from QGraphicsScene

    Solved
    2
    0 Votes
    2 Posts
    209 Views
    Pl45m4P
    @DonCoder You dont need your scene for this. Just check which view has focus. QGraphicsView * view view->hasFocus(); or QApplication::focusWidget();
  • Dynamically grow a widget into negative values.

    Unsolved
    1
    0 Votes
    1 Posts
    109 Views
    No one has replied
  • How to create an grid list UI like the example list view when open QT Generator

    Unsolved
    2
    0 Votes
    2 Posts
    226 Views
    Pl45m4P
    @pengxu If you look at Qt Creator sourcecode, you can see that this is a custom widget with grid view and custom item delegates https://github.com/qt-creator/qt-creator/blob/f2351b06e05f5a129df1e6a38557c692687674c6/src/plugins/qtsupport/gettingstartedwelcomepage.cpp#L262 QGridView is deprecated, I guess, but you can use a QTableWidget or QListWidget.
  • Build QtOpcUa with open62541 as backend (WITH ENCRYPTION SUPPORT)

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

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied