Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    41 Views
    No one has replied
  • Where is the graphical interface in the qt creator source code?

    Solved
    2
    0 Votes
    2 Posts
    211 Views
    aha_1980A
    Hi @samuel-ives, Sidebar is a part of coreplugin: https://code.woboq.org/qt5/qt-creator/src/plugins/coreplugin/sidebar.cpp.html Regards
  • Qt installation

    Unsolved
    4
    0 Votes
    4 Posts
    362 Views
    sierdzioS
    @rameshguru said in Qt installation: Please use -platform It tells you what to do :-)
  • Building Qt 3.3.6 source on windows10 VS2015 x86native tools

    Unsolved
    3
    0 Votes
    3 Posts
    314 Views
    K
    @koahnig thanks, I will check with support then.
  • This topic is deleted!

    Unsolved
    1
    -1 Votes
    1 Posts
    29 Views
    No one has replied
  • Can't get QAudioInput from qtaudio_windows to work

    Solved
    7
    0 Votes
    7 Posts
    729 Views
    P
    @sgaist The problem is in qtmultimedia/src/plugins/windowsaudio/qwindowsaudioinput.cpp, in the open() function. It supplies a default buffer size of 200ms, and assigns a period size (the size of the individual blocks to be returned to the application) to be 1/5 of the buffer size, so you only get complete samples if you explicitly set a buffer size that is a multiple of five frames, whatever that turns out to be (20 bytes for 16-bit stereo). I've filed this bug report. In the meantime, you just have to set an explicit buffer size, instead of letting it choose a default.
  • glPointSize missing from Windows version, but present in Linux version

    Unsolved
    4
    0 Votes
    4 Posts
    868 Views
    D
    @christian-ehrlicher You misunderstand - there are two separate commands: glPointSize which is usually in the initializeGL() section of your (C++) program and gl_pointSize which in the shader (vertex, tessellation or geometry). I am using the same Qt OpenGL program on 1) Fedora Linux and 2) Windows. In Linux the glPointSize command works perfectly, but on Windows I get the linking error indicating it is not in the Qt library. Since the Qt version of OpenGL is their own implementation it is not possible to link another version into the program. There is a solution - the point size can be set directly inside the vertex shader thus: gl_PointSize = 10; and the OpenGL property has to be enabled thus: glEnable(GL_PROGRAM_POINT_SIZE); This works on both systems.
  • Using openssl toolkit included in Qt 5.12.4

    Solved
    6
    0 Votes
    6 Posts
    996 Views
    M
    Ok. Now it works in android. Thx Br Martin
  • QSound wont work, because "return a.exec();" will never be executed.

    Solved
    9
    0 Votes
    9 Posts
    785 Views
    Pablo J. RoginaP
    @bd9a said in QSound wont work, because "return a.exec();" will never be executed.: Thanks, working. please don't forget to mark your post as solved! Thanks.
  • Include extra libraries in android build

    Unsolved
    2
    0 Votes
    2 Posts
    138 Views
    SGaistS
    Hi, I haven't done that since a long time but I would start by clicking on the Create Templates button. IIRC, this will create the AndroidManifest.xml file that is needed when customizing your application.
  • error connecting to mysql with ssl connect options

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    V
    yes im able to login using mysql -h localhost -u sha256 -p --ssl-mode=required i happened to fine a fix for it just need to tell QSqlDatabase an ip address to connect to instead of the default host name or the "localhost" db.setHostName("localhost"); // doesnt work db.setHostName("127.0.0.1"); // works db.setHostName("::1"); // works still not sure what the problem actually is thanks for the answer anyway edit: but its really strange QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL"); //db.setConnectOptions("SSL_KEY=client-key.pem;SSL_CERT=client-cert.pem;SSL_CA=ca.pem"); db.setHostName("::1"); db.setUserName("sha256"); db.setPassword("password"); qDebug()<< db.open(); qDebug()<< db.lastError(); the setConnectOptions() here can be omitted and it will still connect :)
  • 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
    605 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