Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • QScrollArea: Avoiding initial delay to scrolling

    Solved qscrollarea
    3
    0 Votes
    3 Posts
    727 Views
    V
    @sgaist Thanks for the comment. I got it working albeit the solution may be a little kludgy; I couldn't directly detect whether user's mouse click is upon one of the arrow buttons of a scrollbar, so I used a logic like this: When a signal fires to indicate a single-step movement to either direction, call QAbstractSlider::setRepeatAction to override the normal repetition pattern by a pattern without the delay. However, that override must be done only once per mouse-press, so I overrode QScrollBar::mousePressEvent so as to set a "sensitivity flag" for that purpose.
  • A proper way to link libEGL.lib

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    Christian EhrlicherC
    So did you try to pass that path to the linker? Please show us your pro-file
  • QDBusConnection how to handle ALL MESSAGES?

    Unsolved
    1
    0 Votes
    1 Posts
    145 Views
    No one has replied
  • Regular Expression for Multiple options.

    Solved
    6
    0 Votes
    6 Posts
    5k Views
    A
    @vronin Great Thanks
  • how to handle a delete key press event

    Unsolved
    3
    0 Votes
    3 Posts
    3k Views
    ManiRonM
    @ratzz Actually i have set input mask for my lineedit . when i press the delete key , it doesnt trigger the delete event
  • error: passing ‘const QSettings’ as ‘this’ argument discards qualifiers

    Solved
    2
    1 Votes
    2 Posts
    3k Views
    aha_1980A
    hi @cerr, you are in a const member function and therefore cannot change member variables. From the given context, I guess thats whats happens. Regards
  • QStringList: : removeDuplicates (), the editor does not show the available methods

    Solved
    2
    0 Votes
    2 Posts
    361 Views
    RatzzR
    @canid Seems like it just do not popup but works . https://bugreports.qt.io/browse/QTCREATORBUG-15392
  • QT 5.12.4 Mingw vs MSVC ui elements rendering when css styled

    Unsolved
    3
    0 Votes
    3 Posts
    520 Views
    JKSHJ
    This is a known bug in MSVC 2019: https://bugreports.qt.io/browse/QTBUG-75280 https://developercommunity.visualstudio.com/content/problem/547684/visual-studio-20191602-generator-incorrect-code-wi.html You will need to wait for Microsoft to release a fix. In the meantime, I suggest you continue using MinGW or use MSVC 2017. (MSVC 2017 is compatible with MSVC 2019)
  • binding same QOpenGLFramebufferObject in second QGLWidget fails

    Unsolved
    5
    0 Votes
    5 Posts
    606 Views
    S
    The paintFBO gets created lazily in paintGL call to make sure GL context is valid. I'm releasing the FBO but removed the release from the snippet. I'm not doing anything specifically with threads. Just normal widgets. I've trimmed my code down to just drawPaintStrokes() and I'm getting the following error: QOpenGLDebugMessage("APISource", 1282, "GL_INVALID_OPERATION error generated. Object is owned by another context and may not be bound here.", "HighSeverity", "ErrorType") Searching around the web, I've seen people claim this is an nvidia driver issue specific to not cleaning up FBOs. Right now all the code is doing is binding the FBO in widget 1, releasing the FBO in widget 1, then trying to do the same in widget 2. Here's a link where someone seems to be running into the same issue: https://devtalk.nvidia.com/default/topic/1043241/linux/framebuffer-doesnt-get-unbound-glitches-only-on-nvidia/post/5292053/#5292053
  • 0 Votes
    4 Posts
    813 Views
    SGaistS
    My question wasn't about the compiler but the IDE since you could be using Qt Creator to develop your unit test. That's what I would suggest to test, to see if you obtain there the unit test you want.
  • 0 Votes
    7 Posts
    1k Views
    SGaistS
    Thanks for the feedback !
  • How to see my QT UI when I'm developing a QT Dynamic Library with GUI?

    Solved
    5
    0 Votes
    5 Posts
    406 Views
    F
    @aha_1980 thank you! Perfect!
  • Error: qt 'iostream' file not found

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    aha_1980A
    hi @rovguy, which Creator version is that? can you actually compile your app? Regards
  • Help with connect statement

    Solved
    19
    0 Votes
    19 Posts
    4k Views
    M
    @JKSH @jsulm @J-Hilk @Pl45m4 @Pradeep-P-N @SGaist @aha_1980 My sincere apologies. This is what I get for trying to solve coding problems when in a hurry, and just skimming the very helpful replies. I was able to solve the connect statement issue based on help given in one of the very first posts by @jsulm - no instance of the class, and @aha_1980 and @Pl45m4, you of course nailed the other issue. Thank you all for your replies and taking the time to help! Best regards
  • mouseReleaseEvent not called when the mouse is released under certain circumstances

    Unsolved
    11
    0 Votes
    11 Posts
    4k Views
    S
    Apologies for posting to an old thread, but I wanted to add a clue that might be helpful. I am seeing this behavior in a Qt project of my own, but only on Mac laptops from 2015 and later (specifically, models with a force touch trackpad), when "Tap to Click" is enabled. On earlier laptops without a force touch trackpad, the bug does not present.
  • Install from scratch new empty project won't compile

    Locked Unsolved
    19
    0 Votes
    19 Posts
    5k Views
    S
    @SVRG Worked for me as well, thanks!
  • Using qplatformdefs.h on windows

    Solved
    13
    0 Votes
    13 Posts
    1k Views
    A
    Pheew I have finally been able to install it, I probably should detail how I overcame most of the errors I came across while trying to install it. Using zlib: after downloading the file from their official website, then go to the folder from cmd mkdir build cd build cmake .. -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=C: Couldn't find bzip2, to correct this, install the bzip2 directly from the website, It installs in programfiles x86, then point bzip to it from the cmake gui, this corrects the error. From Karchive, to build or install it, after running the instructions as detailed in the guide, I ran into an error error C2061: syntax error: identifier 'mode_t' to overcome this, I opened the cmake gui and changed the directory of every qt file from mingw to msvc, Ensure that you are using an msvc of 32 bit and not win_rt to avoid complications in the future., then rerun the instructions as in the guide i.e cmake .. -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=C:-DCMAKE_BUILD_TYPE=release -DCMAKE_PREFIX_PATH=C:;C:5.2.0\5.2.0\msvc2017;C:;C:2 nmake install This got the job done for me, hope it helps someone out too. Thanks to everyone who helped out.
  • Question about overriding QAbstractItemModel::mimeData()

    Solved
    3
    0 Votes
    3 Posts
    495 Views
    R
    @sgaist : Thanks ... I realized just now that the documentation of this function becomes quite clear when one looks at the source code of QAbstractItemModel::mimeData() in the file "../qtbase/src/corelib/itemmodels/qabstractitemmodel.cpp" at line 1936. It even says "Returns an object (...)" -- i.e., all one really needs to know.
  • 0 Votes
    5 Posts
    347 Views
    SGaistS
    It might be trivial but it allows everybody to work on the same code base to find out what is happening. And from time to time, it's when writing the minimal case that you can find what's wrong.
  • QQuickWidget on QGraphicsScene

    Unsolved
    2
    0 Votes
    2 Posts
    268 Views
    SGaistS
    Hi, Do you have anything else that is done in that QML UI except showing an SVG ?