Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Displaying YUV buffer on a QWidget.

    Unsolved yuv qwidget opengl
    2
    0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi, IIRC, since 5.8 or 5.9, QtMultimedia has OpenGL (vertex/fragment shaders) support for that kind of format. You should take a look there.
  • Deploying Qt application

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    ODБOïO
    Thx very much guys! i finally changed Qt version, from 5.8 to 5.10 now its working fine! Thx
  • QSqlite query to excel file specific layout

    Unsolved qt5.6 excel qsqlite
    1
    0 Votes
    1 Posts
    696 Views
    No one has replied
  • Formatting tableView header text

    Solved tableview header formatting
    10
    0 Votes
    10 Posts
    16k Views
    G4banditG
    SOLUTION: ui->tableView->model()->setHeaderData(2,Qt::Horizontal,QFont("Arial",10,QFont::Bold),Qt::FontRole); Actually everything is stated in the Qt Help, - just need to know how to correctly use it :)
  • QT Notepad tutorial

    Unsolved qt creator 4.5 qt 5.10.0 notepad tutoria
    15
    0 Votes
    15 Posts
    6k Views
    S
    @jsulm said in QT Notepad tutorial: @SeanR Isn't the application menu on the top bar in MacOS and not in the application window itself? Good call. I being mostly a MacDev noob and tired failed to look up there. Ty, I was expecting to see on the application. Minus 50 dragon kill points for me...
  • QTreeView - Horizontal scroll bar is not working properly

    Unsolved
    9
    0 Votes
    9 Posts
    5k Views
    K
    @SGaist Good question :) I have the implementation as part of my project. Let me see if I have strip of my code from the same and share it here. Else, I can also try a sample application which can reproduce this problem and share it here.
  • ui->textedit->append(): The program has unexpectedly finished

    Solved
    3
    0 Votes
    3 Posts
    544 Views
    S
    Hi J.Hilk, you're right. I tried to append text before to invoke "ui->setupUi(this);" Many thanks for your illumination and thanks at your crystall ball :) Stefano
  • Invoking the window "Help Window" from command line

    Unsolved
    8
    0 Votes
    8 Posts
    2k Views
    JonBJ
    @jsulm Yep, OK. I sort of expected the code to "crash" in the message loop pump, in that there would be a pending message to "show that window" but when processed asynchronously Qt would find no such window in existence. I guess it just ignores a message for a window which does not exist....
  • Various module "QtQuick" is not installed

    Solved
    4
    0 Votes
    4 Posts
    8k Views
    D
    @raven-worx I get it works. I have to delete the folder "build-xxxxx-Desktop_Qt_5_9_1_MinGW_32bit-Debug" and simply Run my program. Now it seems that it finds the qml libraries right. Anyway does somebody have an answer for this behaviour? Is possible that it happens when I deploy my program?
  • A custom class, a copy constructor and a warning

    Solved mingw32 copy compiler warning
    3
    0 Votes
    3 Posts
    3k Views
    J.HilkJ
    @VRonin Well apparently it is oO. Wasn't ware of that one, I came by it when googled the warning, but gave it not much mind. Thank you!
  • Window not invoking/not displaying when called from inside if block

    Unsolved
    3
    0 Votes
    3 Posts
    504 Views
    J.HilkJ
    hi @anuj-nogja , if I see that correctly, than you create the Window1 w1; and the Window2 w2; objects inside the if-brackets those will be destoyed as soon as the the bracket closes. try this: Window1 w1; Window2 w2; if(argc == 2 AND argv[1] = 1) { w1.show(); }else{ w2.show(); }
  • Put Video Timer without using Design

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    A
    @Pablo-J.-Rogina Thanks so much Sir, actually that is what I meant. I am trying this method i.e. using the QElapsedTimer, I'll let you know if this works well. Regards
  • QOpenGLWidget stereo rendering using glDrawBuffer

    4
    0 Votes
    4 Posts
    2k Views
    A
    This issue is getting some love in the form of a bug report: https://bugreports.qt.io/browse/QTBUG-64587
  • Convert and resize matrix to image

    Solved interpolation resize
    3
    0 Votes
    3 Posts
    1k Views
    A
    @mrjj Sorry for not mentioning this before, I already tried a Gaussian Blur, it didn't help. The data is have is in the form: (xCood, yCood, zCood, value) For the first phase I am ignoring zCood. The problem comes with the sample data granuality as data is something like: (0,0), (0,100)..............(0,1500) (100, 0).(100,100)........(100,1500) ..... ..... (1500, 0).(1500,100)........(1500,1500) I have a canvas of 1500x1500 The image before gaussian (The border is part of a layer above the image, so they aren't going anywhere soon): [image: 564300eb-b6df-46e3-a59c-cbf0e365343a.png] After Gaussian Blurring (and some some interpolation on my part)(the data is a little different in both cases and I have done this in a separate application): [image: ce602226-98b9-4337-a5ed-e1972bdd128e.png] As you can see, the output still has some boxiness to it. Also, doing it like this is just removing the sharpness of the image [it is eventually meant to be used to visualize input data not be a sunset image. Not to mention I am going too far with the blurring here making it really heavy for a repaint]. EDIT: Forgot to mention, I am using a continuous hue change here w.r.t value. But it seems that the proposal is for limited number of colors making the output even more blocky and blurring even more useless. EDIT 2: I eventually used the 2D shader for openGL. Latest output: [image: 9f0a0667-bd19-4e0e-aaeb-51113027e7da.png] Seems the most promising one yet
  • reading #define from external header into .pro file

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    N
    @Pablo-J.-Rogina Appreciate the pointer towards how to do this in Eclipse - very helpful :) I looked around in the other IDE we use (an ancient flavor of IAR Embedded Workbench), and haven't found anything that'd read an environment variable, but it's possible they use a different name for it. In any case, thanks!
  • Qt Bluetooth With Non-Qt Raspberry Pi

    Unsolved qt bluetooth raspberry pi 3 rfcomm serial port
    1
    0 Votes
    1 Posts
    728 Views
    No one has replied
  • QWidgetAction on MacOS creates additional empty dialog windows when activated!?

    Solved
    10
    0 Votes
    10 Posts
    3k Views
    DiracsbracketD
    @mpergand said in QWidgetAction on MacOS creates additional empty dialog windows when activated!?: To avoid possible issues, it's advisable to do simplest things as much as possible. (in particular if you're targeting MacOS) IMHO Hi, Since the QWidgetAction did definitely not work correctly on MacOS X (although Qt 5.10 has an improvement as @SGaist mentioned), I heeded your advice and spent the day replacing all the QWidgetActions by QActions in a QActionGroup, and I must say, it looks much better. More importantly, it works on both Windows and MacOS X. Cheers![image: 77548fcd-47f4-4637-b7c4-694e1cd1c108.png] Although the original issues of ghost windows et al. are not really solved, at least on Qt 5.9.4, I will put this question as solved nonetheless. The answer is simply: don't use QActionWidget in the application menu.
  • How to add a centralized stylesheet definition to a project?

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    mrjjM
    Hi Stylesheets are cascading meaning you can set one style sheet to QApplication and it will affect all Widgets in the application. This is much easier to manage than many stylesheets all over the widgets. But this is only at runtime. During Design time, you can set same style sheet on MainWindow ( or what ever is the top widget) and all its children are affected but if you create a new form, then it wont automatically get a/the stylesheet. I also missed that feature. So yes, you can use one file and apply it exactly once but only run time. Its more fiddle, fiddle when in Designer. That said, the UI files are just xml files so its quite easy to use a cmdline tool like http://xmlstar.sourceforge.net/overview.php and auto add a stylesheet for all UI files if its a must to see the right look in Designer and then when "ready" strip all UI files for stylesheets and only set via application so you can get the benefit of one file for all styles. That said again ;), stylesheets was meant for smaller tweaks. For a custom look, QStyle offer far better performance and absolute control. http://doc.qt.io/qt-5/qtwidgets-widgets-styles-example.html
  • How to share a single style sheet across multiple .ui Qt Designer files

    7
    0 Votes
    7 Posts
    10k Views
    R
    Although nearly 8 years have passed since this topic was created, it appears that no progress was made in implementing this feature. Here's a link to the relevant Qt Designer's bug report: Add support for external style sheets in Qt Widget Designer.
  • QT OpenGL unable to draw rectangle

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    mrjjM
    Hi and welcome to the forums :) Its not often a poster both post and find the answer himself in such time span. Not with openGl at least. Good work.