Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Qml - ApplicationWindow fullscreen issues

    applicationwind fullscreen
    4
    1 Votes
    4 Posts
    11k Views
    J
    Have this issue (Win10, Qt 5.12). "flags: Qt.WindowFullScreen" workaround is not working for me. What helped was switching to OpenGLES in my main cpp file. QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true);
  • Qt for PLC.

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    SGaistS
    Hi and welcome to devnet, Please read the documentation and the related links. The information is there.
  • QT_IM_MODULE doesn't work for me

    Unsolved qtimmodule
    6
    0 Votes
    6 Posts
    4k Views
    D
    I have had a similar issue. I was actually trying both QtVirtualKeyboard (for Qt12.5.1) and Mockup to get an idea how these work, and what I would need to modify for my needs. What I discovered is that the QtVirtualKeyboard had an interface of "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1" , while mockup had an interface of "org.qt-project.Qt.QPlatformInputContextFactoryInterface". My guess is that at some point the interface was reved, and Mockup is now a too old interface. Why I adjust Mockup to match QtVirtualKeyboard, it worked. As a side note, when I run designer, neither shows up in the plugins dialog, even they are active (as proven by checking the filter box).
  • How to take snapshot using libvlc_video_take_snapshot without opening media player

    Unsolved
    2
    0 Votes
    2 Posts
    704 Views
    Christian EhrlicherC
    Wouldn't it be better to as the vlc devs on how to do so? I don't see where Qt can help you / can do anything against this behavior of libvlc...
  • Qt Bluettok Scanner Example does not find devices

    Unsolved
    1
    0 Votes
    1 Posts
    139 Views
    No one has replied
  • Change a hard coded /dev/video0

    Unsolved
    3
    0 Votes
    3 Posts
    202 Views
    Christian EhrlicherC
    Any relation to Qt here? And please don't tell me you're using vlc in Qt or something. Even than you your problem is completely out of our scope.
  • My QProgressDialog is being shown unintentionally

    Solved
    12
    0 Votes
    12 Posts
    1k Views
    Christian EhrlicherC
    @jmguerra said in My QProgressDialog is being shown unintentionally: is it an appropriate practice to create widgets after start? No, I don't see why someone would first create all widgets during start. It just takes time for no good reason.
  • This topic is deleted!

    Unsolved
    4
    0 Votes
    4 Posts
    14 Views
  • Cannot read /home/multimedia/shared/shared.pri: No such file or directory

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    Pablo J. RoginaP
    @rtvideo said in Cannot read /home/multimedia/shared/shared.pri: No such file or directory: seems to have gotten rid of the issue if your issue is solved, please don't forget to mark your post as such!
  • float problem

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    kshegunovK
    @JonB said in float problem: Oh! Is that how it works?! So my floating point number wants to be made by adding 2 ^ -n values together to be accurately representable? And 1.872 doesn't happen to be. 1.875 does. I kinda thought the numbers it could represent precisely were "randomly" distributed :) I hope randomly isn't an example of your hardly conceivable English sarcasm. ;) But yes, that's how it works, exactly the same as with the decimal. Here's a but of a fuller story: 1.872 in decimal is represented as: 1.872 = 1 * 10^0 + 8 * 10^-1 + 7 * 10^-2 + 2 * 10^-3 The same idea is true for a base 2 number system, however one'd adjust for the base: 1.111 -> 1 * 2^0 + 1 * 2^-1 + 1 * 2^-2 + 1 * 2^-3, which is incidentally 1.875 in decimal. So that's what the IEEE standard does explicitly: Representation is split into 2 parts - exponent and mantissa (significand), that's to say each number is represented as m * 2^p, where m is a fractional part in the range [1; 2)* and an exponent, which is a biased integer** (in reality it's unsigned). The leading bit of the mantissa (the one that's responsible for the 0th power) is implicit and is always assumed to be raised*** (i.e. signifying 1.(...)). This means the following: each bit in the mantissa starting from the higher to lower is a division by 2^n, hence my using of the principal values as a sum (principal values here'd mean the specific bits of the mantissa being 1). Now if you think about it the multiplication/division by 2 due to the exponent is equivalent to bit-shifts in the mantissa, which is what the FPU does for you when it renormalizes the numbers during calculations. It's always going to try to keep the higher bits in the mantissa raised if possible so you don't lose the precision at the lower end. Incidentally this is also why in reality the FP operations are done in extended registers (typically 2 times larger****) to allow storage of bits that otherwise'd be lost to be shifted back after normalization; truncation is done at the very end. * Realistically it's in the range [0.5, 1.0) but for simplicity we roll with a somewhat "wrong" representation. ** It's biased for a specific reason, so when its bits are all 0 the value is the minimum the integer can represent and thus it's implying a denormal FP number. *** Except when representing a denormal, then the exponent's raw value is 0 (representing the minimum possible value after debiasing) and thus the mantissa is fully explicit. Denormals are a special case to represent numbers very close by absolute value to the zero. The IEEE standard allows this for one specific purpose - to represent numbers that it'd otherwise couldn't in the normalized representation, however loss of precision is traded off for that. (i.e. the leading zeroes in the mantissa are the number of bits of precision lost). **** In fact some of the operations are done iteratively with infinite precision and renormalized on the fly doing so until the required truncated precision is acquired. One such example is the FMA instruction (std::fma).
  • 0 Votes
    8 Posts
    888 Views
    D
    Now I am absolutely confused. It is working. Maybe some Qt creator fuckup, I tested it on a different qt version in docker, where it worked, came back to qt creator, where it still did not, restarted qt creator and it worked.... Sometimes qmake drives me crazy.
  • How to debug QQuickImageProvider?

    Unsolved
    10
    0 Votes
    10 Posts
    751 Views
    jsulmJ
    @SPlatten said in How to debug QQuickImageProvider?: Is there a specific port that the application uses that I need to get added to the corporate firewall? That I don't know
  • How to load out-of-process Executable QActiveX in chrome 64bit browser?

    Solved
    2
    0 Votes
    2 Posts
    197 Views
    JonBJ
    @mirro Can you load any ActiveX anything into Chrome native? I thought you can only do that in an IE tab?
  • The window doesn't resize itself

    Unsolved
    5
    0 Votes
    5 Posts
    405 Views
    _
    Yes I am, because the window should change its size pushing on button with these instruction
  • Check if main window is loaded in python

    Unsolved
    4
    0 Votes
    4 Posts
    410 Views
    jsulmJ
    @Harshil Did you see this example: https://doc.qt.io/qt-5/qsplashscreen.html ?
  • pysiede2 date and time manuplilation from sqlite3 database

    Unsolved
    4
    0 Votes
    4 Posts
    341 Views
    JonBJ
    @erico In addition to the preceding comments. I am not a SQLite user, so I may be mistaken about the following, it;s just for you to check. But even if your query "works" i am trying to retrieve data which was added on the current day Does your table only contain dates in the current month? Else I don't see how your code won't amalgamate rows with the same day but on different months? fetchone(): Why do you thing this would return something on "the current day" (I take that to mean "today", maybe that's not what you mean)? You might want to play with your proposed query in one of the available "SQLite Workbench"-type applications, so that you can be sure it behaves as you intend before involving any Qt issues.
  • Pure virtual function called!

    Solved
    8
    0 Votes
    8 Posts
    3k Views
    O
    @Christian-Ehrlicher said in Pure virtual function called!: don't call the thread in the ctor since then the derived class is not yet instantiated As @Christian-Ehrlicher said, you are calling the overrided method into constructor of the base class. Think on that when you create an object of the derived class, first the base part is initialized and finally the derived part, so the overrided method is not initialized yet.
  • Applying the color of Custom widgets to the controls inside it

    Unsolved
    2
    0 Votes
    2 Posts
    244 Views
    mrjjM
    Hi -For the buttons, it is not applied. What is the reason for this and what is the potential solution? Hi, the labels are transparent (no background color) so you see your custom widget through them. Buttons do have a background normally. You could use ToolButtons and set auto raise [image: nuNuwL.png] which allows seeing through the button.
  • I hope QCalendarWidget only show months.

    Unsolved
    2
    0 Votes
    2 Posts
    229 Views
    jsulmJ
    @Qingshui-Kong said in I hope QCalendarWidget only show months.: I just want to get the month Why do you then need QCalendarWidget at all? There are only 12 months, simply use a combo box or list widget.
  • Parallel Processing in Qt

    Unsolved
    5
    0 Votes
    5 Posts
    749 Views
    R
    @Christian-Ehrlicher Thank you for your response. i will check it