Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Client for VNC video streaming

    Solved
    41
    0 Votes
    41 Posts
    13k Views
    SGaistS
    A GStreamer pipeline is basically a list of module that you chain to each other from the source to the sink to, for example, read an audio file, decode it and finally send it to your audio output. From a command line point of view, it's the elements built from the parameters you give to gst-launch. For example: Play the mp3 music file "music.mp3" using a libmad-based plugin and output to an OSS device: gst-launch-1.0 filesrc location=music.mp3 ! mad ! audioconvert ! audioresample ! osssink The documentation of get-launch gives you more good examples. The API tutorials are pretty nice to get started.
  • Cannot native build QtWebengine on Qt5.12.0

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    E
    I've found what I was missing: checking out to a matching branch for the 3rdparty repo. Now I can compile it without any trouble using webengine v5.10.
  • Borland to Qt migration, Qt ActiveX COM automation of Borland Builder 6 App

    Unsolved
    7
    0 Votes
    7 Posts
    951 Views
    M
    @aha_1980 Thanks I will!
  • QGraphicsRectItem moves out of the scene

    Solved
    6
    0 Votes
    6 Posts
    926 Views
    raven-worxR
    @sayan275 said in QGraphicsRectItem moves out of the scene: But why this event is not responding, when we update the position of the rectItem by keyPress events? what event? Do you mean QGraphicsItem::itemChange()? This change notifier is called in all cases whenever the position changes - it doesn't matter how it is changed. But it might be that you are not changing the position of the item directly? What i am talking about is, maybe you are just updating the rect's position (top-left corner) and let the item itself always on the position (0,0)? But long story short, show the code you are using to change the position of your rect item.
  • Displaying widgets on top of Opengl widget (Ogre engine)

    Solved ogre opengl transparency
    7
    0 Votes
    7 Posts
    4k Views
    G
    @SGaist My solution is heavily inspired by: this old ogre wiki post (should have linked it as well, forgot about it until now). I mostly slimmed it down to what I posted as my solution, but I agree if I have time I'll try to make an example/entry. There are some things that need to be updated from the linked post to fit Ogre 2.1 since the post is old.
  • QWebEnginePage runJavaScript callback

    Unsolved
    13
    0 Votes
    13 Posts
    3k Views
    Christoph SchaeferC
    I reported a bug for this QTBUG-72816.
  • need help in setting Build & Run option after importing an existing project

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    aha_1980A
    @ravi2k18 make sure to delete all build artifacts and Makefiles. it should work.
  • QSize ratio..

    Unsolved
    3
    0 Votes
    3 Posts
    590 Views
    jsulmJ
    @Pada_ I would say to keep same ratio you need to do: x = ratio * y (because ratio = x / y) So, if you want to increase the height by 4 pixels and ratio is 1.5 (3/2) then you need to increase x by 1.5 * 4 = 6 For example: A = 30 B = 20 ratio = 3/2 = 1.5 y = 4 => x = 1.5 * 4 = 6 Anew = 36 Bnew = 24 36 / 24 = 1.5
  • How to build dependent library that depends on another library?

    Unsolved
    11
    0 Votes
    11 Posts
    3k Views
    jsulmJ
    @AaronKelsey One note: if the only application using this C++ wrapper is the one you're currently developing, then you can simply make this wrapper part of your application project (so, no shared library).
  • unable to compile existing github project in qt

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    JKSHJ
    @ravi2k18 said in unable to compile existing github project in qt: this project has multiple .pro and .pro.user files recursively under each dir The .pro.user files will probably cause errors on your machine. Delete them before you load the project. does it mean to build and run this open source github project I need to purchase full Visual Studio 2013 and install that? As others have suggested, ask the project maintainer if the project is compatible with other compilers. If it turns out that you must use MSVC 2013, you can get Visual Studio 2013 Express for free at https://visualstudio.microsoft.com/vs/older-downloads/ (but I believe you need to register an account) what is the point naming -msvc2013_64-5.5.0.exe here? The point is to inform the user that this library is compatible with MSVC 2013 64-bit. Therefore, the user cannot use this library with MSVC 2013 32-bit, MSVC 2015 64-bit, MinGW (GCC), and others. I am new to Qt and only worked on Linux environment so far. It's the same principle in Linux. If you want to use the wxWidgets library or gtkmm library, you still need to install the g++ compiler separately from the library. Qt is a C++ library (mostly), like wxWidgets and gtkmm.
  • Pass variable value from Dialog to MainWindow

    Solved
    34
    0 Votes
    34 Posts
    7k Views
    TheCipo76T
    Thanks to all!!
  • QGraphicsProxyWidget change size..

    Unsolved
    2
    0 Votes
    2 Posts
    376 Views
    SGaistS
    Hi, What you wrote is not really clear. Can you explain more precisely what is happening and what you want to do ?
  • Moving all my buttons to a frame?

    Solved
    12
    0 Votes
    12 Posts
    5k Views
    mrjjM
    @anarelle Hi if issue is resolved, please mark the post Solved.
  • How to create QtCreator "Application Output", "Compile Output" type windows/panes?

    Solved
    3
    0 Votes
    3 Posts
    586 Views
    Pl45m4P
    @JohnGa You could use a QDockWidget and a QTextEdit to display Output / Debug Text, Application Msg or want ever you want. Here is an example
  • Type argument of Q_DECLARE_METATYPE(T*) must be fully defined

    Unsolved
    6
    0 Votes
    6 Posts
    3k Views
    SGaistS
    To add to @jsulm, it's pretty usual to have that macro at the bottom of the header where the class/struct is defined.
  • QSyntaxHighlighter

    Solved
    12
    0 Votes
    12 Posts
    2k Views
    L
    That's what I thought ;) Very good idea. Maybe I get some inspiration from this if the source code is not too heavy
  • casting sender() to wanted type returns nullptr

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    mrjjM
    @user4592357 You use the captured sender directly in the lambda.
  • Correct way to replace widgets (without deleting them) in GUI

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    S
    @SGaist I will look into it. This seems much easier and more intuitive than removing and adding things. Thank you
  • Template for new C++ Class?

    Solved
    5
    0 Votes
    5 Posts
    756 Views
    M
    @aha_1980 I did add something, it is really weird that just today others have put comments... Thanks!
  • Plugin compiled name does not match specified name

    Solved
    4
    0 Votes
    4 Posts
    579 Views
    M
    So changing the target to mgreenish helped me find my mistake. Indeed, the compiled plugin was not being put where I though. However, I did delete the SineDrawer_debug.dylib from the plugins directory where I wanted it to go several times and upon recompiling, it would reappear. Of course, it could have been my cloud server playing tricks on me and putting the file back rather than QT Designer. Thanks to both for your help !